2004-03-23 Sven Neumann Michael Natterer * Made 2.0.0 release. 2004-03-23 Sven Neumann * libgimpbase/gimpprotocol.h * libgimpmodule/gimpmodule.h: incremented GIMP_PROTOCOL_VERSION and GIMP_MODULE_ABI_VERSION. This means that plug-ins or modules built for gimp-1.3 will not work with GIMP 2.0. 2004-03-23 Simon Budig * plug-ins/script-fu/scripts/alien-glow-arrow.scm * plug-ins/script-fu/scripts/beveled-pattern-arrow.scm: Make helper functions local to the scripts. The better fix for bug #136868. Should also be done for a lot of other scripts, but is too likely to introduce new bugs to do this now. 2004-03-23 Sven Neumann * INSTALL * NEWS * README: updated for the 2.0 release. 2004-03-23 Simon Budig * plug-ins/script-fu/scripts/alien-glow-arrow.scm: fixed utility function rotate-points. Only worked sometimes by accident, probably because beveled-pattern-arrow.scm implemented a function of the same name correctly and all scripts share a common namespace. Fixes bug #136868. 2004-03-23 Michael Natterer The floating_sel code is really from the stone age: * app/core/gimplayer-floating-sel.c (floating_sel_attach): call gimp_image_floating_sel() once and work on the return value instead of accessing gimage->floating_sel directly twice and calling gimp_image_floating_sel() for the thrid access. * app/core/gimpimage.c (gimp_image_floating_sel): no need to return NULL if gimage->floating_sel is NULL, just always return gimage->floating_sel. 2004-03-22 Sven Neumann * app/core/gimplayer-floating-sel.c (floating_sel_attach): don't do a type-checking cast on an object that was released a few lines above. Fixes bug #137957. 2004-03-22 Tor Lillqvist * app/plug-in/plug-in.c (plug_in_recv_message): Win32-only workaround for bug #137968. 2004-03-22 Sven Neumann * app/tools/gimptexttool.c: keep the text editor open as long as the text tool is connected to a text layer. Open the text editor when a text layer is activated in the layers dialog. 2004-03-22 Sven Neumann * app/tools/gimptexttool.[ch]: preserve the text tool on image changes. Instead connect to the text layer's "notify::modified" signal and disconnect from the layer when it is modified. Fixes bug #137890. 2004-03-22 Michael Natterer * app/file/file-open.c (file_open_with_proc_and_display): removed the undo clearing/sanitizing code... (file_open_image): ...and added it here so *all* newly opened images start with a clean and sane undo state. * app/gui/file-commands.c (file_revert_confirm_callback): removed (incomplete) undo sanitizing here too. 2004-03-22 Sven Neumann * tools/gimp-remote.c: use putenv(); setenv() isn't available everywhere (bug #137930). 2004-03-22 Michael Natterer * app/display/gimpdisplayshell.c (gimp_display_shell_reconnect): call gimp_display_shell_expose_full() so the whole canvas gets cleared when reverting the image. 2004-03-22 Sven Neumann * libgimpbase/gimpparasiteio.c (gimp_pixpipe_params_parse): clamp the pixpipe dimension to the allowed range. Fixes bug #137902. 2004-03-22 Sven Neumann * app/text/gimptextlayer.c (gimp_text_layer_duplicate): put some code back in that I removed accidentally. (gimp_text_layer_render) freeze/thaw notifications to avoid that two "notify::modified" signals are emitted. 2004-03-22 Raphaël Quinet * autogen.sh: Added a test for the version of intltool because some of the recent versions are known to break the Tips file. This fixes bug #137502. The message should be updated when a new version of intltool is released. 2004-03-22 Simon Budig * app/widgets/gimpdock.c: set the minimum of the "default_heigt" property range to -1, this enables users to disable this feature via gtkrc. 2004-03-22 Sven Neumann * app/widgets/gimpdock.c: added a style property "default_height" and set a window default size for new docks. Fixes bug #137876. * themes/Default/gtkrc: document the default dock height. * themes/Small/gtkrc: set a smaller default dock height here. 2004-03-21 Sven Neumann * app/core/gimpundo.[ch]: added gimp_undo_type_to_name() a similar function used to live in gimpimage-undo.[ch]. * app/core/gimpitemundo.c (gimp_item_undo_new): allow NULL as name and generate it from the undo_type then. * app/core/gimpimage-undo.[ch]: added gimp_image_undo_push_undu(), new function that allows to push an undo on the image. * app/text/Makefile.am * app/text/text-types.h * app/text/gimptextundo.[ch]: added GimpTextUndo, derived from GimpItemUndo. * app/core/gimpimage-undo-push.c (gimp_image_undo_push_text_layer): use the new code and simply push a text undo here. * app/tools/gimptexttool.c: compress text undos by peeking at the undo stack. Fixes bug #137766. 2004-03-21 Michael Natterer * libgimpbase/makefile.msc: * libgimpmodule/makefile.msc: s/1.3/2.0/g 2004-03-21 Michael Natterer * app/display/gimpdisplayshell-callbacks.c (gimp_display_shell_events): added run-time version check and do the workaround for bug #136636 only if the Gtk+ version is < 2.2.5. * m4macros/gimp-2.0.m4: require gimp >= 2.0.0 2004-03-21 Sven Neumann * plug-ins/helpbrowser/dialog.c: fixed check that suppresses unnecessary reloads of the current page. 2004-03-21 Sven Neumann * app/gui/debug-commands.h: corrected #define for the debug menu. 2004-03-21 Michael Natterer * app/widgets/gimpthumbbox.c: modify the event_box and preview styles in GtkWidget::style_set() instead of in gimp_thumb_box_new() so they follow theme changes correctly and the labels stay visible when switching to an "inverse" theme. 2004-03-20 Sven Neumann * Made 2.0rc1 release. 2004-03-20 Simon Budig * app/.cvsignore * docs/.cvsignore * tools/.cvsignore: updated to ignore 2.0 stuff :-) 2004-03-20 Pedro Gimeno Fixed several off-by-one problems in display: * app/display/gimpdisplayshell.h (PROJ_ROUND): New macro to apply to a float the same rounding method as the one used when rendering. (SCALEX, SCALEY): Use PROJ_ROUND instead of truncating. * app/display/gimpdisplayshell-transform.c (gimp_display_shell_transform_xy): Accept gdouble image coordinates even if the returned screen coordinates are integer. Use PROJ_ROUND instead of (gint) to apply proper rounding. Fixes bug #137566. * app/display/gimpdisplayshell-transform.h (gimp_display_shell_transform_xy): changed accordingly. * app/display/gimpdisplayshell-draw.c * app/tools/gimpdrawtool.c: make sure everywhere that PROJ_ROUND is used either directly or through gimp_display_shell_transform_xy, instead of using arbitrary rounding methods. 2004-03-20 Sven Neumann * configure.in: set version number to 2.0.0, version string to "2.0rc1". * app/Makefile.am * libgimp/Makefile.am * libgimpbase/Makefile.am * libgimpcolor/Makefile.am * libgimpmath/Makefile.am * libgimpmodule/Makefile.am * libgimpthumb/Makefile.am * libgimpwidgets/Makefile.am * tools/Makefile.am: changed 1.3 to 2.0 all over the place. * README * NEWS: updated for the 2.0rc1 release. 2004-03-20 Sven Neumann * app/text/gimptextlayer.c: it wasn't such a good idea to let GimpConfig take care of the text when duplicating a text layer; it didn't create a copy. Do that manually again; fixes bug #137786. 2004-03-20 Sven Neumann * app/tools/gimptexttool.c (gimp_text_tool_create_vectors): don't take the image from tool->gdisp, this might be a NULL pointer. * app/core/gimpimage-undo-push.c: removed debugging output. 2004-03-20 Sven Neumann * app/widgets/gimppropwidgets.c (gimp_prop_size_entry_callback): avoid to set the unit property with every size change; only set it if it actually changed. * app/core/gimpimage-undo-push.c (gimp_image_undo_push_text_layer): allow to pass a GParamSpec that identifies a single text property to be changed. In this case, don't store a GimpText object on the undo stack but only the changed value. * app/tools/gimptexttool.c: use the new undo feature to reduce the memory footprint of text undo for the common case. * app/text/gimptextlayer.c: changed accordingly. 2004-03-20 Simon Budig * app/core/gimpimage-qmask.c: Applied slightly modified patch from Sven. When the quickmask has a floating selection, anchor it before loading the selection and deleting the qmask channel. Fixes bug #137170. 2004-03-20 Simon Budig * app/gui/select-commands.[ch]: new callbacks to convert the current vector to the selection. * app/gui/image-menu.c: hook it into the menu. Default shortcut is Shift+V. Fixes bug #137754. 2004-03-20 Sven Neumann * app/text/gimptextlayer.c (gimp_text_layer_set): use the same undo group logic as in the text tool. Not really necessary since this function must not be called on modified text layers, but it's more consistent this way. 2004-03-20 Simon Budig * app/tools/gimpvectortool.c: Assigned "b" as the default shortcut for the path tool ("Bezier"). Fixes bug #137753. 2004-03-20 Sven Neumann * app/tools/gimptexttool.c: update the text editor when the text changes (for example when undoing text changes). Push a drawable undo when applying text changes to a modified text layer. 2004-03-20 Simon Budig * docs/gimp.1.in: fixed a mangeled entry and described "gimp --batch -". 2004-03-20 Sven Neumann * app/text/gimptextlayer.c (gimp_text_layer_render): don't fiddle with the item size, gimp_drawable_set_tiles() does the right thing. 2004-03-20 Sven Neumann * plug-ins/common/jigsaw.c: pack and show the "Jigsaw Style" radio buttons. Fixes bug #137737. 2004-03-20 Simon Budig * app/core/gimpundo.[ch]: Make it possible to refresh the preview of an undo step. * app/tools/gimpeditselectiontool.c * app/widgets/gimpitemtreeview.c * app/widgets/gimplayertreeview.c: refresh the preview when compressing undos. This ensures that the last preview in the undo history always reflects the current state of the image. 2004-03-20 Sven Neumann * app/core/gimpimage-undo-push.c (undo_pop_text_layer): fixed a bug that Mitch spotted. 2004-03-20 Sven Neumann * app/core/gimpimage-undo-push.c (undo_pop_text_layer): don't exchange the text_layer's text object but sync it with the text object from the undo step. * app/text/gimptextlayer.c (gimp_text_layer_set): in case the layer has a mask, push an undo group around the text modifications. * app/tools/gimptexttool.c (gimp_text_tool_idle_apply): push a text layer undo before applying the text changes. 2004-03-19 Sven Neumann * plug-ins/common/spread.c: don't call g_rand_int_range() with invalid parameters. 2004-03-19 Sven Neumann * app/text/gimptextlayer.[ch]: added gimp_text_layer_set(), a function that calls g_object_set() on the text-layer's text object and pushes an undo step. * app/display/gimpdisplayshell-dnd.c (gimp_display_shell_bucket_fill): use the new function. 2004-03-19 Sven Neumann * HACKING: some minor updates. 2004-03-19 Sven Neumann * app/text/gimptextlayer.c (gimp_text_layer_render): if there's a layer mask, resize it with the layer. * app/tools/gimptexttool.c: don't change text_tool->layer before calling gimp_text_tool_connect(). 2004-03-19 Sven Neumann * etc/ps-menurc: updated PS keybindings contributed by Eric Pierce. 2004-03-19 Sven Neumann * app/tools/gimptexttool.[ch]: added a confirmation dialog that is shown when the user attempts to modify a modified text layer. 2004-03-19 Michael Natterer * themes/Default/gtkrc * themes/Small/gtkrc: don't set the height of GtkHScales to 11px any longer. This modification was added only because at some time GTK+ 1.3.x (!!!) looked strange with the default size. 2004-03-19 Sven Neumann * libgimpwidgets/gimpwidgets.c (gimp_scale_entry_new_internal): if a tooltip is given, put the label into an eventbox (bug #137612). 2004-03-19 Michael Natterer * app/display/gimpdisplayshell.c (gimp_display_shell_new): added runtime check for GTK+ >= 2.4.0 and make sure the menubar's accels can be invoked even if the menubar is invisible (workaround for bug #137151). 2004-03-19 Michael Natterer * app/gui/color-notebook.c (color_notebook_new) * app/tools/gimpcroptool.c (crop_info_create) * app/tools/gimptransformtool.c (gimp_transform_tool_dialog): explicitely set a default response for dialog buttons which were created using gtk_dialog_add_buttons(). 2004-03-18 Sven Neumann * app/tools/gimptexttool.[ch]: cleaned up text tool logic. 2004-03-18 Michael Natterer * app/widgets/gimpitemtreeview.c: simplified visibility and linked undo compression by passing an UNDO type, not an UNDO_GROUP type. Fixed (made weird) compression of "exclusive visible/linked" undos to only compress undos of the same item type (only compress layer visibility if we pushed a *layer* visibility before, not a channel or vectors visibility). Even worse, we need to push the visibility/linked state of *all* items when pushing an exclusive group, otherwise compression won't work. 2004-03-18 Manish Singh * libgimp/gimptypes.h: removed obsolete GimpParamColor typedef. 2004-03-18 Sven Neumann * plug-ins/script-fu/script-fu-console.c: applied a patch from Kevin Cozens that slightly alters the Script-Fu console output. 2004-03-18 Sven Neumann * app/gui/layers-commands.c (layers_text_tool) * app/gui/layers-menu.c (layers_menu_update): treat modified text layers like normal layers. * app/gui/layers-commands.c (layers_edit_layer_query): added a check button that gives access to the "auto-rename" property of a text layer. * app/text/gimptextlayer.c: typo. * app/widgets/gimppreviewrendererlayer.c (gimp_preview_renderer_layer_render): show the text layer icon for unmodified text layers only. 2004-03-18 Simon Budig * app/widgets/gimpitemtreeview.c: compress visibility and linked undos. 2004-03-18 Sven Neumann * app/display/gimpdisplayshell-dnd.c (gimp_display_shell_bucket_fill): added a missing call to gimp_image_flush(). * app/tools/gimptexttool.c: propagate text changes to the tool options. * app/text/gimptextlayer.c: made "text", "auto-rename" and "modified" properties of the text layer and copy them when duplicating a text layer. * app/text/gimptextlayer-xcf.[ch]: added utility functions to convert the new properties to flags to be saved in the XCF file. * app/xcf/xcf-load.c * app/xcf/xcf-private.h * app/xcf/xcf-save.c: load and save text layer properties. Disabled warnings about unknown properties for stable branches. 2004-03-18 Simon Budig * app/gui/layers-commands.c: Initialize a new layer unconditionally. Spotted by Roman Joost. 2004-03-18 Sven Neumann * app/widgets/gimphelp.c: disabled debug output. * plug-ins/help/domain.[ch] * plug-ins/help/help.[ch] * plug-ins/help/locales.c: improved error reporting, fixed bugs and disabled debug output. 2004-03-18 Michael Natterer * plug-ins/common/CML_explorer.c * plug-ins/common/gtm.c: changed procedure names to be all lowercase so 2.0 ships with a sane namespace and doesn't give bad examples to plug-in authors. 2004-03-18 Sven Neumann Added support for localized help (bug #136996). Will need some minor touches to improve error reporting but basically it works. * plug-ins/help/Makefile.am * plug-ins/help/help.h: new file with common defines. * plug-ins/help/help.c * plug-ins/help/locales.c: include help.h, made debugging output optional. * plug-ins/help/domain.[ch]: added a hash table with locales for each help domain. 2004-03-18 Sven Neumann * plug-ins/help/Makefile.am * plug-ins/help/locales.[ch]: new files with code to handle locales. * plug-ins/help/help.c: changed accordingly. * plug-ins/help/domain.[ch]: added support for a fallback URL to handle missing help content. I18n support is missing still. 2004-03-17 Simon Budig * app/core/gimpbrushpipe.c: ensure that each rank of a brushpipe is >= 1. Fixes bug #137529 2004-03-17 Sven Neumann * app/widgets/gimpbrushfactoryview.c * app/widgets/gimpdatafactoryview.c * app/widgets/gimppatternfactoryview.c: removed redundant code. 2004-03-17 Simon Budig * app/gui/channels-commands.c * app/gui/layers-commands.c * app/gui/vectors-commands.c * app/widgets/gimpitemtreeview.c: shuffled some gimp_image_flush()'es around. 2004-03-17 Simon Budig * app/gui/channels-commands.c * app/gui/layers-commands.c * app/gui/vectors-commands.c: Make sure that non-dialog creation of layer/channels/vectors properly updates the image. Also clear the new channel unconditionally. Change the name of the newly created item to not include the "Copy". It isn't a copy. * app/widgets/gimpitemtreeview.c: Don't try to assemble translated strings. * app/widgets/gimpchanneltreeview.c * app/widgets/gimplayertreeview.c * app/widgets/gimpvectorstreeview.c: properly overwrite the tooltip for the "New" button. Sorry, some real string changes ahere, but they were necessary. 2004-03-17 Michael Natterer * app/core/gimpdrawable-transform.c (gimp_drawable_transform_paste): push the undo group around all operations, not just around some of them. Pulled common code out of the if() { } else { } construct. Cleanup. 2004-03-17 Simon Budig * app/gui/plug-in-menus.c: Sort the plugin menu entries with the mnemonics stripped. Avoids weird ordering in the "C" and "POSIX" locales. Fixes bug #137435. * app/widgets/gimpitemtreeview.c: make a simple click on the "New" Button use defaults and use shift-click for the new-dialog invocation. Some more useless button cleanup: * app/widgets/gimpdatafactoryview.c: only create an Edit button when the edit_function is set. * app/core/gimp.c: don't set an edit func for the patterns. * app/gui/patterns-menu.c: Don't create the "New", "Edit" and "Duplicate" Menu entries for the patterns. * app/widgets/Makefile.am * app/widgets/widgets-types.h * app/widgets/gimppatternfactoryview.[ch]: New widget: gimp_pattern_factory_view. Necessary to be able to hide the "duplicate" button... * app/gui/dialogs-constructors.c: Use it. 2004-03-17 Sven Neumann Changes for help i18n in the core, the rest will take place in the help plug-in: * app/text/gimptext.[ch]: removed gimp_text_get_default_language() * app/core/gimp-utils.[ch]: ... and added it here as gimp_get_default_language(). * app/config/gimprc-blurbs.h * app/config/gimpdisplayconfig.[ch]: added property "help-locales". * app/widgets/gimphelp.c: use the new property and pass it to the help plug-in. * app/core/gimpselection.c (gimp_selection_invalidate_boundary): removed unused variable. 2004-03-17 Simon Budig * app/widgets/gimplayertreeview.c * app/widgets/gimpvectorstreeview.c * app/widgets/gimpdatafactoryview.c: remove basically useless edit buttons in the layers, vectors and patterns dialog. * app/widgets/gimpitemtreeview.c: Make Shift-Click on the "New" button create a new item using defaults. 2004-03-16 Michael Natterer * app/core/gimpdrawable.c (gimp_drawable_set_tiles): ref new tiles before unrefing the old ones. * app/core/gimpimage-undo-push.c: keep undo memsize exact by adjusting undo->size when the stored data changes. * app/core/gimpchannel.[ch] (gimp_channel_new_from_alpha) * app/core/gimpchannel-select.[ch] (gimp_channel_select_alpha): replaced "layer" parameter by "drawable". * app/gui/layers-commands.c * tools/pdbgen/pdb/selection.pdb: changed accordingly. * app/pdb/selection_cmds.c: regenerated. * app/core/gimpchannel.c * app/core/gimplayer.c * app/core/gimplayermask.[ch] * app/core/gimpselection.c: remdom cleanup & code review. 2004-03-16 Michael Natterer * app/core/gimplist.c (gimp_list_dispose): removed this function. It was removing all items without freezing the container first, which caused excessive signal handler activity in GimpContext. Cleaned up the whole file a bit. * app/core/gimpcontainer.c (gimp_container_dispose): call gimp_container_clear() which does the right thing and e.g. speeds up quitting significantly when gimp->documents is huge. Reported by Jimmac. 2004-03-16 Simon Budig * app/gui/plug-in-commands.c: Update the Plugin Menu immediately after setting the last invoked plugin. Fixes inconsistencies between name shown and plugin invoked. Fixes #136909, #137242 and #81479 (again, the fix in lightening_main.c only probably was bogus, since this must not rely on correctly written plugins). * plug-ins/common/compose.c * plug-ins/common/decompose.c * plug-ins/common/film.c * plug-ins/common/screenshot.c * plug-ins/common/smooth_palette.c * plug-ins/common/tile.c * plug-ins/fits/fits.c: Ensure that each gimp_image_undo_enable() had a gimp_image_undo_disable() first... 2004-03-16 Michael Natterer * app/core/gimpimage-undo-push.c: removed unused #includes. 2004-03-15 Sven Neumann * app/tools/gimptexttool.c (gimp_text_tool_apply): look ahead in the queue of pending changes and compress changes to the same property. Fixed a couple of smaller issues. * app/widgets/gimpwidgets-utils.c: corrected indentation. 2004-03-16 Michael Natterer * app/widgets/gimpthumbbox.c (gimp_thumb_box_new): set a fixed width on the "filename" and "info" labels so they clip their texts rather than expand the thumb_box when the text is too wide (spotted by Jonathan Blandford). 2004-03-15 Michael Natterer * app/core/core-enums.[ch] (enum GimpUndoType): replaced GIMP_UNDO_LAYER_MOD and GIMP_UNDO_CHANNEL_MOD by GIMP_UNDO_DRAWABLE_MOD. * app/core/gimpimage-undo-push.[ch]: ditto: replaced gimp_image_undo_push_layer_mod() and gimp_image_undo_push_channel_mod() by gimp_image_undo_push_drawable_mod(). * app/core/gimpdrawable.[ch]: added undo_desc strings for "resize" and "scale" to the GimpDrawableClass struct. (gimp_drawable_scale) (gimp_drawable_resize): pass push_undo = TRUE to gimp_drawable_set_tiles_full() and use the undo_desc from the class. (gimp_drawable_real_set_tiles): push a GIMP_UNDO_DRAWABLE_MOD here... * app/core/gimpchannel.c * app/core/gimplayer.c: ...and don't push undos in GimpItem::scale(), GimpItem::resize(), GimpDrawable::set_tiles(). * app/core/gimpchannel.c: Removed even more bounds_known = FALSE assignments from functions which already call gimp_drawable_set_tiles(). 2004-03-15 Michael Natterer * app/core/gimpdrawable.c (gimp_drawable_set_tiles_full): emit "update" signals from the drawable before and after setting tiles and offsets. * app/core/gimpdrawable-offset.c (gimp_drawable_offset) * app/core/gimpdrawable-transform.c (gimp_drawable_transform_paste) * app/core/gimpimage-undo-push.c (undo_pop_layer_mod, _channel_mod) * app/text/gimptextlayer.c (gimp_text_layer_render) * app/tools/gimptransformtool.c (gimp_transform_tool_doit): removed calls to gimp_drawable_update(). * app/core/gimpdrawable-offset.c (gimp_drawable_offset): don't push an undo step before calling gimp_drawable_set_tiles() but simply pass push_undo == TRUE and the undo_desc. 2004-03-15 Michael Natterer * app/core/gimpdrawable.[ch]: added "offset_x" and "offset_y" parameters to GimpDrawable::set_tiles(). (gimp_drawable_set_tiles): removed the "GimpImageType" parameter. (gimp_drawable_set_tiles_full): new function adding type, offset_x and offset_y parameters. (gimp_drawable_real_set_tiles): set the drawable's offsets from the offset parameters and its size from the passed TileManager's size. Emit "size_changed" accordingly. * app/core/gimpchannel.c * app/core/gimpdrawable-offset.c * app/core/gimpdrawable-transform.c * app/core/gimpimage-convert.c * app/core/gimpimage-undo-push.c * app/core/gimplayer.c * app/text/gimptextlayer.c * app/tools/gimptransformtool.c: changed accordingly: removed calls to gimp_viewable_size_changed() and all sorts of hackish assignments of the drawable's width/height/offset_x/offset_y properties. 2004-03-15 Michael Natterer * app/text/gimptextlayer.c (gimp_text_layer_render): don't call gimp_image_flush(). * app/tools/gimpxttool.c (gimp_text_tool_apply): call it here instead. Now that we have a common place that exchanges drawable->tiles, we can abstract away boundary invalidation for this operation: * app/core/gimpdrawable.c (gimp_drawable_real_set_tiles): call gimp_drawable_invalidate_boundary() before setting the new tiles. * app/core/gimpchannel.c (gimp_channel_set_tiles) * app/core/gimpdrawable-transform.c (gimp_drawable_transform_paste) * app/core/gimpimage-undo-push.c (undo_pop_layer_mod) * app/core/gimplayer.c (gimp_layer_scale) (gimp_layer_resize) (gimp_layer_flip) (gimp_layer_rotate) (gimp_layer_transform) * app/text/gimptextlayer.c (gimp_text_layer_render): removed calls to gimp_drawable_invalidate_boundary() from all functions which finally call gimp_drawable_real_set_tiles(). * app/tools/gimptransformtool.c (gimp_transform_tool_doit): no need to set channel->bounds_known to FALSE, because gimp_drawable_set_tiles() already did this. 2004-03-15 Sven Neumann * app/gui/splash.c: moved global variables to a struct and optimized the area exposed from splash_update(). 2004-03-15 Michael Natterer * app/core/gimpimage.[ch]: added "gboolean alpha_changed" to GimpImageFlushAccumulator. Install an "alpha_changed" handler on gimage->layers and set flush_accum.alpha_changed = TRUE whenever the image's *only* layer changed its alpha. * app/core/gimpimage-undo-push.c (undo_pop_layer_mod) * app/core/gimplayer.c (gimp_layer_add_alpha): removed explicit calls to gimp_image_alpha_changed(). 2004-03-15 Simon Budig * app/base/tile-swap.[ch]: Applied a modified version of a patch from Raphaël, that implements a test if a swap file can be created. Also make the failure message more verbose. * app/base/base.[ch]: extend base_init() with a boolean return to indicate if the test to create a swap file was OK. * app/app_procs.c: Display a warning message at startup when the test fails. Fixes bug #64835. 2004-03-15 Michael Natterer * app/core/gimpdrawable.c (gimp_drawable_real_set_tiles): emit "alpha_changed" if the drawable got/lost an alpha channel by setting the new tiles. * app/core/gimpimage-undo-push.c (undo_pop_layer_mod) * app/core/gimplayer.c (gimp_layer_add_alpha): removed explicit calls to gimp_drawable_alpha_changed(). 2004-03-15 Michael Natterer Closer to text layer undo: * app/core/gimpchannel.c (gimp_channel_set_tiles): invalidate the channel's boundary and bounds. * app/text/gimptextlayer.c: implement GimpDrawable::swap_pixels() and set text_layer->modified = TRUE after upchaining. (gimp_text_layer_render): use gimp_drawable_set_tiles() and set text_layer->modified = FALSE afterwards. * app/core/gimpimage-undo-push.c: cleaned up variable declarations and initializations. (undo_pop_layer_mod) (undo_pop_channel_mod): use gimp_drawable_set_tiles() instead of touching drawable->tiles manually. Now all pixel manipulation (at least on layers) should be virtualized and can be detected by the text layer. 2004-03-15 Michael Natterer Prepare the undo system for proper text layer undo: * app/core/core-enums.[ch] (enum GimpUndoType): replaced GIMP_UNDO_IMAGE and GIMP_UNDO_IMAGE_MOD by GIMP_UNDO_DRAWABLE. * app/core/gimpimage-undo-push.[ch]: ditto: replaced gimp_image_undo_push_image() and gimp_image_undo_push_image_mod() by gimp_image_undo_push_drawable() which *always* expects to get a TileManager passed. Also added g_return_if_fail()s to check if the passed in tile manager follows the semantics of the "sparse" boolean. (undo_pop_drawable): removed all code and call the new gimp_drawable_swap_pixels() instead (see below). * app/core/gimpdrawable.[ch] (gimp_drawable_push_undo): if tiles are NULL, create a copy of the area here and always pass tiles to gimp_image_undo_push_drawable(). Added lots of g_return_if_fail() here too. Added new vitrual function GimpDrawable::swap_pixels() which does what undo_pop_drawable() did. * app/core/gimpchannel.c: implement swap_pixels() and invalidate the channel's bounds and boundary. 2004-03-15 Sven Neumann * app/gui/preferences-dialog.c: don't show a web-browser setting on win32, it's not used there (see bug #137173). 2004-03-15 Sven Neumann * data/images/gimp_splash.png: splash image for GIMP 2.0 by Jimmac. * app/gui/splash.[ch]: draw the text on the splash image, not below it. * app/app_procs.[ch] * app/gui/gui.[ch] * app/main.c * docs/gimp.1.in: dropped support for the --no-splash-image command-line option (not to be confused with --no-splash). It was never very useful and makes even less sense in times where startup notification is available. 2004-03-15 Simon Budig * app/core/gimpimage.[ch] * app/core/gimpimage-undo.c: renamed gimage->freeze_count to gimage->undo_freeze_count (more explicit). * app/file/file-open.c: Ensure that the undo system is enabled after loading an image (to protect against broken loaders). 2004-03-14 Sven Neumann * app/tools/gimpcolorpickertool.c * app/tools/gimpcroptool.c * app/tools/gimpimagemaptool.c * app/tools/gimpmeasuretool.c * app/tools/gimptransformtool.c: don't set tool dialogs transient to the image window. Fixes bug #128833. 2004-03-14 Sven Neumann * app/gui/about-dialog.c: don't abuse the SPLASHSCREEN window type hint, instead make the about dialog a popup window and center it explicitely. 2004-03-14 Sven Neumann * app/widgets/gimptooldialog.c (gimp_tool_dialog_new): allow to pass NULL as parent widget. 2004-03-14 Sven Neumann * app/gui/splash.c: some code cleanup. * app/gui/about_dialog.c: typo. 2004-03-14 Simon Budig * plug-ins/common/jpeg.c: No need to use an undo_group *and* freeze/thaw an image. Just using the latter keeps the undo history ok in both directions. Also call gimp_displays_flush() to make sure the undo keyboard shortcuts are enabled after the plugin ends. 2004-03-14 Simon Budig * app/core/gimpimage.[ch] * app/core/gimpimage-undo.c: introduced a freeze counter, so that undo_freeze(); undo_freeze(); undo_thaw(); no longer results in an thawed undo stack. Fixes Bug #124176. This might reveal other places in the code where gimp_image_undo_freeze/thaw or gimp_image_undo_disable/enable were used in an inconsistent (not-paired) manner. * app/file/file-open.c: e.g. here, where _enable was called on the new image. The intention was to free a potential undo stack, so now call gimp_image_undo_free() instead. 2004-03-14 Sven Neumann * app/text/gimptextlayer.[ch]: removed all idle handling here. Changes to the text-layer's text object all applied synchronously. * app/display/gimpdisplayshell-dnd.c * app/text/gimptextlayer-transform.c: removed now obsolete calls to gimp_text_layer_flush(). * app/tools/gimptexttool.[ch]: queue up changes to the proxy text object and apply them in one go from a low-priority idle handler. This is basically what GimpTextLayer used to do. 2004-03-14 Sven Neumann * app/tools/gimptextoptions.[ch] * app/tools/gimptexttool.[ch]: introduced a proxy GimpText object that is tied to the GimpTextOptions for the lifetime of the text tool. Brings us one step closer to text undo... 2004-03-14 Michael Natterer * app/core/gimpdrawable-offset.c (gimp_drawable_offset) * app/core/gimpdrawable.c (gimp_drawable_scale) (gimp_drawable_resize) * app/core/gimplayer.c (gimp_layer_convert) (gimp_layer_add_alpha): use gimp_drawable_set_tiles() instead of fiddling with drawable->tiles, ->bytes etc. manually. 2004-03-13 Michael Natterer * app/widgets/gimpdialogfactory.[ch]: made enum GimpDialogVisibilityState and GIMP_DIALOG_VISIBILITY_KEY public. * app/widgets/gimpsessioninfo.c (gimp_session_info_get_geometry): only look at GTK_WIDGET_VISIBLE(info->widget) if the dialog's visibility state is GIMP_DIALOG_VISIBILITY_UNKNOWN and map the visibility state to info->open otherwise. Fixes bug #137076. 2004-03-13 Sven Neumann * app/core/gimpdrawable-blend.c (gradient_calc_shapeburst_*): applied a patch from Pedro Gimeno that fixes the crash reported in bug #136219. 2004-03-13 Michael Natterer Completed the fix for bug #136702: * app/core/gimpitem.[ch]: added "gboolean supersample" and "gint recursion_level" to GimpItem::transform(). * app/core/gimpitem-linked.[ch] (gimp_item_linked_transform): ditto. * app/core/gimpdrawable-transform.[ch]: added "recursion_level" parameters and removed the RECURSION_LEVEL #define. * app/core/gimpchannel.c * app/core/gimpdrawable.c * app/core/gimplayer.c * app/vectors/gimpvectors.c: changed accordingly. * app/tools/gimptransformoptions.[ch]: added new property "recursion_level" which is not serializable and has no GUI. Pretty useless, but it's IMHO better to hardcode the default value here than in gimpdrawable-transform.c * app/tools/gimptransformtool.c: changed accordingly. * tools/pdbgen/pdb/transform_tools.pdb: hardcode "recursion_level" to 3. * app/pdb/transform_tools_cmds.c: regenerated. 2004-03-13 Simon Budig * app/widgets/widgets-enums.h * app/widgets/gimppreviewrenderer.[ch]: New function gimp_preview_renderer_set_border_type that takes an enum instead of an color to set the color of the border. * app/widgets/gimpcellrendererviewable.c: check for the current border_type and change it to black when it is white and the cell is unselected. This should be solved in a better way later. Fixes bug #135023. * app/widgets/gimplayertreeview.c * app/widgets/gimpcontainergridview.c: changed to use the new function. 2004-03-13 Pedro Gimeno * plug-ins/script-fu/scripts/carve-it.scm * plug-ins/script-fu/scripts/chrome-it.scm * plug-ins/script-fu/scripts/crystal-logo.scm * plug-ins/script-fu/scripts/sota-chrome-logo.scm: Fixed to avoid pasting to a layer that was not added to any image. This was causing the scripts to abort, because gimp-edit-paste is now failing in that case. 2004-03-13 Sven Neumann * app/tools/gimpblendoptions.c: override the "gradient_repeat" property inherited from GimpPaintOptions and set the default to GIMP_REPEAT_NONE. Seems more appropriate for the blend tool. 2004-03-13 Sven Neumann * app/text/gimptextlayer.[ch]: implement GimpDrawable functions that affect the tiles and mark the text layer as modified. Added new function gimp_drawable_is_text_layer() that checks whether a drawable is an unmodified text layer. * app/display/gimpdisplayshell-dnd.c (gimp_display_shell_bucket_fill): use gimp_drawable_is_text_layer() and only set the text color if the text layer is unmodified. Fixes bug #136623. 2004-03-13 Sven Neumann * app/core/gimpdrawable.[ch]: added new virtual function GimpDrawable::set_tiles(). * app/core/gimpchannel.c * app/core/gimplayer.c: push an undo before chaining up in set_tiles(). * app/core/gimpdrawable-transform.c * app/core/gimpimage-convert.c * app/tools/gimptransformtool.c: use gimp_drawable_set_tiles() instead of fiddling with the drawable's tile manager directly. 2004-03-13 Sven Neumann * app/tools/gimptransformoptions.c (gimp_transform_options_gui): for consistency, changed the label from "Supersample" to "Supersampling". 2004-03-13 Sven Neumann * app/paint-funcs/paint-funcs.c: use g_printerr() for debug output. * app/base/tile-manager.c: cleaned up stone-old debug output. 2004-03-13 Raphaël Quinet * app/tools/gimptransformoptions.[ch]: added new "supersample" property to GimpTransformOptions and added corresponding check button in the option dialog for the transform tools. * app/core/gimpdrawable-transform.[ch], * app/core/gimpdrawable.c, * app/tools/gimptransformtool.c: new "gboolean supersample" parameter added to gimp_drawable_transform_tiles_affine() and gimp_drawable_transform_affine(). * tools/pdbgen/pdb/transform_tools.pdb: ditto. For the PDB calls, the supersample parameter is set to FALSE for "rotate" and "shear" and set to TRUE for "perspective", "scale" and "transform_2d". * app/pdb/transform_tools_cmds.c: regenerated. The new "supersample" option lets the user decide if the transformations should use supersampling (RECURSION_LEVEL 3) or not. This fixes both bug #136702 and bug #109817. Hopefully for good, this time. 2004-03-13 Raphaël Quinet * app/tools/gimptexttool.c (gimp_text_tool_set_layer): added missing semicolon that was breaking the build. 2004-03-13 Sven Neumann * app/tools/gimptexttool.c (gimp_text_tool_set_layer): bugfix. 2004-03-13 Sven Neumann * app/widgets/gimpcontainermenuimpl.c: marked missing string for translation (spotted by Branko Collin). 2004-03-13 Sven Neumann * app/tools/gimptextoptions.[ch]: use a GimpSizeEntry for the font size. * app/tools/gimptexttool.c: set the size entry's resolution to the image resolution. Fixes bug #118356. 2004-03-13 Sven Neumann * app/tools/gimptexttool.[ch]: keep a pointer on the active text layer and let the tool follow the active layer. Fixes bug #124970. * app/gui/layers-commands.c: changed accordingly. 2004-03-12 Michael Natterer Cleaned up the remaining libgimp API issues: * libgimp/gimppixelfetcher.[ch] (enum GimpPixelFetcherEdgeMode): added new enum value GIMP_PIXEL_FETCHER_EDGE_BACKGROUND so we can actually use the bg_color feature of the GimpPixelFetcher. (gimp_pixel_fetcher_new): added "gboolean shadow" parameter because it must not change while the GimpPixelFetcher exists. (gimp_pixel_fetcher_set_shadow): removed. (gimp_pixel_fetcher_set_bg_color): added "GimpRGB *color" parameter and don't call gimp_palette_get_foreground(). (gimp_pixel_fetcher_get_pixel): handle BACKGROUND mode. Cleaned up the function. (gimp_get_bg_guchar) (gimp_get_fg_guchar): removed these functions... * libgimp/gimpdrawable.[ch]: ...and added gimp_drawable_get_color_uchar() instead. * libgimp/gimp.def * plug-ins/common/blinds.c * plug-ins/common/checkerboard.c * plug-ins/common/cubism.c * plug-ins/common/curve_bend.c * plug-ins/common/displace.c * plug-ins/common/edge.c * plug-ins/common/illusion.c * plug-ins/common/mblur.c * plug-ins/common/mosaic.c * plug-ins/common/plasma.c * plug-ins/common/polar.c * plug-ins/common/ripple.c * plug-ins/common/shift.c * plug-ins/common/spread.c * plug-ins/common/tileit.c * plug-ins/common/whirlpinch.c * plug-ins/gflare/gflare.c * plug-ins/libgimpoldpreview/gimpoldpreview.c: changed accordingly. (Didn't test the changed plug-ins because I wanted to get this API change into CVS as soon as possible) 2004-03-12 Raphaël Quinet * app/core/gimpdrawable-transform.c (RECURSION_LEVEL): Set to 0 in order to avoid nasty blurring effects. Fixes bug #136702, but re-opens bug #109817. This is the best compromise for 2.0. Later, we will have to make the supersampling optional as suggested in the original patch to bug #109817. 2004-03-12 Sven Neumann * plug-ins/script-fu/siod-wrapper.c (marshall_proc_db_call): applied a patch from Kevin Cozens that improves Script-Fu error reporting (addresses bug #73610). 2004-03-12 Sven Neumann * data/misc/gimp.keys.in: removed category entry. This would have to be translated and it's not our job to define where image/jpeg belongs to. 2004-03-12 Sven Neumann * app/tools/gimpcurvestool.c * app/tools/gimpinktool.c * app/tools/gimptool.c: print debug output to stderr. 2004-03-12 Simon Budig * libgimp/gimppixelfetcher.c: fixed off-by-one error in gimp_pixel_fetcher_get_pixel () for EDGE_BLACK mode. Fixes bug #136907 2004-03-12 Sven Neumann * app/display/gimpdisplayshell-dnd.c (gimp_display_shell_bucket_fill): only set the text layer's color if a color is being dropped. Fixes crash on pattern drops (bug #136645). 2004-03-12 Sven Neumann * app/tools/gimptexttool.c (gimp_text_tool_editor): always connect the "text_changed" signal so text layers can be edited again. 2004-03-12 Sven Neumann * app/gui/tool-options-menu.c (tool_options_menu_entries): added explicit menu branches to allow them to be translated (bug #136937). 2004-03-11 Sven Neumann * app/tools/gimptextoptions.c (gimp_text_options_create_text): set the color of the new text from the context foreground color. 2004-03-11 Sven Neumann * app/tools/gimptextoptions.[ch]: redid the color handling. Still not perfect, but it is somewhat cleaner. 2004-03-11 Sven Neumann * app/core/gimpcontext.c: reverted a small change that I didn't want to commit at all. 2004-03-11 Sven Neumann * app/config/gimpconfig-utils.c: made gimp_config_sync() and gimp_config_connect() also work on objects of different types. Properties with the same name and the same type are synced / connected. * app/core/gimpcontext.[ch]: added convenience functions to get/set the font by name. * app/tools/gimptextoptions.[ch]: don't hold a GimpText object that duplicates properties like font and color which are in GimpContext already. Instead added all text properties that are controlled from the text tool options. Handling of the foreground color is somewhat broken and needs a GimpContext wizard (Mitch!). * app/text/gimptext.c: blurbs are not any longer needed now that the property widgets are created from the GimpTextOptions. * app/tools/gimptexttool.c: changed accordingly. * app/widgets/gimptexteditor.[ch]: use an internal GtkTextBuffer and emit "text-changed" when it changes. 2004-03-11 Sven Neumann * plug-ins/common/colortoalpha.c: when running in interactive mode, get the foreground color after restoring the parameters from the last run. 2004-03-11 Sven Neumann * app/tools/gimpimagemaptool.c (gimp_image_map_tool_initialize): connect to notify::preview using g_signal_connect_object(). Fixes bug #136850. 2004-03-10 Manish Singh * data/misc/gimp.applications.in: GIMP_VISIBLE_NAME doesn't exist anymore. Just use "The GIMP". 2004-03-10 Manish Singh * acinclude.m4: #include for gimp-print test. Fixes #136747. 2004-03-10 Michael Natterer * app/display/gimpdisplayshell-callbacks.c (gimp_display_shell_canvas_tool_events): redid last change so it calls tool_manager_cursor_update_active() *before* tool_manager_button_press_active(). Removes the ugly "force_cursor_updating" boolean again and adds even more ugly code duplication instead. 2004-03-10 Michael Natterer * app/display/gimpdisplayshell-callbacks.c (gimp_display_shell_canvas_tool_events): added new local state "gboolean force_cursor_updating" which makes the function call tool_manger_cursor_update_active() even though a mouse button is pressed. Fixes tool cursors in click-to-focus mode. Reported by Michael Schumacher. 2004-03-10 Michael Natterer * app/display/gimpdisplayshell-callbacks.c (gimp_display_shell_events): work around bug #136636 (Win32 only) and ask the current device for its modifier state in order to fill in the missing GDK_BUTTON*_MASK bits in GdkEventKey::state. 2004-03-10 Ville Pätsi * Makefile.am * configure.in: Removed gimp.spec creation and distribution. 2004-03-10 Michael Natterer * app/display/gimpdisplayshell-callbacks.c: disabled debugging output when pushing/popping the move too using . 2004-03-10 Simon Budig * app/base/cpu-accel.c * app/display/gimpdisplayshell-dnd.c * app/tools/gimpvectortool.c * app/vectors/gimpbezierstroke.c * app/vectors/gimpvectors-import.c: Removed, disabled or conditionalized some debug output. There still is debug output when pushing/popping the move tool via space bar. Mitch wanted to look at that. 2004-03-10 Simon Budig * app/widgets/gimpdnd.c: Disabled debug output and made it conditional with DEBUG_DND. 2004-03-10 Michael Natterer * app/paint-funcs/paint-funcs.h * libgimpwidgets/gimphelpui.c: fixed prototypes to match function definitions. Fixes bug #136343. * app/base/temp-buf.c (temp_buf_new): remove unused variable. 2004-03-10 Michael Natterer * app/tools/gimpdrawtool.c * app/tools/gimpselectiontool.c * app/tools/gimptool.c * app/tools/gimptransformtool.c: minor cleanup. 2004-03-10 Michael Natterer * app/tools/tool_manager.c (tool_manager_image_dirty): don't reinitialize the tool when the image becomes dirty but just cancel it (fixes bug #131965). Also, only cancel the tool if the tool is operating on one of the dirtied image's displays (fixes bug #12253). 2004-03-10 Sven Neumann * plug-ins/imagemap/imap_object_popup.c: marked missing strings for localization (bug #136713). * plug-ins/imagemap/imap_stock.c (imap_stock_items): fixed bogus translation domain for stock item (bug #136713). 2004-03-10 Michael Natterer * tools/pdbgen/pdb/edit.pdb (edit_cut, edit_copy): added boolean return value indicating whether the cut/copy was successful. Fixes bug #136489. * app/pdb/edit_cmds.c * libgimp/gimpedit_pdb.c: regenerated. 2004-03-10 Sven Neumann * plug-ins/ifscompose/ifscompose.c: added missing localization for popup menu (bug #136706). 2004-03-10 Michael Natterer * app/gui/file-save-dialog.c (file_save_dialog_save_image): added boolean return value and don't hide the file dialog on success but return TRUE. (file_save_dialog_response) (file_save_overwrite_callback): hide the file dialog here instead. 2004-03-09 Michael Natterer * app/tools/gimpmovetool.c (gimp_move_tool_button_press): redid my last layer_mask vs. layer move fix by reordering the whole function: now we first check if we can pick a path, guide or layer and bail out early if we can't; do the actual init_edit_selection() calls in a trivial unconditional switch() after that picking check. Removes code duplication and makes the whole function less nested and weird. Cleaned up the whole file a bit. 2004-03-09 Sven Neumann * app/widgets/gimphelp.c (gimp_help_internal): call procedural_db_destroy_args() with the correct nargs. 2004-03-09 Simon Budig * app/gui/preferences-dialog.c: Resurrect the "Save"-Button in the input-devices dialog, to avoid to confuse the users as described in bug #128588. This is not a proper fix though, since the input device configuration should be independant from the tool configuration. However, we can bump this bug to 2.2 now. 2004-03-09 Sven Neumann * plug-ins/gimpressionist/general.c: fixed typo (bug #136610). 2004-03-09 Sven Neumann Finished some work that Brix started on the help system. It's now possibly to use an external web-browser for context help (bug #136081): * configure.in * plug-ins/Makefile.am * plug-ins/help/Makefile.am * plug-ins/help/domain.[ch] * plug-ins/help/help.c: new plug-in that does the help domain management. Most of this used to live in the helpbrowser plug-in. * plug-ins/helpbrowser/Makefile.am * plug-ins/helpbrowser/domain.[ch]: removed these two files here. * plug-ins/helpbrowser/helpbrowser.c: changed accordingly. * app/widgets/gimphelp.c: use the new help plug-in. 2004-03-08 Sven Neumann * app/gui/convert-dialog.c (indexed_palette_select_palette): added a message explaining that GIMP cannot convert to a palette with more than 256 colors. Should actually not list palettes that don't match this criteria, but we'll leave that change for later (see bug #136574). 2004-03-08 Manish Singh * app/plug-in/plug-in.h: Use GPid with newer glib so that we work cleanly with the new API. 2004-03-08 Sven Neumann * app/display/gimpdisplayshell.c: redone this change. We should probably add a GimpMessageDialog to avoid duplicating this code every so often. 2004-03-08 Dave Neary * app/display/gimpdisplayshell.c: First attempt to resolve bug #107009. This changes the wording on the buttons to "Discard changes" and "Cancel" when closing an insaved image. However I think the absence of icons is a but ugly. I would like to add respectively the icons from GTK_STOCK_DELETE and GTK_STOCK_CANCEL to these two buttons. 2004-03-08 Sven Neumann * plug-ins/common/svg.c (run): added missing call to INIT_I18N() (spotted by Yuheng Xie, bug #136535). 2004-03-08 Manish Singh * plug-ins/pygimp/plug-ins/shadow_bevel.py: don't pass extra parameters to undo group functions. Fixes #136524. 2004-03-08 Sven Neumann * plug-ins/common/mng.c (run): added missing call to INIT_I18N() (spotted by iiccii@hotmail.com). 2004-03-07 Sven Neumann * tools/pdbgen/pdb/edit.pdb (gimp-edit-copy, gimp-edit-cut) removed some comments that dated back to the time when these functions used to take image and drawable parameters. * app/pdb/edit_cmds.c * libgimp/gimpedit_pdb.c: regenerated. 2004-03-07 Michael Natterer * app/core/gimp-edit.c (gimp_edit_extract): fixed bug added when factoring out gimp_edit_extract(): check if tile_manager_crop() cropped away the whole TileManager before making a GimpBuffer from it. 2004-03-07 Sven Neumann * gimp.spec.in: removed references to static libraries. These are not any longer built by default. 2004-03-07 Sven Neumann * libgimp/gimpfontmenu.c (gimp_font_select_widget_new): use GIMP_STOCK_FONT instead of GTK_STOCK_SELECT_FONT. 2004-03-07 Sven Neumann Made size of undo previews configurable. Not dynamic for now, but at least not hardcoded any longer. Fixes bug #119905: * app/config/gimpcoreconfig.[ch] * app/config/gimprc-blurbs.h: added "undo-preview-size" property. * app/core/gimpundo.[ch]: use the new property instead of a hardcoded value. * app/widgets/gimpundoeditor.[ch]: added a "preview-size" construct property. * app/gui/dialogs-constructors.c: changed accordingly. * app/gui/preferences-dialog.c: added a widget to control the undo preview size. 2004-03-07 Sven Neumann * tools/gimp-remote.c: more cleanup. 2004-03-07 Sven Neumann * tools/Makefile.am (AM_CPPFLAGS): define GIMP_APP_VERSION * tools/gimp-remote.c: when starting a new gimp, make sure the desktop-startup-id gets passed to it. Makes startup notification work correctly again. 2004-03-06 Sven Neumann * plug-ins/common/tiff.c (run): corrected check for number of PDB parameters. Fxes bug #136403. * app/widgets/gimpfontview.c: removed unused variables. 2004-03-06 Sven Neumann * libgimpwidgets/gimpquerybox.c (query_box_disconnect): disconnect the response handler to avoid that the query_box callback is being called multiple times. Fixes bug #136371. 2004-03-05 Sven Neumann * plug-ins/common/plasma.c (add_random): check random range before calling g_rand_int_range(). Fixes bug #136321. 2004-03-05 Sven Neumann * plug-ins/libgimpoldpreview/gimpoldpreview.c: include stdplugins-intl.h so that "Preview" ends up in the plug-in translation domain (bug #136303). 2004-03-05 Sven Neumann * app/tools/gimplevelstool.c: compute the slider positions in the expose event handler so that the sliders get positioned correctly when the dialog is resized. 2004-03-05 Sven Neumann * libgimpwidgets/gimpwidgets.c (gimp_random_seed_new): resurrected a mnemonic that was lost lately (1.88 -> 1.89) but still exists in most translations. 2004-03-05 Michael Natterer * app/tools/gimpcurvestool.c: #include "widgets/gimppropwidgets.h" 2004-03-05 Sven Neumann * app/tools/gimpcurvestool.c * app/tools/gimplevelstool.c * app/tools/gimpthresholdtool.c: added buttons to toggle the histogram scale from the tool dialogs. Fixes bug #136227. 2004-03-04 Michael Natterer * app/tools/gimpmovetool.c (gimp_move_tool_button_press): if we pick a layer to move and this layer has a mask which is being edited (active), start moving the mask, not the layer. 2004-03-04 Sven Neumann * app/config/gimprc-blurbs.h: marked new strings for translation. * libgimpwidgets/gimpstock.h: added #defines for missing icons. This allows us to replace them later without changing the API. * app/gui/dialogs-constructors.c * app/gui/dialogs-menu.c * app/gui/gradient-editor-commands.c * app/gui/image-menu.c * app/gui/toolbox-menu.c * app/tools/gimppaintoptions-gui.c * app/tools/gimptextoptions.c * app/widgets/gimppaletteeditor.c: use the new stock icon names instead of abusing GTK+ and GIMP tool stock icons. * app/gui/preferences-dialog.c (prefs_dialog_new): added icons to the new check buttons. 2004-03-04 Simon Budig * app/gui/preferences-dialog.c: remove the widgets for global-font and global-palette, since these are no options for multiple tools and have no visible effect for the user. 2004-03-04 Sven Neumann * autogen.sh: follow the changes done for other modules such as glib, pango and gtk+: - exit with $? instead of 1 in case of failure - exit with $? if ./configure failed - removed --enable-gtk-doc option - added $AUTOGEN_CONFIGURE_ARGS * HACKING: document the new behaviour. 2004-03-04 Michael Natterer * app/config/gimpcoreconfig.[ch] * app/config/gimprc-blurbs.h: added boolean properties "global-brush", "global-pattern" etc. * app/gui/preferences-dialog.c: added GUI for them to the "Tool Options" page. * app/tools/tool_manager.c (tool_manager_tool_changed): honor the new prefs options when copying the new tool's properties. Fixed bug #122519. 2004-03-04 Michael Natterer * app/core/gimptoolinfo.c: minor cleanup. 2004-03-04 Michael Natterer * app/widgets/gimpfiledialog.c (gimp_file_dialog_init): eek, the separator crept back in while hacking GimpFileDialog. Removed it again. 2004-03-04 Sven Neumann * app/widgets/gimpwidgets-utils.c (gimp_message_box): set the window icon to the icon displayed in the message dialog. 2004-03-04 Simon Budig * plug-ins/common/animationplay.c: Display Frame numbers from 1 to n instead of 0 to n-1. Less confusing for the user. Fixes bug #136124 2004-03-04 Sven Neumann * Made 2.0pre4 release. 2004-03-04 Simon Budig * app/widgets/gimpimagedock.[ch]: #ifdef'ed the code for the global shortcuts and disabled it. Fixes bug #133453 2004-03-03 Sven Neumann * app/vectors/gimpvectors-import.c (gimp_vectors_import): better error reporting in case of a parser error. 2004-03-03 Simon Budig * app/xcf/xcf-load.c: make the path-loading debug output conditional. 2004-03-03 Sven Neumann * app/core/gimpimagefile.c (gimp_imagefile_get_new_preview): let GdkPixbuf scale the thumbnail. It does a nicer job than temp_buf_scale(). 2004-03-03 Michael Natterer * app/widgets/gimpcolormapeditor.c (gimp_colormap_editor_class_init): GDK_TYPE_MODIFIER_TYPE are flags, not enum values, use the right marshaller for the "selected" signal. 2004-03-03 Michael Natterer * app/widgets/gimppreviewrendererimagefile.[ch]: moved the (disabled) ENABLE_FILE_SYSTEM_ICONS from the .c to the .h file and #ifdef the "gpointer file_system" member with it. 2004-03-03 Simon Budig * app/vectors/gimpvectors.c: fixed offset handling. Vectors objects always have 0,0 as offsets and image->width, image->height as their dimensions. Fixes bug #135994. 2004-03-03 Michael Natterer * libgimpthumb/gimpthumb-utils.[ch] (gimp_thumb_file_test): return the "errno" of a failed stat() call. * libgimpthumb/gimpthumbnail.[ch]: added member "image_not_found_errno" which contains the errno as returned by gimp_thumb_file_test() if thumbnail->image_state is GIMP_THUMB_STATE_NOT_FOUND. * app/core/gimpimagefile.c (gimp_imagefile_get_desc_string): display the real error as specified by thumbnail->image_not_found_errno instead of just "Could not open". 2004-03-03 Michael Natterer * app/widgets/Makefile.am * app/widgets/widgets-types.h * app/widgets/gimppreviewrendererimagefile.[ch]: added new preview renderer class (has some disabled code from my GtkFileChooser tree and behaves exactly as the default implementation). * app/widgets/gimppreviewrenderer-utils.c: use it for GimpImagefiles. 2004-03-02 Manish Singh * plug-ins/pygimp/gimpfu.py: Disable PF_*ARRAY for now. Addresses #122049. 2004-03-02 Michael Natterer * app/tools/gimpeditselectiontool.c * app/widgets/gimplayertreeview.c: compress undo steps only if the redo stack is empty. 2004-03-02 Pedro Gimeno * plug-ins/common/bumpmap.c (bumpmap): Fix handling of positive Y displacements of the bumpmap. Thanks to Joao S.O. Bueno for tracking this. Fixes bug #135866. 2004-03-01 Manish Singh * configure.in: define a gimp_stable symbol based on the version number (to complement gimp_unstable) and use it as a default for --enable-default-binary. 2004-03-01 Sven Neumann * app/config/test-config.c: added simple test for gimp_config_diff(). 2004-03-01 Michael Natterer * app/widgets/gimpfiledialog.[ch] (gimp_file_dialog_set_uri): new function which configures the dialog to load an image. * app/gui/file-open-dialog.c: use it. Don't use file-dialog-utils any more and allow setting the uri of an already visible file open dialog. * app/gui/file-dialog-utils.c: took the file open menu entries out of that insane logic that makes the menus insensitive while any file dialog is open. 2004-03-01 Michael Natterer * app/widgets/gimpfiledialog.[ch] (gimp_file_dialog_set_image): new function which configures the dialog to save an image. * app/gui/file-save-dialog.c: use it. * app/gui/file-open-dialog.c * app/gui/file-save-dialog.c: removed useless #inlcudes. 2004-03-01 Michael Natterer * app/widgets/gimpfiledialog.[ch] (gimp_file_dialog_new): added unused "GSList *file_procs" parameter. * app/gui/file-open-dialog.c: pass gimp->load_procs. * app/gui/file-save-dialog.c: pass gimp->save_procs. 2004-02-29 Sven Neumann * app/tools/gimpblendoptions.c: changed the upper limit for the supersampling depth from 10 to 6 (as a workaround for bug #133266). 2004-02-29 Sven Neumann * libgimpwidgets/gimpunitmenu.c (gimp_unit_menu_create_selection): no need to connect to "destroy", GTK_DIALOG_DESTROY_WITH_PARENT does this for us already. 2004-02-28 Sven Neumann * libgimpwidgets/gimpdialog.c: removed the call to gtk_widget_get_toplevel() again. Implement the GTK_DIALOG_DESTROY_WITH_PARENT behaviour in a way that works for GimpDialog. * app/gui/resolution-calibrate-dialog.c: pass the toplevel window to gimp_dialog_new (). 2004-02-28 Michael Natterer * app/widgets/gimpcellrendererviewable.c: some general cleanup. (gimp_cell_renderer_viewable_set_property): ref the new renderer before unrefing the old one. Fixes potential crash when setting the same renderer again. 2004-02-28 Michael Natterer * app/core/gimplayer.c (gimp_layer_apply_mask): when deleting the mask, use "Delete Layer Mask" instead of "Apply Layer Mask" as undo description. 2004-02-28 Sven Neumann * libgimpwidgets/gimpdialog.c (gimp_dialog_new_valist): if the parent widget is not a GtkWindow, use gtk_widget_get_toplevel() to get a pointer to the window the widget lives in. * app/gui/resolution-calibrate-dialog.c: don't make the dialog modal. It was a bad idea to do that, leading to problems spotted by Pedro Gimeno (bug #135630). 2004-02-27 Michael Natterer * libgimpwidgets/gimpfileentry.c: removed useless #includes. 2004-02-27 Michael Natterer * app/gui/file-dialog-utils.c * app/widgets/gimpfiledialog.c * libgimpwidgets/gimpfileentry.[ch]: some irrelevant micro changes to make that patch smaller. 2004-02-27 Michael Natterer * app/gui/file-open-dialog.c * app/gui/file-save-dialog.c: merged some small fixes/changes from my HEAD tree so the file chooser patch becomes smaller. 2004-02-27 Sven Neumann * app/core/gimpimagefile.c (gimp_imagefile_save_thumb): peek the image to make sure that mtime and filesize are written correctly. 2004-02-27 Michael Natterer * app/gui/file-open-dialog.c: removed the thumbnail box. * app/widgets/gimpfiledialog.c: and added it here. 2004-02-27 Michael Natterer * app/gui/file-dialog-utils.[ch]: renamed parameters and removed useless #includes. 2004-02-27 Michael Natterer * app/widgets/Makefile.am * app/widgets/widgets-types.h * app/widgets/gimpfiledialog.[ch]: new widget swallowing most of file-dialog-utils.[ch]'s functionality. * app/widgets/widgets-types.h: added "gpointer callback_data" to GimpItemFactorySetupFunc so the setup_funcs can create items in the same context as the item factory's default items. * app/widgets/gimpmenufactory.c (gimp_menu_factory_menu_new): pass "callback_data" to setup_func(). * app/gui/file-open-menu.[ch] * app/gui/file-save-menu.[ch]: use the passed callback_data when creating the menus and attach the file_proc to the menu items using g_object_set_data(). * app/gui/file-commands.[ch]: merged separate file type callbacks for open and save dialogs into one callback which simply calls gimp_file_dialog_set_file_proc(). * app/gui/file-dialog-utils.[ch]: removed file_dialog_new() and file_dialog_set_proc(). * app/gui/file-open-dialog.[ch] * app/gui/file-save-dialog.[ch]: use the new widget and removed global variables except the dialog pointer itself. * app/gui/image-menu.[ch] * app/gui/tool-options-menu.[ch] * app/gui/toolbox-menu.[ch]: changed accordingly. 2004-02-26 Sven Neumann * INSTALL: improved help on missing libraries at run-time. 2004-02-26 Michael Natterer * app/gui/file-dialog-utils.[ch] (file_dialog_hide): changed return value from gboolean to void because the function is no longer used as "delete_event" callback. * app/gui/file-open-dialog.c * app/gui/file-save-dialog.c: removed unused #includes. 2004-02-26 Michael Natterer * app/file/file-open.c (file_open_image): added missing cast. * app/widgets/gimperrorconsole.[ch] * app/widgets/gimptexteditor.[ch]: renamed members so my file chooser patch becomes smaller ;) 2004-02-26 Pedro Gimeno * app/file/file-open.c (file_open_image): Applied a fix by Michael Natterer addressing a problem with the preview in the open images list when loading a file. 2004-02-26 Michael Natterer * app/widgets/gimpthumbbox.[ch]: renamed some members, cleanup. 2004-02-26 Sven Neumann * app/display/gimpprogress.c (gimp_progress_end): check display->shell before using it. It might be NULL if the function is being called from gimp_exit(). * app/app_procs.c (app_exit_after_callback): added back the call to exit() but only for stable releases. See my comments in the code to understand the reasons. 2004-02-26 Michael Natterer * app/widgets/Makefile.am * app/widgets/widgets-types.h * app/widgets/gimpthumbbox.[ch]: new widget ripped out of the file open dialog. * app/gui/file-open-dialog.c: use it. 2004-02-26 Sven Neumann * libgimpthumb/gimpthumbnail.c: fixed my fixes. 2004-02-25 Sven Neumann * libgimpthumb/gimpthumbnail.c (gimp_thumbnail_load_thumb): never return a failed pixbuf. (gimp_thumbnail_save_failure) (gimp_thumbnail_save_thumb): set the thumb_state when saving a thumbnail. 2004-02-25 Michael Natterer Changed libgimpthumb API in a way that will make GtkFileChooser integration possible without doing major hacks: * libgimpthumb/gimpthumb-enums.h: added GimpThumbFileType enum and extended GimpThumbState enum. * libgimpthumb/gimpthumb-utils.[ch]: return GimpThumbFileType instead of gboolean from gimp_thumb_file_test(). * libgimpthumb/gimpthumbnail.c * app/core/gimpimagefile.c: changed accordingly (the icons used for REMOTE, FOLDER and SPECIAL need to be changed). 2004-02-25 Michael Natterer * app/tools/gimpimagemaptool.c: cleanup. * app/tools/gimplevelstool.c (gimp_levels_tool_dialog): added 2px spacing between the pick buttons and their entries. 2004-02-25 Michael Natterer * app/tools/gimpimagemaptool.[ch]: moved "shell_desc" from GimpImageMapTool to GimpImageMapToolClass and added "load_dialog_title" and "save_dialog_title". Create the load/save buttons in gimp_image_map_tool_initialize() and remember them in the GimpImageMapTool struct. Moved the whole load/save button/dialog logic into private functions. * app/tools/gimpcurvestool.c * app/tools/gimplevelstool.c: changed accordingly, removed load/save callbacks, inlined the load/save functions into GimpImageMapTool's virtual function implementations. * app/tools/gimpbrightnesscontrasttool.c * app/tools/gimpcolorbalancetool.c * app/tools/gimpcolorizetool.c * app/tools/gimphuesaturationtool.c * app/tools/gimpposterizetool.c * app/tools/gimpthresholdtool.c: changed accordingly. 2004-02-25 Sven Neumann * app/tools/gimpcurvestool.[ch] * app/tools/gimplevelstool.h: removed obsoleted variables. 2004-02-25 Sven Neumann * app/tools/gimpcurvestool.[ch] * app/tools/gimpimagemapoptions.[ch] * app/tools/gimpimagemaptool.[ch] * app/tools/gimplevelstool.[ch]: moved the settings file dialog that was duplicated in the curves and levels tools to the GimpImageMapTool class. Store the last used filename in the GimpImageMapOptions (proper fix for bug #135059). 2004-02-24 Dave Neary * app/tools/gimpcurvestool.c: Revert to 1.2 behaviour of hiding rather than destroying the curves load/save dialog. This makes the last selected curve be selected when the dialog is re-opened, and fixes bug #135059. Also append G_DIR_SEPARATOR_S to the end of the filename we build while creating the dialog, rather than ".". 2004-02-24 Michael Natterer * libgimpwidgets/gimpfileentry.[ch]: renamed member "file_selection" to "file_dialog" because the former refers to the currently used implementation, while the latter is neutral. 2004-02-23 Adam Weinberger * configure.in: added "en_CA" (Canadian English) to ALL_LINGUAS. 2004-02-23 Michael Natterer * app/core/core-types.h: added #defines for GimpCoords' default pressure, tilt and wheel values. * app/display/gimpdisplayshell-callbacks.c * app/paint/gimppaintcore-stroke.c * app/text/gimptext-vectors.c * app/vectors/gimpvectors-compat.c * tools/pdbgen/pdb/paint_tools.pdb: use them. Fixes lots more buggy default values for tilt (in fact all of them were wrong). * app/pdb/paint_tools_cmds.c: regenerated. 2004-02-23 Simon Budig * app/display/gimpdisplayshell-callbacks.c: corrected the value ranges and default values for GDK_AXIS_XTILT and GDK_AXIS_YTILT. Now the ink-tool behaves sane with a mouse again :) 2004-02-23 Simon Budig * app/tools/gimpinktool-blob.c: don't access the array before checking if the index is within the valid bounds... 2004-02-23 Michael Natterer * app/core/gimpimage-snap.[ch]: return the snapped coordinates as gdouble, not gint because we must not round the unsnapped axis if only one axis snapped. * app/display/gimpdisplayshell.[ch] (gimp_display_shell_snap_coords): changed accordingly. Added boolean return value indicating "snapped". * app/display/gimpdisplayshell-cursor.[ch] (gimp_display_shell_update_cursor): take both display_x and _x and (possibly snapped) image_x and _y. Use the snapped values for the statusbar and the unsnapped ones for updating the info_window. * app/display/gimpdisplayshell-callbacks.c (gimp_display_shell_canvas_tool_events): applied modified patch from Simon Budig which moves guide/grid snapping out of the button_press/motion/button_release handlers and *always* snaps the image_coords if the active_tool wants them to be snapped. Makes sure that e.g. the brush preview is drawn at the right place and fixes bug #134284. Also pass both display_coords and image_coords to gimp_display_shell_update_cursor(). 2004-02-23 Simon Budig * app/core/gimp.[ch]: removed unused member "standard_context" from the Gimp struct. 2004-02-22 Sven Neumann Let all GimpImageMap tools remember the state of the preview toggle (bug #135059): * app/tools/Makefile.am * app/tools/gimpimagemapoptions.[ch] * app/tools/tools-types.h: added new GimpToolOptions class to hold the preview setting. * app/tools/gimpbrightnesscontrasttool.c * app/tools/gimpcolorbalancetool.c * app/tools/gimpcolorizetool.c * app/tools/gimpcoloroptions.[ch] * app/tools/gimphuesaturationtool.c * app/tools/gimpimagemaptool.[ch] * app/tools/gimpposterizetool.c * app/tools/tools-types.h: use the new class. 2004-02-21 Manish Singh * app/widgets/gimpenummenu.c (gimp_enum_stock_box_set_child_padding): Add GTK_MISC cast for bin->child. 2004-02-21 Simon Budig * app/tools/gimpdrawtool.[ch]: added "use_offsets" parameter to gimp_draw_tool_draw_boundary() for consistency. * app/tools/gimpeditselectiontool.c: Changed accordingly. * app/tools/gimppainttool.c: when drawing straight lines draw the brush preview at the end of the line. 2004-02-20 Sven Neumann * app/tools/gimplevelstool.[ch]: put the color bars into an event box and draw the sliders on the event box window. * app/widgets/gimpcolorbar.[ch]: removed support for input events which is no longer needed. For consistency, renamed "channel" property to "histogram-channel". * app/widgets/gimphistogrambox.c: changed accordingly. * app/widgets/gimpenummenu.[ch]: added new function gimp_enum_stock_box_set_child_padding(). * app/tools/gimpcurvestool.c: let the graph widget expand with the dialog plus some other dialog tweaks. * app/widgets/gimphistogrameditor.c: let the channel menu shrink as in the other dialogs. * libgimpwidgets/gimpcolorselect.c (gimp_color_select_image_fill): allocate temporary buffer on the stack. 2004-02-20 Manish Singh * plug-ins/common/pygimp/plug-ins/sphere.py: Moved to the Test menu, to clarify its station in life. 2004-02-20 Manish Singh * plug-ins/common/pygimp/gimpfu.py: Do some simple validation on the GUI input. Arrays are still kinda hokey though. Based on Dave Neary's patch, addresses bug #122049. * plug-ins/common/pygimp/plug-ins/sphere.py: Make sure radius is at least 1. Thanks to Florian Traverse for noticing. (Also in #122049) 2004-02-20 Simon Budig * plug-ins/common/lic.c: fixed crash when the effect image is smaller than the target drawable. Major code overhaul (not yet fully completed), removed global variables, removed micro-functions that itself just invoke micro-functions, use more libgimpcolor functions. Slightly improved the algorithm by adding small random distorsions to the effect image. This avoids artefacts in plain areas. 2004-02-19 Sven Neumann * app/widgets/Makefile.am * app/widgets/widgets-types.h * app/widgets/gimpcolorbar.[ch]: added new widget GimpColorBar. * app/tools/gimpcurvestool.c * app/tools/gimplevelstool.c * app/widgets/gimphistogrambox.[ch]: use GimpColorBar widgets. * app/widgets/gimpcolorframe.[ch]: fixed typos. 2004-02-19 Michael Natterer * themes/Default/images/Makefile.am * themes/Default/images/stock-display-filter-16.png * themes/Default/images/stock-display-filter-24.png * libgimpwidgets/gimpstock.[ch]: added Jimmac's glasses. * app/display/gimpdisplayshell-filter-dialog.c * app/gui/image-menu.c: and use them. 2004-02-19 Michael Natterer * app/widgets/gimpdasheditor.[ch]: removed static variables, don't use GIMP_CONFIG_INSTALL_PROP_FOO() for non-config classes, trailing whitespace, cleanup. 2004-02-19 Simon Budig * plug-ins/common/lic.c: fixed gimp_dialog_new invocation. Also fixed a blatant error in the algorithm (GimpRGB has a range from 0..1 for each component...) and now the plugin actually does something useful. 2004-02-19 Sven Neumann * app/tools/gimpcurvestool.c (gimp_curves_tool_dialog): follow some of the levels tool dialog changes for consistency. 2004-02-19 Michael Natterer * app/core/gimpimage-qmask.c (gimp_image_get_qmask): new function which returns the image's QMask. * app/core/gimpimage.c (gimp_image_channel_name_changed) * app/gui/qmask-commands.c (qmask_query_response): use it. 2004-02-19 Michael Natterer * app/core/gimp.[ch]: added new signal "buffer_changed" and new function gimp_set_global_buffer() which emits it when the global buffer changes. * app/core/gimp-edit.c (gimp_edit_extract): use it instead of fiddling with gimp->global_buffer manually. * app/gui/image-menu.c: connect to "buffer_changed" and set the "Paste" menu entries sensitive. Fixes bug #134752. (image_menu_update): changed accordingly. Also changed a lot of buggy SET_SENSITIVE() lines which made menu items which work fine on any drawable insensitive when there were no layers (instead of no drawable). * app/gui/edit-commands.c: added new macro return_if_no_drawable() and use it instead of return_if_no_image() so we don't run into assertions if there is no active drawable. (cut,copy_named_buffer_callback): unfortunately had to introduce two new translated messages about not being able to cut/copy when there is no active drawable. 2004-02-19 Michael Natterer * app/config/gimpconfig-serialize.c (gimp_config_serialize_property) * app/config/gimpconfig-deserialize.c (gimp_config_deserialize_property): Reverted my last "cleanup" and put the "obsolete" check for the exact owner class of the property back. It appears that if a subclass does *not* implement GimpConfigInterface *itself*, it still inherits serialize_property()/deserialize_property(). 2004-02-19 Sven Neumann * app/tools/gimplevelstool.c: more dialog tweaking, fixed positioning of slider triangles. 2004-02-19 Sven Neumann * app/tools/gimplevelstool.c (gimp_levels_tool_dialog): applied patch from Dave Neary that removes gray point pickers for individual channels (bug #125303). Let the levels widgets expand with the dialog. 2004-02-18 Simon Budig * app/config/gimpguiconfig.[ch] * app/config/gimprc-blurbs.h: Added new GUI option: snapping distance * app/gui/preferences-dialog.c: add a preferences widget * app/tools/gimpmovetool.c * app/display/gimpdisplayshell.c: use it for snapping. 2004-02-18 Simon Budig * app/display/gimpdisplayshell.c * app/tools/gimpmovetool.c: Adjusted snapping distance to 8 pixels, probably should be a preferences option. * app/tools/gimppainttool.c: Do not center the start and end of a straight line to the center of an image-pixel unless the brush mode is GIMP_BRUSH_HARD. Fixes bug #134410. 2004-02-18 Sven Neumann * app/base/tile-cache.c * app/base/tile-private.h * app/base/tile.[ch]: removed trailing whitespace, added some newlines, let tile_is_valid() return a gboolean instead of a gint. * app/core/gimpimage-projection.c * app/core/gimpimage-undo-push.c * app/paint/gimppaintcore.c * app/tools/gimpinktool.c: use the return value from tile_is_valid() as a boolean. 2004-02-18 Sven Neumann * app/base/tile.h: exchanged TILEROWHINT_UNKNOWN and TILEROWHINT_BROKEN so that TILEROWHINT_UNKNOWN becomes 0. This allows to use calloc() to allocate and initialize the rowhint array. * app/base/tile.c (tile_sanitize_rowhints): reimplemented by a call to g_new0(). * app/base/tile-manager.c (tile_manager_get): use g_memdup() to duplicate the rowhints when creating a tile copy. 2004-02-18 Michael Natterer Some code review: * app/config/gimpconfig-deserialize.c * app/config/gimpconfig-serialize.c: removed obsolete code which made sure serialize_property()/deserialize_property() are only called for properties of the correct class. We do it the right way for quite a while now and clear the inherited function pointers in gimp_config_iface_base_init(). * app/config/gimprc.c (gimp_rc_dispose): don't forget to chain up. * app/base/gimplut.c * app/base/lut-funcs.c * app/config/gimpconfig-deserialize.c * app/config/gimpconfig-serialize.c * app/config/gimpconfig-types.c * app/config/gimprc.c * app/core/gimp-modules.c * app/core/gimpbrush.c * app/core/gimpcontainer.c * app/core/gimpdocumentlist.c * app/core/gimpitem.c * app/gui/about-dialog.c * app/gui/color-notebook.c * app/gui/gui.c * app/gui/tips-dialog.c * app/paint/gimppaintcore.c * app/paint-funcs/paint-funcs.c * app/widgets/gimpcolorpanel.c * app/widgets/gimpcontainergridview.c * app/widgets/gimpcontainermenuimpl.c * app/widgets/gimpselectioneditor.c: removed I/O includes from files which don't use lowlevel APIs any more. Also removes a whole bunch of G_OS_WIN32 special casing. Removed trailing whitespace. Misc tiny cleanups. 2004-02-18 Michael Natterer * app/display/gimpdisplayshell-handlers.c (gimp_display_shell_disconnect): disconnect from the correct config objects. Fixes bug #134694. 2004-02-17 Sven Neumann * app/widgets/gimpeditor.c (gimp_editor_add_stock_box): cannot gtk_widget_destroy() a floating widget, sink it instead. * libgimpwidgets/gimppatheditor.c (gimp_path_editor_set_path): plugged a small memleak. 2004-02-17 Pedro Gimeno * plug-ins/pagecurl/pagecurl.c: Corrected the pairing of gimp_drawable_get/gimp_drawable_detach and other cleanups. (do_curl_effect): Fixed a bug spotted by Simon Budig: uninitialized data could be exposed when applying the effect to non-rectangular selections. 2004-02-17 Michael Natterer * app/core/gimpviewable.c (gimp_viewable_calc_preview_size): argh, take the resolution into account if "dot_for_dot" is FALSE, not TRUE. 2004-02-17 Sven Neumann * app/core/gimpimage-scale.c (gimp_image_scale_check): exclude the size of the undo stacks so that the memory size is comparable with the value displayed in the "New Image" dialog. Fixes bug #134512. 2004-02-17 Sven Neumann * libgimpbase/gimpprotocol.[ch]: changed wm_name to app_name in the GimpConfig struct; increased GIMP_PROTOCOL_VERSION. * app/plug-in/plug-in-run.c (plug_in_run): pass the return value of g_get_application_name() to the plug-ins. * libgimp/gimp.[ch]: removed function gimp_wm_name(). Set the plug-in's application name if an app_name is passed in the config message. * libgimp/gimpui.c: removed usage of gimp_wm_name(); it was wrong to do it this way and caused all plug-ins claim to be the gimp-1.3 executable in their error messages. * libgimp/gimp.def: removed symbol gimp_wm_name. * configure.in: reset gimp_binary_age and gimp_interface_age. * app/core/gimpimage.c (gimp_image_name_changed): removed unused variable. 2004-02-17 Michael Natterer Make sure each GimpItem emits "removed" when it is removed from the image so dialogs have a chance to close themselves: * app/core/gimplayer.c (gimp_layer_apply_mask): emit "removed" from the mask. (gimp_layer_removed): new function which emits "removed" from the layer's mask when the layer gets removed from the image. * app/core/gimpimage.c (gimp_image_dispose): emit "removed" from all layers, channels and vectors. * app/gui/layers-commands.c (layers_scale_layer_query) (layers_resize_layer_query): removed recently added connections to "removed" because GimpViewableDialog does this automatically. 2004-02-16 Michael Natterer * libgimp/gimptile.[ch] (_gimp_tile_cache_flush_drawable): new inernal function which removes all tiles from a given drawable from the cache. * libgimp/gimpdrawable.c (gimp_drawable_detach): call the new function before freeing the tiles. Fixes bug #134562. 2004-02-16 Michael Natterer * libgimp/gimppixelrgn.c: cleaned up a bit: added missing g_return_if_fail()s, iterate lists using for() loops, indentation. 2004-02-16 Sven Neumann * libgimp/gimptile.c (gimp_tile_cache_insert): partly rewritten. Instead of removing the list element from the hash table, freeing it, allocating a new one and inserting it again, simply move it to the end of the list without touching the hash table at all. 2004-02-16 Sven Neumann * app/config/gimpxmlparser.c (gimp_xml_parser_parse_io_channel): set the GIOChannel encoding to NULL here instead of doing it in gimp_xml_parser_parse_file(). 2004-02-16 Sven Neumann * plug-ins/gfig/gfig.c (gfig_response): set the Undo button insensitive, not the whole dialog (bug #134419). Also start the dialog with the Undo button set insensitive. 2004-02-16 Sven Neumann * app/tools/gimpcroptool.c (crop_info_create): use limits from libgimpbase instead of arbitrary numbers. Don't allow a crop width or height smaller than 1 (or GIMP_MIN_IMAGE_SIZE actually). 2004-02-16 Sven Neumann * app/display/gimpcanvas.c (gimp_canvas_gc_new): fixed my last change here; of course only the guide GCs need a stipple pattern. 2004-02-16 Sven Neumann * app/config/gimpxmlparser.c (gimp_xml_parser_parse_io_channel): unset the GIOChannel's encoding before trying to locate and parse the XML header. 2004-02-15 Michael Natterer * libgimp/gimpdrawable.c (gimp_drawable_get): warn and return NULL instead of a meaningless struct for invalid drawable_IDs. Will make buggy plug-ins crash earlier and more reliably. Replaced all if(drawable) by g_return_if_fail(drawable != NULL) * libgimp/gimptile.c (gimp_tile_ref): replaced if(tile) by g_return_if_fail(tile != NULL) (gimp_tile_unref): g_return_if_fail(tile->ref_count > 0) 2004-02-15 Sven Neumann * plug-ins/common/gif.c: only call gimp_ui_init() when being run in interactively. Should fix bug #134423. 2004-02-15 Michael Natterer * app/core/gimpdata.c (gimp_data_init): using FOO_GET_CLASS(instance) in a GInstanceInitFunc doesn't work because during instance init, the object's class is always set to be the class of the currently called init function. Use the second parameter of GInstanceInitFunc instead, which is the instance's real class. Fixes bug #134274. 2004-02-14 Michael Natterer Fixed lots of QuickMask brokenness by letting the image adjust its qmask_state automatically: * app/core/gimpimage-qmask.h: #define GIMP_IMAGE_QMASK_NAME "Qmask". Use the define in all files below. * app/core/gimpimage.[ch]: split gimp_image_drawable_add,_remove() into separate handlers for layers and channels. Added a "name_changed" handler for all channels. In the channel "add", "remove" and "name_changed" handlers, check if it was a channel named "Qmask" that was added, removed or renamed and call gimp_image_set_qmask_state() accordingly. * app/core/core-enums.[ch] * app/core/gimpimage-undo-push.[ch] * app/core/gimpundo.c: removed all Qmask undo code because the image does the right thing without undo interaction now. * app/core/gimpimage-qmask.c (gimp_image_set_qmask_state): set gimage->qmask_state early so we can return early when called recursively. Removed calls to gimp_image_undo_push_image_qmask(). Returned "removed" callback (it was utterly broken the way it was implemented). * app/display/gimpdisplayshell-callbacks.c (gimp_display_shell_qmask_toggled): check if the image's qmask state needs to be changed before changing it. * app/xcf/xcf-load.c (xcf_load_channel): removed code which recognized the qmask. GimpImage does this automatically now. * app/gui/qmask-commands.c: cleanup. * app/widgets/gimpimagedock.c (gimp_image_dock_constructor): destroy the "/Select/By Color" and "/Select/Toggle QuickMask" menu items. * app/widgets/image-menu.c (image_menu_update): changed accordingly. 2004-02-13 Manish Singh * plug-ins/common/psd.c (load_image): Initialize dest to NULL, make it so the temp variable use for PANOTOOLS_FIX is only declared when it is enabled. 2004-02-13 Manish Singh * app/base/temp-buf.c (temp_buf_get_memsize) * core/gimpviewable.c (gimp_viewable_get_memsize): Add some casts to gsize for ints to prevent overflows. * app/base/tile-manager.c (tile_manager_get_memsize): Same as above, except cast to gint64. 2004-02-13 Simon Budig * app/core/gimpimage-guides.[ch]: make a similar fix as in my last commit for snapping the guides. * app/tools/gimpmovetool.c: use the fixed version. 2004-02-13 Simon Budig * app/core/gimpimage-snap.[ch]: make the snapping width a parameter of the snapping functions. * app/display/gimpdisplayshell.c: make sure that the snapping width always is 5 pixels in the view coordinates. Fixes bug #134285 2004-02-13 Michael Natterer * app/core/gimp-units.c (gimp_units_init, _exit): removed redundant g_return_if_fail()s. 2004-02-13 Michael Natterer Fixed GimpData's default "writable" and "deletable" behaviour: * app/core/gimpdata.c (gimp_data_init): default to writable and deletable == TRUE (something that has no filename was never loaded from disk and can't be undeletable or read-only). Fixes bug #134274. * app/core/gimpdata.[ch]: added new function gimp_data_make_internal() which frees the filename and sets the data's flags accordingly. * app/core/gimp-gradients.c (gimp_gradients_add_gradient) * app/core/gimpbrush.c (gimp_brush_get_standard) * app/core/gimpgradient.c (gimp_gradient_get_standard) * app/core/gimppalette.c (gimp_palette_get_standard) * app/core/gimppattern.c (gimp_pattern_get_standard): use the new function for internal data objects. * app/core/gimpdata.c (gimp_data_save, gimp_data_delete_from_disk) * app/core/gimpdatafactory.c (gimp_data_factory_save_single): bail out with g_return_if_fail() is the data is not writable or deletable. * app/widgets/gimpdataeditor.c * app/widgets/gimpdatafactoryview.c: changed accordingly. 2004-02-12 Sven Neumann * app/display/gimpcanvas.c (gimp_canvas_gc_new): use GDK_CAP_NOT_LAST as the cap_style for all canvas drawing. 2004-02-12 Adam D. Moss * plug-ins/common/psd.c: - Disable one of the PanoTools fixes by default, since it causes regressions in some ordinary PSD file loading. - Fix a twisted utf8-obsessive bug diagnosed by Piotr Krysiuk - Fix another one... - Fix from Daniel Rogers: GIMP crashes on 0x0 layers, so we skip them. - Also try to avoid 0-sized drawables (including channels) 2004-02-12 Michael Natterer * app/core/gimpimage-convert.c (gimp_image_convert): call gimp_image_colormap_changed() after installing the colormap. * app/tools/gimphistogramoptions.h: fixed typedef of GimpHistogramOptionsClass. 2004-02-12 Michael Natterer * app/widgets/gimphistogramview.c (gimp_histogram_view_button_press): ignore double clicks so we don't grab the pointer away from the curves dialog. Fixes bug #132356. * app/tools/gimpcurvestool.c (curves_graph_events): ignore button press and release events from all buttons except the first one. 2004-02-12 Michael Natterer Make sure that non-indexed images never have a colormap. Fixes bug #121033. * app/core/gimpimage-colormap.c (gimp_image_set_colormap): set image->cmap to NULL when called with a NULL colormap. * app/core/gimpimage-undo-push.c: made colormap undo/redo aware of NULL colormaps. * app/core/gimpimage-convert.c (gimp_image_convert): remove the colormap using gimp_image_set_colormap() instead of freeing it manually. * app/widgets/gimpcolormapeditor.c: always check if the image is INDEXED *and* has a colormap before accessing the colormap. (need this new check because the fixed behaviour of colormap undo produces undo groups which, when being popped, make the image have no colormap while still being INDEXED in the small time frame between the emission of "colormap_changed" and "mode_changed"). 2004-02-12 Sven Neumann * app/tools/gimptexttool.[ch]: derive the text tool from GimpTool directly. Doesn't look like we are going to use draw_tool functionality for 2.0. 2004-02-11 Sven Neumann * app/display/gimpdisplayshell-dnd.c (gimp_display_shell_bucket_fill): when dropping a color on a text layer, change the text color. This is a quick hack; we should make filling a drawable a virtual method that can be overridden by the text layer. 2004-02-11 Sven Neumann * configure.in (GIMP_DESKTOP_ICON): fixed icon names. 2004-02-11 Sven Neumann * app/tools/gimptexttool.c: repaired broken text tool logic (bug #124969). 2004-02-11 Sven Neumann * app/plug-in/plug-ins.c (plug_ins_init) * app/plug-in/plug-in.c (plug_in_close): changed g_warning() to g_printerr() in a few places where the problem is not an error in GIMP but a misbehaving plug-in. Suppress some of this output in the stable branch. 2004-02-10 Sven Neumann * app/gui/preferences-dialog.c (prefs_dialog_new): removed "Default" prefix from "Navigation Preview Size" label again. 2004-02-10 Henrik Brix Andersen * app/gui/preferences-dialog.c (prefs_dialog_new): prefix preview size labels with "Default" to avoid misunderstandings. 2004-02-10 Sven Neumann * themes/Default/images/Makefile.am (CORE_IMAGES): use the question stock icon instead of the warning one. * app/core/gimpviewable.c (gimp_viewable_get_dummy_preview): return a question icon as dummy preview. 2004-02-10 Sven Neumann * themes/Default/images/Makefile.am: added a rule to create a header containing a warning pixbuf that we can use from the core. * app/base/temp-buf.c (temp_buf_new): rewritten an optimisation so that it works for any number of bytes per pixel. 2004-02-10 Michael Natterer * app/core/gimpviewable.[ch]: added new function gimp_viewable_get_dummy_preview() which currently returns a completely white and opaque TempBuf of the requested size. Added this useless function because this is the place where to implement a nicer preview if someone volunteers. * tools/pdbgen/pdb/drawable.pdb * tools/pdbgen/pdb/image.pdb: use the new function if gimp->config->layer_previews is FALSE instead of returning no preview at all. Fixes bug #112012. Cleaned up the preview functions a bit and raised the limit for drawable previews from 128x128 to 256x256. * app/pdb/drawable_cmds.c * app/pdb/image_cmds.c * libgimp/gimpdrawable_pdb.c: regenerated. 2004-02-10 Sven Neumann * configure.in: warn when gimpprint is older than version 4.2.6. It's probably too late to introduce a dependency on that version but we would like people to update in order to avoid bug #125283. 2004-02-10 Sven Neumann * app/widgets/gimpcolorframe.c (gimp_color_frame_init): make the value labels selectable as suggested by Mariano Suárez-Alvarez in bug #133958. 2004-02-10 Sven Neumann * configure.in: bumped version to 1.3.27 (interface_age 1, binary_age 1). Added GIMP_DESKTOP_ICON variable and set it depending on GIMP_UNSTABLE. * data/images/Makefile.am * data/images/wilber-devel-icon.png * data/images/wilber-icon.png: renamed the development icon and added one for the stable version. * data/misc/gimp.desktop.in.in: use @GIMP_DESKTOP_ICON@. 2004-02-10 Sven Neumann * app/tools/gimptexttool.c (gimp_text_tool_register): set GIMP_CONTEXT_FONT_MASK. Fixes bug #133067. 2004-02-09 Simon Budig * plug-ins/script-fu/scripts/add-bevel.scm: Fixed Undo handling, make sure that the bumpmap is big enough to avoid artefacts. Fixes bug #130636. 2004-02-09 Michael Natterer * app/gui/gui.c (gui_libs_init): added runtime check for fontconfig > 2.2.0 and abort with a dialog box telling the user to upgrade fontconfig if the requirement is not met. Fixes all bugs like #133818. 2004-02-09 Sven Neumann * plug-ins/common/curve_bend.c: applied patch from Wolfgang Hofer that fixes bug #133244. 2004-02-09 Sven Neumann * app/Makefile.am: some updates to the gimp-console rules so that it fails less badly. 2004-02-09 Manish Singh * app/file/Makefile.am * app/paint/Makefile.am * app/text/Makefile.am * app/xcf/Makefile.am: changed GTK_CFLAGS to GDK_PIXBUF_CFLAGS, since we don't use any gtk/gdk functions here. This especially helps in the text directory, since it avoids problems on broken setups with old fontconfig stuff in the X11 directory lying around. 2004-02-09 Sven Neumann * plug-ins/script-fu/scripts/text-circle.scm: removed some workarounds for bugs in the GIMP 1.2 text functions that don't exist any longer. 2004-02-09 Sven Neumann * app/core/gimpimage-undo-push.c (undo_pop_layer) (undo_push_layer) * app/paint-funcs/paint-funcs.c (scale_region): ifdef'ed out debug output. 2004-02-09 Sven Neumann * app/core/gimpitem.[ch]: added progress callback pointers to gimp_item_scale() and its variants. * app/core/gimpchannel.c * app/core/gimpdrawable.c * app/core/gimpimage-scale.c * app/core/gimplayer.c * app/core/gimpselection.c * app/gui/layers-commands.c * app/paint-funcs/paint-funcs.[ch] * app/vectors/gimpvectors.c * tools/pdbgen/pdb/layer.pdb: changed accordingly. Fixes bug #97999. * app/pdb/layer_cmds.c: regenerated. 2004-02-08 Sven Neumann * app/tools/gimpiscissorstool.c (gimp_iscissors_tool_button_press): don't activate the iscissors tool if it's already active (bug #132351). 2004-02-08 Sven Neumann * app/tools/gimptexttool.c (gimp_text_tool_set_layer): implemented so that double-clicking a text layer now only activates the text tool but also set the layer's text on the tool options. 2004-02-08 Sven Neumann * app/tools/gimptoolcontrol.c (gimp_tool_control_activate) (gimp_tool_control_halt): put overly picky sanity checks into #ifdef GIMP_UNSTABLE ... #endif so we won't get these harmless tool warnings from the stable version (bug #121074). 2004-02-08 Hans Breuer * plug-ins/common/nova.c : access dest[alpha] only if (has_alpha); remove stray semicolon, fixes bug #132503 2004-02-08 Sven Neumann * app/plug-in/plug-in-rc.c (plug_in_rc_parse): return FALSE if the file wasn't found. * app/plug-in/plug-ins.c (plug_ins_init): don't output the error message from plug_in_rc_parse() if it failed for file not found. Fixes bug #133490. 2004-02-08 Sven Neumann * libgimpwidgets/gimppickbutton.c: some code cleanup, no changes. 2004-02-08 Michael Natterer * tools/pdbgen/pdb/image.pdb (image_rotate): fixed typo: s/spacified/specified/. Spotted by Kevin Cozens. * app/pdb/image_cmds.c * libgimp/gimpimage_pdb.c: regenerated. 2004-02-08 DindinX * plug-ins/common/tiff.c: applied a modified patch from Pablo d'Angelo, which add support for tiff layer names when the name is 7 bits clean. Fixes bug #131044 2004-02-07 Manish Singh * configure.in: fix use of EXEEXT in tiff checks. Fixes bug #133763. 2004-02-07 Hans Breuer * gimpdefs.msc : new file to keep common definitions for the msc build * **/makefile.msc : use common defintions, e.g. GIMP_VER * Makefile.am : add the former to EXTRA_DIST 2004-02-07 Pedro Gimeno * app/core/gimpimage-convert.c (median_cut_pass2_no_dither_rgb): Corrected position for alpha_pix in the case of grayscale images with custom or mono palette and no dither. Fixes bug #133642. (median_cut_pass2_fixed_dither_rgb): Ditto for fixed dither (Positioned Color Dither). 2004-02-07 Michael Natterer * app/display/gimpdisplayshell-draw.c (gimp_display_shell_draw_area): intersect the passed in area with the real area of the image in display coordinates and render the projection only if there actually is an intersection. Use gimp_rectangle_intersect() instead of handmade CLAMP() constructs. Fixes bug #113142. 2004-02-07 Sven Neumann * app/plug-in/plug-in-shm.c (plug_in_shm_get_ID): don't g_return_if_fail() if gimp->plug_in_shm is NULL; return -1 instead. This allows to run gimp with --no-shm again. 2004-02-07 Michael Natterer * app/display/gimpdisplayshell.[ch]: removed all drawing functions. The file was still too large. * app/display/Makefile.am * app/display/gimpdisplayshell-draw.[ch]: new files containing the drawing functions. * app/display/gimpdisplayshell-callbacks.c * app/display/gimpdisplayshell-handlers.c * app/tools/gimpmovetool.c: changed #includes accordingly. * app/display/gimpdisplay-handlers.c (gimp_display_size_changed_handler): added some #if 0'ed code I'm not sure about. Actually, some of the handlers in this file could need the same code, so it could be abstracted as gimp_display_stop_draw() or something. Please have a look. 2004-02-06 Sven Neumann * libgimpwidgets/gimpcolorselect.c: let the color selector widget expand. Removes the ugly empty spaces and improves the color selection experience ;) 2004-02-05 Michael Natterer * app/display/gimpdisplayshell.c (gimp_display_shell_mask_bounds): fixed integer/boolean confusion: s/0/FALSE/. (gimp_display_shell_draw_cursor): draw the cursor only if shell->have_cursor is TRUE. * app/display/gimpdisplayshell-callbacks.c (gimp_display_shell_canvas_expose): call the above unconditionally. 2004-02-05 Michael Natterer Disallow editing of data objects which have no save functionality. Also fixed the misassumption that "deletable" is always equal to "writable". Fixes bug #133456. * app/core/gimpdata.[ch]: added a "deletable" property which is always equal to "writable" except when the data class does not implement GimpData::save() (then deletable may be TRUE but writable is always FALSE). * app/gui/brushes-menu.c * app/gui/gradients-menu.c * app/gui/palettes-menu.c * app/gui/patterns-menu.c * app/widgets/gimpdatafactoryview.c: look at data->deletable when setting the sensitivity of the "Delete" buttons and menu items. * app/widgets/gimpdatafactoryview.c (gimp_data_factory_view_tree_name_edited): rename the data only if it's writable and restore the old name otherwise. * app/widgets/gimpdataeditor.c: no need to look at data->internal for figuring if the data is editable, data->editable is enough. All files above: s/writeable/writable/g * app/widgets/gimpbrusheditor.c (gimp_brush_editor_set_data): simplified. 2004-02-05 Michael Natterer * tools/pdbgen/pdb/edit.pdb (edit_paste): don't call gimp_edit_paste() with a NULL buffer. Instead, return an execution error if there is no global buffer to paste. Fixes the warning triggered by bug #133244 (but not the bug itself of course). * app/pdb/edit_cmds.c: regenerated. 2004-02-05 Sven Neumann * plug-ins/imagemap/imap_main.c (dialog): quit the main loop when the dialog is destroyed. Fixes bug #133532. 2004-02-05 DindinX * plug-ins/script-fu/scripts/text-circle.scm: Fixes the layout of the rendered text. Fixes bug #131634 2004-02-05 Michael Natterer * app/core/gimpimage-crop.c: removed trailing whitespace. * app/gui/debug-commands.[ch] * app/gui/toolbox-menu.c: renamed ENABLE_DEBUG_ENTRIES to ENABLE_DEBUG_MENU and #define it to be equal to GIMP_UNSTABLE. 2004-02-05 Michael Natterer * app/tools/gimprectselecttool.c (gimp_rect_select_tool_rect_select): don't try to CLAMP() the passed in rectangle to valid image/drawable coordinates manually when auto-shrinking the selection. Instead, use gimp_rectangle_intersect(). Also honor the active drawable's offsets. Fixes bug #133467. 2004-02-05 Manish Singh * plug-ins/pygimp/pygimp-pdb.c (pygimp_param_from_tuple): Translate None to NULL when passing strings. * plug-ins/pygimp/gimpui.py: Pass None for brush, pattern, and gradient get_list so they work. Redo selection list to use a TreeView. Quickie solution for now, it could be much better. 2004-02-04 Manish Singh * configure.in: Resurrected several autoconf substitutions relating to versions, so the .spec file can use them. 2004-02-05 Raphaël Quinet * configure.in: Added a conditional definition of the preprocessor symbol GIMP_UNSTABLE if the autoconf symbol GIMP_UNSTABLE is defined. * app/errors.c (gimp_errors_init): Replaced the #if test on GIMP_MINOR_VERSION modulo 2 by #ifdef GIMP_UNSTABLE. * app/composite/gimp-composite.c (gimp_composite_init): Print the init messages only in unstable versions. Split the messages in two lines and mention "supported by gimp_composite" in order to give a hint that the availability of some features depends also on what code has been written. Fixes bug #128825. 2004-02-04 Sven Neumann * app/core/gimpchannel.c * app/tools/gimptexttool.c * app/vectors/gimpvectors.c * app/widgets/gimpbufferview.c: removed double semicolons. 2004-02-04 Sven Neumann * app/Makefile.am (dist-hook): create an unversioned gimprc manpage. 2004-02-04 Sven Neumann * Made 2.0pre3 release. 2004-02-04 Sven Neumann * docs/Makefile.am (EXTRA_DIST): removed redundant entries that became invalid when the change to unversioned files was made. 2004-02-04 Michael Natterer * app/display/gimpdisplayshell-render.c (struct RenderInfo) (render_image_accelerate_scaling): use gdouble instead of gfloat for x and y scale factors so gfloat's limited precision can't add up to off-by-one pixel errors. Fixes display artefacts (missing updates) at the bottom and right sides of updated areas at certain irrational zoom factors like 1:3. 2004-02-04 Sven Neumann * app/gui/image-menu.c (image_menu_entries): added percentages to the View->Zoom menu entries as suggested in bug #131563. 2004-02-04 Sven Neumann * app/config/gimprc.[ch]: added the new function gimp_rc_set_unknown_token() to get autosave working for unknown gimprc tokens. * app/config/gimpconfig.c: indentation. * tools/pdbgen/pdb/gimprc.pdb: gimp->edit_config was used for a good reason, it's the one that's saved. Reverted a change I did about a month ago. Use gimp_rc_set_unknown_token() so unknown tokens get saved. This really fixes gimp_gimprc_set(). * app/pdb/gimprc_cmds.c: regenerated. 2004-02-03 Manish Singh * configure.in: Allow generated files with versions. * gimp-2.0.pc.in * gimpthumb-2.0.pc.in * gimpui-2.0.pc.in * docs/gimp-1.3.1.in * docs/gimp-remote-1.3.1.in * docs/gimprc-1.3.5.in * docs/gimptool-2.0.1.in: renamed to unversioned files. I left gimptool-2.0.in alone since I didn't want to screw with other branches history. It'll be obsolete post-2.0 anyway. 2004-02-03 Manish Singh * plug-ins/maze/maze_face.c (maze_dialog): remove unused variable randomize. 2004-02-03 Manish Singh * gimptool-2.0.in: use GIMP_API_VERSION. 2004-02-03 Sven Neumann * app/display/gimpdisplayshell-scale.c (gimp_display_shell_scale_dialog): improved dialog layout. 2004-02-03 Sven Neumann * app/gui/image-menu.c (image_menu_set_zoom): don't mark weird format strings as translatable. * data/misc/gimp.desktop.in.in (_Name): use "The GIMP" without an "(unstable)" suffix. Should give translators the chance to update their translations before the final 2.0 release. * configure.in: removed now unused GIMP_VISIBLE_NAME variable. 2004-02-03 Michael Natterer * app/plug-in/plug-ins.c (plug_ins_init): use g_clear_error() instead of g_error_free() and re-use the same GError location for pluginrc parsing and writing. (plug_ins_proc_def_insert): when overriding a PlugInProcDef, don't take over the menu_path and menu_accel of the overridden proc because (a) it's just plain wrong and (b) we don't need to preserve the proc_defs' order any more (see below). 2004-02-03 Michael Natterer * app/plug-in/plug-in-proc.[ch]: added new function plug_in_proc_def_compare_menu_path() which is a GCompareDataFunc. (uses g_utf8_collate() on the translated menu paths). * app/plug-in/plug-ins.c (plug_ins_init): sort gimp->load_procs and gimp->save_procs using the new compare function above. Fixes bug #133180. (plug_ins_locale_domain) (plug_ins_help_domain): don't g_return_if_fail() on a NULL prog_name but return the default locale and help domains of the GIMP itself. (plug_ins_proc_def_insert): removed obsolete and broken (not locale and UTF-8 aware) code which tried to insert new plug-in menu entries in alphabetical order (was unused except for load and save procs). Unrelated: * app/plug-in/plug-in-proc.[ch]: added const qualifiers. * app/file/file-open.c * app/file/file-save.c * tools/pdbgen/pdb/fileops.pdb: changed accordingly (constify local variables). * app/pdb/fileops_cmds.c: regenerated. 2004-02-03 Michael Natterer * plug-ins/script-fu/scripts/*.scm: applied patch from Kevin Cozens which removes the use of deprecated constants in all scripts. Fixes bug #133270. 2004-02-03 Michael Natterer * plug-ins/script-fu/script-fu-scripts.c (script_fu_free_script): call gimp_uninstall_temp_proc() with script->pdb_name, not script->script_name. Fixes bug #133280. 2004-02-02 DindinX * app/display/gimpcanvas.c: gimp_canvas_draw_segments(): Do not call gdk_draw_segments() with more than 32000 segments at a time, because XDrawSegments should never be called with more segments than that. This should really be fixed at the gdk level, though. This fixes bug #122026. 2004-02-02 Sven Neumann * libgimpthumb/gimpthumbnail.c (gimp_thumbnail_save_thumb): use the UTF-encoded URI in error messages, not the filename. * app/Makefile.am: use $(EXEEXT) for dist-hook binary dependency. * tools/gimp-remote.c: include conditionally. 2004-02-02 Michael Natterer * app/widgets/gimpimagedock.c (gimp_image_dock_constructor): also destroy the factory's "Tools" submenu because menu shortcuts with no or modifier prevent this key to be entered in text entries. This really badly baldy cries for GTK+ 2.4's GtkActions... 2004-02-01 Michael Natterer * app/config/gimpconfig-path.c (gimp_config_path_expand_only): when calculating the length of the expanded path, add the length of the UTF-8 converted substitution, not its length in filesystem encoding. Finally enables GIMP2_DIRECTORY containing non-ascii chars (at least on linux). Should fix bug #130118. 2004-02-01 Michael Natterer Disallow to rename the layer mask. Instead, always name the mask " mask". Fixes bug #133112 along with some other unreported ones. * app/core/gimpitem.[ch]: added a boolean return value indicating success to GimpItem::rename(). (gimp_item_real_rename): push an undo step only if the item is attached. * app/core/gimplayer.c (gimp_layer_rename): refuse renaming if the layer is a floating selection floated from a channel (renaming a layer's floating selection makes a new layer out of the floating selection). (gimp_layer_duplicate): use gimp_layer_add_mask() to attach the mask's duplicate. Fixes mask refcount brokenness for duplicated layer masks. (gimp_layer_name_changed): new function. Automatically renames the layer mask when the layer's name changes. * app/core/gimplayermask.c (gimp_layer_mask_rename): new function which refuses renaming. (gimp_layer_mask_name_changed): skip the unique name voodoo GimpItem does by not chaining up. (gimp_layer_mask_set_layer): change the mask's name whenever it is attached to a layer. * app/text/gimptextlayer.c (gimp_text_layer_rename): fiddle with text_layer->auto_rename only if renaming was successful. * app/widgets/gimpitemtreeview.c (gimp_item_tree_view_name_edited): restore the old name if renaming failed. * tools/pdbgen/pdb/drawable.pdb (set_name): return an execution error if renaming failed. * app/pdb/drawable_cmds.c: regenerated. 2004-02-01 Michael Natterer * app/xcf/xcf-load.c (xcf_load_layer): no need to set the layer mask's offsets, gimp_layer_add_mask() does this for us. Simplified mask property assignments. 2004-02-01 Michael Natterer Reworked random seed handling once more: * libgimpwidgets/gimpwidgets.c (gimp_random_seed_new): make sure the displayed random seed value is always the one which will be used, whether "Randomize" is checked or not. * plug-ins/common/blur.c * plug-ins/common/plasma.c * plug-ins/common/randomize.c * plug-ins/common/sinus.c * plug-ins/common/snoise.c * plug-ins/maze/algorithms.c * plug-ins/maze/maze.c: if running interactively, always take the seed value produced by the gimp_random_seed widget and don't touch it because the widgets honors the "randomize" toggle correctly now. For noninteractive and last_vals runs, look at the "randomize" boolean and generate a seed if it is TRUE. Initialize the random number generators from the seed determined by either of the above ways and don't fiddle with it in the inner algorithms itself. * plug-ins/gflare/gflare.c (plugin_run): initialize the GRand from the seed unconditionally. (ed_make_page_sflare): no need to get the entry from the random seed widget to get its adjustment. Instead get the adjustment directly. (The random handling code of gflare looks somewhat broken, but that applies to the whole plug-in). 2004-02-01 Michael Natterer * app/plug-in/plug-ins.c (plug_ins_init): when removing a duplicate PDB procedure, also remove it from gimp->load_procs and gimp->save_procs. Fixes bug #133099. Some general cleanup like moving variables to local scopes. 2004-01-31 Manish Singh * plug-ins/common/tiff.c (tiff_warning): use G_VA_COPY for copying va_lists. 2004-02-01 Simon Budig * app/display/gimpdisplayshell-scale.c: initialize variable to avoid stupid compiler warning. 2004-02-01 Dave Neary * libgimpwidgets/gimpwidgets.c * libgimpwidgets/gimpwidgets.h: Modify random seed widget to allow the user to specify that a seed should be chosen randomly for them (useful to allow re-running random plug-ins several times to get several different results). * plug-ins/common/blur.c * plug-ins/common/plasma.c * plug-ins/common/randomize.c * plug-ins/common/sinus.c * plug-ins/common/snoise.c * plug-ins/gflare/gflare.c * plug-ins/maze/algorithms.c * plug-ins/maze/maze.c * plug-ins/maze/maze.h * plug-ins/maze/maze_face.c: Changed appropriately. This fixes bug #129529. 2004-01-31 Raphaël Quinet * plug-ins/common/tiff.c (tiff_warning, tiff_error): Do not display the warning message about unknown tags for unregistered private tags (>= 32768). Fixes bug #131975. Do not display the error message about random access not supported for images using JPEG compression. Fixes bug #132297. It would be better to allow the user to customize which messages should be displayed or not, but this can be done in a future release. 2004-01-31 Michael Natterer Use the global accel_group in all docks except the toolbox (the latter needs GTK+ 2.4's new menu features). Addresses bug #119878: * app/gui/buffers-commands.c * app/gui/channels-commands.c * app/gui/data-commands.c * app/gui/documents-commands.c * app/gui/drawable-commands.c * app/gui/edit-commands.c * app/gui/file-commands.c * app/gui/gradients-commands.c * app/gui/image-commands.c * app/gui/layers-commands.c * app/gui/plug-in-commands.c * app/gui/select-commands.c * app/gui/tool-options-commands.c * app/gui/tools-commands.c * app/gui/vectors-commands.c * app/gui/view-commands.c: changed the various return_if_no_foo() macros to also accept a GimpDock as user_data. * app/gui/image-menu.c (image_menu_update): don't update the display related menu items if they don't exist (see below). * app/gui/gui.c (gui_display_changed): simplified. * app/widgets/gimpimagedock.[ch]: create an "" item_factory and attach its accel_group to the dock. Destroy all display related menu items. Destroy the layer stack navigation items because their default shortcuts interfere with tree and grid view keybindings. Connect to "image_changed" of the dock's private context and to "flush" of the image container to update the item_factory's state. 2004-01-31 Michael Natterer * app/gui/dialogs.c: added some g_return_if_fail(). 2004-01-31 Michael Natterer * app/widgets/gimpdock.c (gimp_dock_constructor): g_assert() that we got the essential construct properties. 2004-01-31 Michael Natterer * app/core/gimpimage-convert.[ch]: use gboolean instead of gint for "alpha_dither" and "remove_dups" in all public and private functions. Properly prototyped private functions. Minor cleanup. * app/gui/convert-dialog.c: pass FALSE instead of 0. * tools/pdbgen/pdb/convert.pdb: ditto. Also cleaned up a bit: use generated checks and documentation for enums, removed duplicate check for enum range (spotted by Kevin Cozens). * app/pdb/convert_cmds.c * libgimp/gimpconvert_pdb.c: regenerated. 2004-01-31 Manish Singh * app/base/cpu-accel.c: Make the assembly PIC safe. Fixes #132999. * app/composite/Makefile.am * app/composite/gimp-composite-3dnow.c * app/composite/gimp-composite-mmx.c * app/composite/gimp-composite-sse.c * app/composite/gimp-composite-sse2.c: Disable code when compiling for PIC on ia32, since it'll barf things. These can be fixed later. * app/composite/gimp-composite-3dnow-test.c * app/composite/gimp-composite-mmx-installer.c * app/composite/gimp-composite-mmx-test.c * app/composite/gimp-composite-sse-installer.c * app/composite/gimp-composite-sse-test.c * app/composite/gimp-composite-sse2-installer.c * app/composite/gimp-composite-sse2-test.c: Regenerated. 2004-01-31 Manish Singh * configure.in: define ARCH_X86_64 globally. * app/base/cpu-accel.c: remove local definition. 2004-01-30 Michael Natterer * app/widgets/gimptooloptionseditor.[ch]: added the scrolled window to the GimpToolOptionsEditor struct. (gimp_tool_options_editor_tool_changed): set the active tool's help ID on the scrolled window. Fixes bug #132969. 2004-01-30 Sven Neumann * plug-ins/helpbrowser/dialog.c: map the Home button to "index.html" and removed the Index button for now. 2004-01-30 Michael Natterer * plug-ins/rcm/rcm_dialog.c (rcm_dialog): fixed help ID. * plug-ins/rcm/rcm.[ch] * plug-ins/rcm/rcm_callback.[ch] * plug-ins/rcm/rcm_dialog.[ch] * plug-ins/rcm/rcm_gdk.[ch] * plug-ins/rcm/rcm_misc.[ch]: completely reindented, removed overly long /*---...---*/ comment lines, fixed spacing. 2004-01-30 Michael Schumacher * libgimpwidgets/gimpwidgets.def: added missing symbols. * README.win32: Sven fixed the EXEEXT problem in plug-ins/common. Updated README.win32 accordingly. 2004-01-29 Simon Budig * app/display/gimpdisplayshell.[ch]: Store the zoom factor as float, not as a ratio. * app/display/gimpdisplayshell-scale.[ch]: change the API to expose the Float instead a weirdly encoded integer. Implement functions to get a ratio from the scale factor. Implement a set as presets as discussed on the mailinglist. Changed Zoom->Other dialog to enable entering a float. * app/display/gimpdisplayshell-title.c * app/display/gimpnavigationview.c * app/gui/image-menu.c * app/gui/info-window.c * app/tools/gimpmagnifytool.c: changed accordingly. * app/core/gimp.[ch] * app/display/gimpdisplay.[ch] * app/gui/gui-vtable.c * app/widgets/widgets-enums.h: Made the various display-creating functions accept a float for the scale. Introduce a new GimpZoomType: GIMP_ZOOM_TO. Generally adjust the API to use floats instead of weird integers. * app/core/gimp-edit.c * app/core/gimptemplate.c * app/display/gimpdisplayshell-callbacks.c * app/file/file-open.c * app/gui/image-commands.c * app/gui/view-commands.[ch] * tools/pdbgen/pdb/display.pdb * app/widgets/gimpimageview.c * app/widgets/gimptoolbox-dnd.c: changed accordingly * app/pdb/display_cmds.c: regenerated Fixes bug #131964 and makes bug #131563 easy to resolve. 2004-01-29 Michael Natterer * app/core/gimpcontext.[ch]: removed the last artefact of context signal handling from 1.2: GimpContext used to connect to e.g. the current brush's "invalidate_preview" and "name_changed" signals and emitted "brush_changed" when the callback was invoked. This was needed to make 1.2 work, but is conceptually broken with the real model <-> view approach implemented in the current code. This change also optimizes things quite a bit because lots of signal emissions are saved. Added utility function which finds a container's current object after a freeze/thaw. * app/widgets/gimpcontainerview.[ch]: added new virtual function GimpContainerView::rename_item(). Connect to "name_changed" of the corrent container's children and invoke rename_item() accordingly. * app/widgets/gimpcontainertreeview.[ch]: removed name_changed handler and implement GimpContainerView::rename_item(). * app/widgets/gimpcontainergridview.c: ditto. the grid view was still relying on the removed GimpContext behaviour for updating the label showing the sleected item's name. 2004-01-29 Michael Natterer GimpData code review: * app/core/gimpdata.c (gimp_data_init): default to writable = FALSE and dirty = TRUE. * app/core/gimpbrushgenerated.[ch]: added "const gchar *name" to gimp_brush_generated_new(). * app/core/gimpbrush.c * app/core/gimpbrushgenerated.c * app/core/gimpbrushpipe.c * app/core/gimpgradient.c * app/core/gimppalette.c * app/core/gimppattern.c: set all standard datas to clean and internal, check for g_path_is_absolute() in all load functions, pass the data's name as construct property to g_object_new() instead of calling gimp_object_set_name() after creation, fixed some UTF-8 handling, spacing, indentation, coding style, general cleanup. 2004-01-29 Sven Neumann * app/tools/gimpcurvestool.c * app/tools/gimpinkoptions.c * app/tools/gimplevelstool.c: removed explicit grabs. The pointer is already implicitely grabbed while the button is pressed. 2004-01-29 Michael Natterer * configure.in: reset binary age because of struct changes below. * m4macros/gimp-2.0.m4: require GIMP 1.3.26. * libgimpmodule/gimpmodule.h * libgimpmodule/gimpmoduledb.h * libgimpthumb/gimpthumbnail.h * libgimpwidgets/gimpbutton.h * libgimpwidgets/gimpchainbutton.h * libgimpwidgets/gimpcolorarea.h * libgimpwidgets/gimpcolorbutton.h * libgimpwidgets/gimpcolordisplay.h * libgimpwidgets/gimpcolordisplaystack.h * libgimpwidgets/gimpcolornotebook.h * libgimpwidgets/gimpcolorscale.h * libgimpwidgets/gimpcolorselection.h * libgimpwidgets/gimpcolorselector.h * libgimpwidgets/gimpdialog.h * libgimpwidgets/gimpfileentry.h * libgimpwidgets/gimpmemsizeentry.h * libgimpwidgets/gimpoffsetarea.h * libgimpwidgets/gimppickbutton.h * libgimpwidgets/gimppixmap.h * libgimpwidgets/gimpsizeentry.h * libgimpwidgets/gimpunitmenu.h: added 4 function pointers padding to all class structures. 2004-01-28 Michael Natterer Added infrastructure to make sure we don't write to the global brush, pattern etc. directories. Needed to make this configurable because we can't rely on the global directories being read-only, having certain names or being otherwise detectable at runtime in a sane way. Fixes bug #132214. * libgimpbase/gimpdatafiles.[ch]: added "const gchar *dirname" to the GimpDataFileData struct so callbacks don't need to call g_path_get_dirname() for each file. * libgimpwidgets/gimpfileentry.c: made it work with non UTF-8 encoded filenames. * libgimpwidgets/gimppatheditor.[ch]: ditto. Added GUI and API for setting/getting a second "writable_path". The widget makes sure that the writable_path is always a subset of the path. * app/config/gimpconfig-utils.[ch]: added new function gimp_config_build_writable_path(). * app/config/gimpcoreconfig.[ch]: added separate properties for the writable brush, pattern, gradient, palette and font paths. * app/config/gimprc-blurbs.h: added (still empty) blurbs for the new properties. * app/core/gimpdata.[ch] (gimp_data_set_filename): added parameter "gboolean writable". Set data->writable to FALSE by default. If "writable" is passed as TRUE, still check if we can write to the file before setting data->writable to TRUE. (gimp_data_create_filename): changed "data_path" parameter to "dest_dir" and assume dest_dir is writable. (gimp_data_duplicate): set data->dirty to TRUE to make sure duplicated things will be saved. * app/core/gimpbrush.c * app/core/gimpbrushgenerated.c * app/core/gimpbrushpipe.c * app/core/gimpgradient.c * app/core/gimppalette.c * app/core/gimppattern.c: don't set the data's filename and don't touch data->dirty in the _load() functions because that's done by the data factory now. Don't touch data->dirty in the _duplicate() functions because that's done by gimp_data_duplicate() itself now. * app/core/gimpdatafactory.[ch] (gimp_data_factory_new): added "writable_property_name" and remember it. Added utility function gimp_data_factory_get_save_dir() which determines the directory to save new datas to. Added public function gimp_data_factory_data_save_single() which saves a single data object. Make sure new things get saved to the first writable directory as specified in preferences. * app/core/gimp.c (gimp_real_initialize): pass the writable_paths' property names to gimp_data_factory_new(). * app/widgets/gimpdataeditor.c (gimp_data_editor_save_dirty): use gimp_data_factory_data_save_single() instead of implementing saving here. * app/widgets/gimppropwidgets.[ch] (gimp_prop_path_editor_new): added "const gchar *writable_property_name" parameter (can be NULL). Added the needed callbacks to handle the writable_path and made the path_editor and file_entry code aware of non UTF-8 filename encodings. Some general cleanup. * app/gui/preferences-dialog.c: changed accordingly. 2004-01-28 Sven Neumann * configure.in: according to the automake docs, we need to add $(EXEEXT) explicitely for programs that are conditionally built using configure substitutions instead of automake conditionals. 2004-01-28 Michael Natterer * app/config/gimpconfig-path.c (gimp_config_path_expand): return early if gimp_config_path_expand_only() fails. 2004-01-28 Dave Neary * plug-ins/common/tiff.c: Removed duplicate TIFF entry from save dialog, and made the save handler point to the one that doesn't pre-multiply by alpha. Reported on gimp-user by misfit-x. Also changed default value to not destroy data on save. 2004-01-28 Pedro Gimeno * plug-ins/script-fu/scripts/grid-system.scm: Fix typo that prevented using the inverse of the golden ratio (1/g) as a weight in the list. 2004-01-28 Michael Natterer * app/widgets/gimphelp-ids.h: updated help IDs for new/reordered pages in the prefs dialog. * app/gui/preferences-dialog.c (prefs_dialog_new): changed accordingly. 2004-01-28 Manish Singh * plug-ins/script-fu/siod-wrapper.c (marshall_proc_db_call): validate the types of the individual list members when passing parasites. Fixes #93806. 2004-01-27 Manish Singh * app/paint-funcs/paint-funcs.c: inlined rotate_pointers, changed prototypes and casts around so that we're compliant with C99 aliasing rules. 2004-01-27 Manish Singh * app/composite/gimp-composite-generic.c (gimp_composite_overlay_any_any_any_generic) * app/paint-funcs/paint-funcs-generic.h (overlay_pixels): use more than one temporary when stacking INT_MULTs, to avoid undefined values. 2004-01-27 Manish Singh * app/paint/gimppaintcore.c (gimp_paint_core_interpolate): Use a real GimpVector2 for vector operations, instead of stuffing everything into a GimpCoords. C99 aliasing fix. 2004-01-27 Manish Singh * plug-ins/common/plugindetails.c: removed unused variable. * plug-ins/common/nlfilt.c: declare nlfiltRow as inline in the function definition as well. 2004-01-27 Manish Singh * configure.in: use AM_PATH_GIMPPRINT to get some additional sanity checks. * acinclude.m4: define AM_PATH_GIMPPRINT here, so we don't have add a new autogen dependency. * plug-ins/print/Makefile.am: Use GIMPPRINT_{CFLAGS,LIBS} 2004-01-28 Simon Budig Argh, this is getting silly. * app/core/gimpscanconvert.c: Fix dumb bug I introduced while fixing bug #132036. Instead of always closing a polyline to the first point of the vpath close to the first point of the current polyline I'll close #132036 for the third time now, feel free to reopen it when bugs appear... 2004-01-27 Dave Neary * plug-ins/common/tiff.c: Apply patch from Andrey Kiselev to improve defaults when there is no photometric specified for CCITT encoded tiffs. Closes bug #131902. 2004-01-27 Michael Natterer * app/gui/layers-commands.c (layers_add_mask_query): use the new GIMP_STOCK_LAYER_MASK icon for "Add Layer Mask" dialog. 2004-01-27 Jakub Steiner * themes/Default/images/stock-channel-indexed-16.png * themes/Default/images/stock-channel-indexed-24.png * themes/Default/images/stock-channel-indexed-32.png * themes/Default/images/stock-channel-indexed-48.png: replacing placeholders 2004-01-27 Michael Natterer Re-enabled filling the whole selection using the bucket fill tool. Fixes bug #132649. * app/tools/gimpbucketfilloptions.[ch]: added boolean property "fill-selection" and a GUI for it. * app/tools/gimpbucketfilltool.c: changed accordingly. 2004-01-27 Michael Natterer * app/gui/image-menu.c (image_menu_entries) * app/gui/layers-menu.c (layers_menu_entries): use the new GIMP_STOCK_LAYER_MASK icons for "Add Layer Mask". 2004-01-27 Michael Natterer * themes/Default/images/Makefile.am