2004-12-24 Sven Neumann <sven@gimp.org>
* plug-ins/common/despeckle.c (despeckle_median): don't call
gimp_progress_update() for each and every pixel. Every few rows
should be enough. Fixes bug #162129.
* plug-ins/common/blur.c: set progress to 1.0 when done, not to 100.
* gimp/app/widgets/gimpsizebox.c: use gimp_coordinates_new()
instead of duplicating a lot of code. Fixes bug #161756.
* gimp/app/widgets/gimppropwidgets.c: small change in
chainbutton handling to make above work.
2004-12-23 Michael Natterer <mitch@gimp.org>
Item conversion depends on the old *and* the new item type, so
it can't live in the old item's vtable only:
* app/core/gimpitem.[ch]: split GimpItem::convert() into
GimpItem::convert_from() (which is called on the old item and
creates the new item) and GimpItem::convert_to() (which is called
on the new item). This way functions from the old *and* new items'
vtables are called and it's possible to convert between item types
which live on different branches of the class hierarchy or to item
types which live further down the class tree than the old item.
(gimp_item_convert): call ::convert_to() on the new item created
by ::convert_from().
* app/vectors/gimpvectors.c: changed ::convert() implementation
to ::convert_from().
* app/core/gimplayer.c: changed ::convert() to ::convert_to().
Fixes bug #161877.
2004-12-22 Sven Neumann <sven@gimp.org>
* plug-ins/script-fu/scripts/Makefile.am
* plug-ins/script-fu/scripts/asc2img.scm: removed this script as it
is broken beyond repair and the functionality is provided by the
text tool itself.
2004-12-22 Sven Neumann <sven@gimp.org>
* NEWS: added NEWS for the stable branch (no, we haven't branched
yet).
* Makefile.am
* NEWS.pre-2.2: moved old NEWS here.
2004-12-21 Sven Neumann <sven@gimp.org>
* plug-ins/common/unsharp.c (blur_line): fixed the degenerate case
where the source image is smaller than the blurred area. This used
to give artefacts at the borders.
2004-12-21 Sven Neumann <neumann@jpk.com>
* plug-ins/common/unsharp.c: reverted the last change since it
introduced artefacts. Even had to increase the border around the
previewed area. Fixed a bug in the unsharp_region where it was
using the wrong source region for blurring.
2004-12-21 Sven Neumann <sven@gimp.org>
* plug-ins/common/unsharp.c (preview_update): fixed bug #157910.
More code cleanup and some trivial optimizations.
2004-12-21 Michael Natterer <mitch@gimp.org>
* app/actions/gradient-editor-actions.c
(gradient_editor_actions_update): if the dialog is insensitive,
disable all actions which modify the gradient. Fixes bug #161411.
* app/actions/gradient-editor-commands.c: update the UI manager
after setting the dialog sensitive/insensitive so te above works.
2004-12-20 Sven Neumann <sven@gimp.org>
* libgimp/gimpdrawablepreview.c (gimp_drawable_preview_draw_region):
unset the dirty flag on the GimpPixelRgn used to iterate the region.
* libgimp/gimppixelrgn.c (gimp_pixel_rgn_init): improved docs.
2004-12-20 Sven Neumann <sven@gimp.org>
* configure.in: bumped version to 2.2.1.
* plug-ins/FractalExplorer/FractalExplorer.c: applied patch from
Yeti that fixes a memory corruption (bug #161729).
2004-12-18 Sven Neumann <sven@gimp.org>
* app/dialogs/resize-dialog.c: free the dialog's private data
struct using a weak reference, not in a "destroy" handler. Should
fix bug #161472.
* app/dialogs/print-size-dialog.c
* app/dialogs/scale-dialog.c: same change here.
2004-12-17 Sven Neumann <sven@gimp.org>
* app/tools/gimpmovetool.c (gimp_move_tool_cursor_update): don't
use the rect-select cursor if the tool is in move-layer mode.
Spotted by Joao S. O. Bueno, bug #161465.
2004-12-17 Simon Budig <simon@gimp.org>
* app/tools/gimpcurvestool.c: Kill some nonsensical code that
tried to set control points in a free form curve based on the
image coordinates (huh?). Untabbified.
2004-12-17 Sven Neumann <sven@gimp.org>
* app/tools/gimpimagemaptool.c (gimp_image_map_tool_pick_color):
take drawable offsets into account. Fixes bug #161508.
2004-12-17 Simon Budig <simon@gimp.org>
* data/images/gimp-splash.png: Added new splash by
Bill Luhtala <bluhtala@telus.net>.
* data/images/gimp-logo.png: Added new Image for the about dialog
by Philip Lafleur <deathpudding@gmail.com>.
* app/dialogs/about-dialog.c: Adjusted text colors and placement
to the new image.
* data/images/gimp2_0_logo.png
* data/images/gimp2_0_splash.png: Added for historical reasons.
* data/images/gimp_logo.png: Removed (renamed to gimp-logo.png)
* data/images/Makefile.am: changed accordingly.
2004-12-16 Manish Singh <yosh@gimp.org>
* app/widgets/gimppdbdialog.c (gimp_pdb_dialog_set_property): Cast
result of g_value_dup_object() to GIMP_CONTEXT().
2004-12-16 Sven Neumann <neumann@jpk.com>
* app/config/gimpconfig-dump.c (dump_gimprc_manpage): escape hyphens.
* docs/gimp.1.in: documented the way that splash images are choosen.
* docs/gimprc.5.in: regenerated.
2004-12-16 Michael Natterer <mitch@gimp.org>
* app/actions/actions.c (action_data_get_*): get gimp, display or
image from a context only if it isn't NULL. Fixes warnings and
crashes when dragging around some dockables (the dockables'
context temporarily becomes NULL while dragging).
Reordered checks for the passed "data" to be consistent across the
various functions.
Removed assertions which said "#warning: remove me before 2.2"
2004-12-16 Sven Neumann <neumann@jpk.com>
* app/dialogs/preferences-dialog.c (prefs_keyboard_shortcuts_dialog):
added a note on how to use the dialog, copied from the GNOME keyboard
shortcuts editor.
2004-12-15 Sven Neumann <sven@gimp.org>
* tools/pdbgen/pdb/text_tool.pdb: let gimp_text() and
gimp_text_fontname() succeed but return -1 if no layer was created.
Fixes bug #161272.
* app/pdb/text_tool_cmds.c
* libgimp/gimptexttool_pdb.c: regenerated.
2004-12-15 Michael Natterer <mitch@gimp.org>
* app/core/gimpdrawable-preview.[ch]: added utility function
gimp_drawable_preview_bytes() and use it. Some cleanup,
untabified.
* app/widgets/gimpviewrendererdrawable.c: use
gimp_drawable_preview_bytes() instead of duplicating its code.
2004-12-15 Michael Natterer <mitch@gimp.org>
Sven Neumann <sven@gimp.org>
* app/core/gimpdrawable-preview.c (gimp_drawable_preview_scale):
fixed RGBA resampling by using premultiplied values for the
intermediate accumulation buffer. Fixes bugs #72880 and #72881.
2004-12-14 Michael Natterer <mitch@gimp.org>
* app/plug-in/plug-in-proc-frame.[ch]: added "gint ref_count" to
the PlugInProcFrame struct. Added new functions
plug_in_proc_frame_ref/unref().
(plug_in_proc_frame_new): set the ref_count to 1.
* app/plug-in/plug-in.[ch] (plug_in_proc_frame_push): return the
new proc_frame.
(plug_in_proc_frame_pop): use unref() instead of free().
* app/plug-in/plug-in-run.c (plug_in_temp_run): ref the proc_frame
while running its main loop. Removed the call to
plug_in_proc_frame_pop().
* app/plug-in/plug-in-message.c (plug_in_handle_temp_proc_return):
call plug_in_proc_frame_pop() immediately after
plug_in_main_loop_quit() so the proc_frame goes away from the
stack and can't be used accidentially if the core is too busy to
return to the main loop before the next command arrives on the
wire. Really fixes bug #161114 this time.
2004-12-14 Simon Budig <simon@gimp.org>
* app/vectors/gimpstroke.[ch]: Changed the "gradient" parameter
to "slope" to make it more clear what the returned result is (which
was wrong earlier).
* tools/pdbgen/pdb/paths.pdb: changed accordingly
* app/pdb/paths_cmds.c
* libgimp/gimppaths_pdb.[ch]
* devel-docs/libgimp/tmpl/gimppaths.sgml: regenerated.
Fixes bug #161274.
2004-12-14 Sven Neumann <sven@gimp.org>
* configure.in: added GIMP_API_VERSION to the generated gimpversion.h.
* libgimpbase/gimpenv.c (gimp_toplevel_directory): use
GIMP_API_VERSION instead of GIMP_MACRO_VERSION.GIMP_MINOR_VERSION
when building a path to test the plug-in executable path against.
2004-12-14 Michael Natterer <mitch@gimp.org>
* tools/pdbgen/pdb/drawable.pdb: added gimp_drawable_sub_thumbnail()
to enable plug-ins avoiding #142074-alike bugs if they need to.
* app/pdb/drawable_cmds.c
* app/pdb/internal_procs.c
* libgimp/gimpdrawable_pdb.[ch]: regenerated.
* libgimp/gimpdrawable.[ch]
* libgimp/gimppixbuf.[ch]: wrap it with the same convenience
APIs as gimp_drawable_thumbnail().
* libgimp/gimp.def
* libgimp/gimpui.def: changed accordingly.