Commit Graph

10125 Commits

Author SHA1 Message Date
Michael Natterer 0527989edf Item conversion depends on the old *and* the new item type, so it can't
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-23 11:53:14 +00:00
Sven Neumann 02d2a673c9 plug-ins/script-fu/scripts/Makefile.am removed this script as it is broken
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 16:21:17 +00:00
Sven Neumann 360e067709 added NEWS for the stable branch (no, we haven't branched yet).
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-22 01:07:11 +00:00
Sven Neumann e59cc07dcd fixed the degenerate case where the source image is smaller than the
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 22:47:58 +00:00
Sven Neumann d02f17319d more code cleanup and micro optimizations.
2004-12-21  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/unsharp.c: more code cleanup and micro
	optimizations.
2004-12-21 22:04:55 +00:00
Sven Neumann b1e4859aa5 fixed ChangeLog entry 2004-12-21 18:03:54 +00:00
Sven Neumann a4c622468c reverted the last change since it introduced artefacts. Even had to
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 13:01:01 +00:00
Sven Neumann b8e0037222 compute preview for the displayed area only, some more code cleanup.
2004-12-21  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/unsharp.c: compute preview for the displayed area
	only, some more code cleanup.
2004-12-21 10:48:32 +00:00
Sven Neumann f81299c1ac fixed bug #157910. More code cleanup and some trivial optimizations.
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 00:04:34 +00:00
Michael Natterer 30aa9051d3 if the dialog is insensitive, disable all actions which modify the
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-21 00:01:47 +00:00
Sven Neumann ff4b4eaf35 more code cleanup.
2004-12-20  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/unsharp.c: more code cleanup.
2004-12-20 22:27:05 +00:00
Sven Neumann c783f3f2d1 unset the dirty flag on the GimpPixelRgn used to iterate the region.
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 21:39:48 +00:00
Sven Neumann 3d6e33e361 code cleanup, no real changes.
2004-12-20  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/unsharp.c: code cleanup, no real changes.
2004-12-20 20:45:42 +00:00
Sven Neumann ca6dfc6426 bumped version to 2.2.1.
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-20 00:28:51 +00:00
Michael Natterer cf8c82f8f2 Copied current ChangeLog away and truncated it. 2004-12-19 02:55:34 +00:00
Sven Neumann ef08d8f0ce Made 2.2.0 release.
2004-12-19  Sven Neumann  <sven@gimp.org>

        * Made 2.2.0 release.
2004-12-19 02:37:28 +00:00
Sven Neumann cbb9ba9860 fixed label.
2004-12-18  Sven Neumann  <sven@gimp.org>

	* app/tools/gimprotatetool.c (gimp_rotate_tool_dialog): fixed label.
2004-12-18 17:05:32 +00:00
Sven Neumann 0ac7b4b1fc free the dialog's private data struct using a weak reference, not in a
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-18 11:58:39 +00:00
Sven Neumann 4682e37d1d marked a message for translation that had been forgotten. Fixes bug
2004-12-18  Sven Neumann  <sven@gimp.org>

	* app/dialogs/quit-dialog.c: marked a message for translation that
	had been forgotten. Fixes bug #161596.
2004-12-18 10:35:35 +00:00
Sven Neumann c9ee12aeec check for gtk-doc.m4, depend on intltool > 0.31.
2004-12-17  Sven Neumann  <sven@gimp.org>

	* autogen.sh: check for gtk-doc.m4, depend on intltool > 0.31.
2004-12-17 16:29:27 +00:00
Sven Neumann a493f0dea2 don't use the rect-select cursor if the tool is in move-layer mode.
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 15:16:36 +00:00
Simon Budig 7228441256 Minor fix: Update the Graph after adding a control point
(merged into the last Changelog entry)
2004-12-17 13:47:29 +00:00
Simon Budig 306fa33a01 Kill some nonsensical code that tried to set control points in a free form
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 13:11:29 +00:00
Sven Neumann da12388bd2 take drawable offsets into account. Fixes bug #161508.
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 12:31:11 +00:00
Sven Neumann 25957deb24 docs/gimp-remote.1.in docs/gimp.1.in minor tweaks.
2004-12-17  Sven Neumann  <sven@gimp.org>

	* docs/gimp-remote.1.in
	* docs/gimp.1.in
	* docs/gimptool.1.in: minor tweaks.
2004-12-17 09:04:24 +00:00
Simon Budig c075dab29e Added new splash by Bill Luhtala <bluhtala@telus.net>.
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-17 00:06:10 +00:00
William Skaggs 372be1f83a Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/core/gimpgradient-load.c: reject .ggr files whose
	segments don't properly span the range 0-1.
	Fixes bug #161430.
2004-12-16 22:59:27 +00:00
Sven Neumann 3929204f58 updated location of fontconfig sources.
2004-12-16  Sven Neumann  <sven@gimp.org>

	* INSTALL: updated location of fontconfig sources.
2004-12-16 22:55:52 +00:00
Manish Singh 608efddb91 Cast result of g_value_dup_object() to GIMP_CONTEXT().
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 22:52:32 +00:00
William Skaggs 0dd3e4a721 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* plug-ins/script-fu/scripts/circuit.scm: don't try to
	desaturate a grayscale layer, fixes bug #161470.
2004-12-16 22:51:43 +00:00
Sven Neumann 96145d3623 app/config/gimpconfig-dump.c docs/gimp-remote.1.in docs/gimp.1.in hyphens
2004-12-16  Sven Neumann  <sven@gimp.org>

	* app/config/gimpconfig-dump.c
	* docs/gimp-remote.1.in
	* docs/gimp.1.in
	* docs/gimprc.5.in: hyphens revisited.
2004-12-16 21:47:48 +00:00
Sven Neumann aa1f77e816 escape hyphens.
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 19:11:13 +00:00
Michael Natterer 8a5a4bd626 get gimp, display or image from a context only if it isn't NULL. Fixes
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 13:26:35 +00:00
Sven Neumann 8c82c50b4a added a note on how to use the dialog, copied from the GNOME keyboard
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-16 10:57:03 +00:00
Sven Neumann 53cfed36a1 let gimp_text() and gimp_text_fontname() succeed but return -1 if no layer
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 20:37:54 +00:00
Michael Natterer 37226e50d6 added utility function gimp_drawable_preview_bytes() and use it. Some
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 14:40:52 +00:00
Michael Natterer 1a752a6d54 Sven Neumann <sven@gimp.org>
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-15 01:36:22 +00:00
Sven Neumann 4d908e46c6 moved ChangeLog entries around 2004-12-15 00:12:27 +00:00
Michael Natterer 0449deee27 added "gint ref_count" to the PlugInProcFrame struct. Added new functions
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 22:42:00 +00:00
Simon Budig 7323c5a07d Changed the "gradient" parameter to "slope" to make it more clear what the
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 22:36:40 +00:00
Maurits Rijk 9dda832758 don't use gtk_tree_selection_get_selected with GTK_SELECTION_MULTIPLE.
2004-12-14  Maurits Rijk  <m.rijk@chello.nl>

	* plug-ins/imagemap/imap_selection.c: don't use
	gtk_tree_selection_get_selected with GTK_SELECTION_MULTIPLE. Should
	finally fix bug #149157.
2004-12-14 21:22:28 +00:00
Sven Neumann 10d550f788 documented.
2004-12-14  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpstock.c (gimp_stock_init): documented.
2004-12-14 01:42:08 +00:00
Sven Neumann 0e62110271 don't call gtk_radio_tool_button_new_with_stock_from_widget() with a NULL
2004-12-14  Sven Neumann  <sven@gimp.org>

	* plug-ins/imagemap/imap_misc.c (make_toolbar_radio_icon): don't
	call gtk_radio_tool_button_new_with_stock_from_widget() with a
	NULL widget. Fixes bug #161210.
2004-12-14 01:03:14 +00:00
Sven Neumann f428c0ed08 added GIMP_API_VERSION to the generated gimpversion.h.
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-13 23:41:47 +00:00
Michael Natterer 5e75f585d6 added gimp_drawable_sub_thumbnail() to enable plug-ins avoiding
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.
2004-12-13 23:36:17 +00:00
Sven Neumann 3d7364b658 HACKING autogen.sh switched to using gtkdocize for the build of the API
2004-12-13  Sven Neumann  <sven@gimp.org>

	* HACKING
	* autogen.sh
	* configure.in: switched to using gtkdocize for the build of the
	API docs.
2004-12-13 22:51:55 +00:00
Sven Neumann b997c75b8c fixed ChangeLog 2004-12-13 22:05:48 +00:00
Maurits Rijk f96bd96237 don't try do to anything when selection is empty. Fixes bug #149157.
2004-12-13  Maurits Rijk  <m.rijk@chello.nl>

	* plug-ins/imagemap/imap_selection.c: don't try do to anything when
	selection is empty. Fixes bug #149157.
2004-12-13 21:58:51 +00:00
Maurits Rijk eadf6f3cbb plug-ins/imagemap/imap_misc.[ch] plug-ins/imagemap/imap_selection.[ch]
2004-12-13  Maurits Rijk  <m.rijk@chello.nl>

	* plug-ins/imagemap/imap_misc.[ch]
	* plug-ins/imagemap/imap_selection.[ch]
	* plug-ins/imagemap/imap_toolbar.[ch]
	* plug-ins/imagemap/imap_tools.[ch]: removed need for
	GTK_DISABLE_DEPRECATED. Looking at #149157 next...
2004-12-13 21:41:35 +00:00
Sven Neumann f21cde69a0 don't show the Crop tool window if Shift is being pressed on the initial
2004-12-13  Sven Neumann  <sven@gimp.org>

	* app/tools/gimpcroptool.c: don't show the Crop tool window if
	Shift is being pressed on the initial button_press event.
2004-12-13 21:09:43 +00:00