2004-11-18 Michael Natterer <mitch@gimp.org>
* acinclude.m4: pasted the complete alsa.m4 so compiling from
CVS doesn't require alsa.m4 to be installed.
* configure.in: check for alsa >= 1.0.0 and define HAVE_ALSA
if found.
* modules/Makefile.am: build controller_midi with ALSA_CFLAGS
and ALSA_LIBS.
* modules/controller_midi.c: s/HAVE_ALSALIB_H/HAVE_ALSA/.
2004-11-18 Michael Natterer <mitch@gimp.org>
* plug-ins/common/compressor.c (compressors): added back the
.xcf.gz and .xcf.bz2 extensions because they are the only way
to figure the special nature of this plug-in's extensions.
* app/widgets/gimpfileprocview.[ch]: keep a list of "meta
extensions" (extensions which have a '.' themselves).
* app/widgets/gimpfiledialog.c (gimp_file_dialog_proc_changed):
try to replace the whole extension if the last extension is one of
the meta extensions kept by GimpFileProcView. Fixes bug #158377.
2004-11-18 Sven Neumann <sven@gimp.org>
* plug-ins/maze/maze.[ch]
* plug-ins/maze/maze_face.c: removed the extra help button from
the Maze plug-in. Fixes bug #158605.
2004-11-18 Michael Natterer <mitch@gimp.org>
The following fixes have no visible effect because nobody
uses gimp_plugin_menu_register() on temp_procs yet:
* app/actions/plug-in-actions.[ch]: added
plug_in_actions_add_path() which just adds the actions needed for
a given menu math, but not the procedure action itself.
* app/gui/gui-vtable.c (gui_menus_create_entry): create the
menu_path's actions using above function so adding of submenus to
existing ui managers works.
* tools/pdbgen/pdb/plug_in.pdb (plugin_menu_register_invoker):
don't add a menu if "no_interface" is TRUE.
* app/pdb/plug_in_cmds.c: regenerated.
* plug-ins/script-fu/script-fu-scripts.c: pass untranslated
menu_paths to the core, not translated ones. Don't store the
scripts directly in the "script_list" tree but use a list of
scripts per key because there can be identical keys for different
scripts now. Fixed sorting of menu entries and menus.
2004-11-18 Simon Budig <simon@gimp.org>
* modules/controller_midi.c: implemented support for ALSA-midi,
currently disabled. Needs a configure-check and proper linking
against libasound.
2004-11-17 Dave Neary <bolsh@gimp.org>
* plug-ins/common/bumpmap.c: Fixed initialisation issue
that was crashing the plug-in on repeat runs. Fixes bug
#158494.
2004-11-17 Sven Neumann <sven@gimp.org>
* app/dialogs/print-size-dialog.c: added missing callbacks for the
size entries. Needs some more work though...
2004-11-17 Manish Singh <yosh@gimp.org>
* plug-ins/dbbrowser/Makefile.am: make libgimpprocbrowser a libtooled
library.
* plug-ins/dbbrowser/gimpprocbrowser.[ch]: add a user_data pointer
for GimpProcBrowserApplyCallback.
* plug-ins/dbbrowser/gimpprocbrowser.c: only convert the name to
scheme style if scheme_names in the proc info pane too.
* plug-ins/dbbrowser/procedure-browser.c
* plug-ins/script-fu/script-fu-console.c: pass NULL as user_data.
* plug-ins/script-fu/Makefile.am: reference libgimpprocbrowser.la.
* plug-ins/pygimp/Makefile.am
* plug-ins/pygimp/procbrowser.c: new module, which wraps
libgimprocbrowser.
* plug-ins/pygimp/gimpmodule.c
* plug-ins/pygimp/pygimp.h
* plug-ins/pygimp/pygimp-pdb.c: export GimpPDBFunction so other
modules can use it.
* plug-ins/pygimp/plug-ins/pdbbrowse.py
* plug-ins/pygimp/plug-ins/gimpcons.py: use gimpprocbrowser.
2004-11-17 Michael Natterer <mitch@gimp.org>
* plug-ins/script-fu/script-fu-scripts.[ch]
* plug-ins/script-fu/siod-wrapper.c: appled patch from Kevin
Cozens which adds (script-fu-menu-register) and allows scripts to
register their menu_paths the same undeprecated way as plug-ins.
Fixes bug #158117.
* plug-ins/script-fu/scripts/test-sphere.scm: example how to use
the new API. Doesn't change strings because test-shpere.scm is an
untranslated example script.
2004-11-17 Michael Natterer <mitch@gimp.org>
Made plug-in menu registration work the same way for ordinary and
temporary procedures. Addresses bug #158117.
* app/core/gimp-gui.[ch]: added "const gchar *menu_path" to
gimp_menus_create_entry().
* app/gui/gui-vtable.c (gui_menus_create_entry): if menu_path is
NULL, behave as before and create an action and its menu entries
for all the procedure's menu_paths. If it is non-NULL, skip action
creation and create a menu entry just for that path.
* app/plug-in/plug-ins.c (plug_ins_temp_proc_def_add): call
gimp_menus_create_entry() with a NULL menu path and call it if
proc_def->menu_paths *or* proc_def->menu_label is non-NULL, so
it creates at least the procedure's action, even if it has
no menu_path (yet).
* tools/pdbgen/pdb/plug_in.pdb (plugin_menu_register): check both
the list of procs and temp_procs when trying to register the
entry. Allow ordinary procedures and extensions to install stuff
at query() and init() time and allow temp_procs to install stuff
at any time.
* app/pdb/plug_in_cmds.c: regenerated.
2004-11-17 Michael Natterer <mitch@gimp.org>
* plug-ins/dbbrowser/gimpprocbox.c
* plug-ins/dbbrowser/gimpprocbrowser.[ch]
* plug-ins/dbbrowser/gimpprocview.c: some cleanup in preparation
of moving it to a more public place.
* plug-ins/dbbrowser/procedure-browser.c
* plug-ins/script-fu/script-fu-console.c: changed accordingly.
2004-11-17 Sven Neumann <sven@gimp.org>
* Makefile.am (DISTCHECK_CONFIGURE_FLAGS): removed --enable-gtk-doc
here since it only causes 'make distcheck' to break earlier as usual.
2004-11-17 Sven Neumann <sven@gimp.org>
* plug-ins/rcm/Makefile.am
* plug-ins/rcm/rcm_callback.c
* plug-ins/rcm/rcm_dialog.c
* plug-ins/rcm/rcm_stock.[ch]: applied a patch from Karine Proot
that replaces the XPM icons with stock icons (bug #140202).
* plug-ins/rcm/pixmaps/*.xpm: removed.
* plug-ins/Lighting/lighting_stock.c
* plug-ins/MapObject/mapobject_stock.c
* plug-ins/gfig/gfig-stock.c: fixed a common but harmless mistake
in the icon factory code.
2004-11-16 Manish Singh <yosh@gimp.org>
* plug-ins/pygimp/gimpui.py: Handle placeholder defaults for gimp
objects (bug #158392). Patch by Joao S. O. Bueno.
2004-11-16 Manish Singh <yosh@gimp.org>
* plug-ins/pygimp/gimpui.py: Use img.name if filename is not
available (bug #158392). Patch by Joao S. O. Bueno.
2004-11-16 Manish Singh <yosh@gimp.org>
* plug-ins/common/gimpfu.py
* plug-ins/common/gimpui.py: Add a palette selector (bug #155325).
Patch by Joao S. O. Bueno.
2004-11-16 Manish Singh <yosh@gimp.org>
* configure.in:
* plug-ins/pygimp/Makefile.am: Compile pygimp with
-fno-strict-aliasing if the compiler supports it.
* plug-ins/pygimp/gimpui.py: Make "..." into "Browse..." for
everything but the filesel, for slightly more consistency with
script-fu. Addresses #124791.
* plug-ins/pygimp/gimpmodule.c: Wrapped
gimp_context_{get,set}_gradient and
gimp_gradient_get_{uniform,custom}_samples. Deprecated the deprecated
versions of these, and rewrote them in terms of the new functions.
2004-11-17 Michael Natterer <mitch@gimp.org>
* app/plug-in/plug-in.c (plug_in_close): replaced the
while(plug_in->temp_procs) "loop" which called
plug_in_proc_frame_quit() by a real for()-loop iterating over the
list of PlugInProcFrames, calling g_main_loop_quit() on each main
loop. The old version did not unroll the stack but looped
infinitely. Spotted by Yosh.
2004-11-17 Michael Natterer <mitch@gimp.org>
* plug-ins/common/jpeg.c: applied (modified) patch from S. Mukund
which adds EXIF thumbnail loading and saving.
Fixes bugs #155761 and #158190.
* plug-ins/gfig/gfig-arc.c
* plug-ins/gfig/gfig-bezier.c
* plug-ins/gfig/gfig-circle.c
* plug-ins/gfig/gfig-dialog.c
* plug-ins/gfig/gfig-ellipse.c
* plug-ins/gfig/gfig-line.c
* plug-ins/gfig/gfig-poly.c
* plug-ins/gfig/gfig-spiral.c
* plug-ins/gfig/gfig-star.c
* plug-ins/gfig/gfig-style.c
* plug-ins/gfig/gfig-style.h
* plug-ins/gfig/gfig-types.h
* plug-ins/gfig/gfig.h: added a toggle so we can now choose to stroke
the painting or not.
* plug-ins/gfig/gfig-dialog.c: implemented the gradient fill, using a
shapeburst blend. This is very slow, but I dont see how it could be
done otherwise.
2004-11-16 Michael Natterer <mitch@gimp.org>
* app/widgets/gimpfgbgeditor.c: get rid of the
gimp_fg_bg_editor_context_changed() callback and
g_signal_connect_swapped() gtk_widget_queue_draw() directly.
2004-11-16 Michael Natterer <mitch@gimp.org>
* app/widgets/gimpchanneltreeview.c: implement
GimpDockedInterface::set_context() and set the context of the
embedded GimpComponentEditor. Fixes NULL-context crashes in
action callbacks when invoked from the component editor.
Spotted by Jimmac.
Unrelated:
* app/widgets/gimpitemtreeview.c: get rid of the
gimp_item_tree_view_context_changed() callback and
g_signal_connect_swapped() gimp_item_tree_view_set_image()
directly.
2004-11-16 Michael Natterer <mitch@gimp.org>
* tools/pdbgen/pdb/drawable_transform.pdb: renamed the new
drawable_foo_defaults() functions to drawable_foo_default() to be
consistent with paintbrush_default() and friends.
* tools/pdbgen/pdb/transform_tools.pdb
* libgimp/gimp.def: changed accordingly.
* app/pdb/drawable_transform_cmds.c
* app/pdb/transform_tools_cmds.c
* libgimp/gimpdrawabletransform_pdb.[ch]
* libgimp/gimptransformtools_pdb.c: regenerated.
* plug-ins/script-fu/scripts/coolmetal-logo.scm
* plug-ins/script-fu/scripts/image-structure.scm
* plug-ins/script-fu/scripts/text-circle.scm: follow the API change.
2004-11-16 Michael Natterer <mitch@gimp.org>
* tools/pdbgen/pdb/image.pdb
* tools/pdbgen/pdb/selection.pdb: entirely removed the deprecated
functions "selection_clear", "image_set_cmap" and "image_get_cmap".
* app/pdb/procedural_db.c: and added them to the compat hash table
because they have undeprecated replacements with identical
signature.
* libgimp/gimpselection.[ch]: added gimp_selection_clear() here
instead because we need the symbol in libgimp.
* app/pdb/image_cmds.c
* app/pdb/internal_procs.c
* app/pdb/selection_cmds.c
* libgimp/gimpselection_pdb.[ch]: regenerated.
* plug-ins/gfig/gfig-dobject.h: renamed the DObject type to
GfigObject, according to our common type naming. This type will
certainly become an abstract class in a near future.
* plug-ins/gfig/gfig-arc.c
* plug-ins/gfig/gfig-bezier.c
* plug-ins/gfig/gfig-bezier.h
* plug-ins/gfig/gfig-circle.c
* plug-ins/gfig/gfig-dialog.c
* plug-ins/gfig/gfig-dobject.c
* plug-ins/gfig/gfig-ellipse.c
* plug-ins/gfig/gfig-line.c
* plug-ins/gfig/gfig-line.h
* plug-ins/gfig/gfig-poly.c
* plug-ins/gfig/gfig-poly.h
* plug-ins/gfig/gfig-spiral.c
* plug-ins/gfig/gfig-star.c
* plug-ins/gfig/gfig-types.h
* plug-ins/gfig/gfig.c
* plug-ins/gfig/gfig.h: changed accordingly.
2004-11-16 Sven Neumann <sven@gimp.org>
* app/actions/file-commands.c
* app/dialogs/file-save-dialog.c
* app/file/file-save.[ch]
* app/widgets/gimpfiledialog.[ch]: combined "set_uri_and_proc" and
"set_image_clean" parameters into a single "save_a_copy"
parameter. When saving a copy, attach the used URI to the image and
let the "Save a Copy" file chooser default to the last used value.
2004-11-15 Sven Neumann <sven@gimp.org>
* app/widgets/gimpfiledialog.c (gimp_file_dialog_add_filters):
limit the number of file extensions that are added to the file
filter menu to keep the file dialog from growing too wide.
2004-11-15 Philip Lafleur <plafleur@cvs.gnome.org>
* app/display/gimpdisplayshell-preview.c: Further optimization of
perspective tool preview - never calculate the same vertex more
than once.