Commit Graph

10406 Commits

Author SHA1 Message Date
Michael Natterer 63c933aef7 added virtual function GimpContainerTreeView::drop_component(). Added EEKy
2005-01-15  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpcontainertreeview.[ch]: added virtual function
	GimpContainerTreeView::drop_component(). Added EEKy "dnd_gimp"
	needed for gimp_selection_data_get_component().

	* app/widgets/gimpitemtreeview.c (gimp_item_tree_view_set_context):
	set the "dnd_gimp" pointer if it is NULL.

	* app/widgets/gimpcontainertreeview-dnd.c: handle component drops
	and dispatch ::drop_component() accordingly.

	* app/widgets/gimplayertreeview.c: implement dropping of
	components as new layers. Addresses bugs #158483 and #158133.
2005-01-15 17:57:32 +00:00
Michael Natterer 7f74bdc941 app/display/gimpdisplayshell.c app/display/gimpdisplayshell-dnd.[ch]
2005-01-15  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpdisplayshell.c
	* app/display/gimpdisplayshell-dnd.[ch]
	* app/widgets/gimptoolbox-dnd.c: enabled dropping of components
	to the display and the toolbox. Addresses bug #158483.
2005-01-15 17:17:33 +00:00
Michael Natterer d0a78f3bdb don't require a non-NULL color parameter (just leave the default color
2005-01-15  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpchannel.c (gimp_channel_new*): don't require a
	non-NULL color parameter (just leave the default color untouched
	if NULL is passed).

	* app/actions/channels-commands.c
	* app/core/gimpchannel-select.c: pass NULL as color for temporary
	channels or channels where we used to pass black.
2005-01-15 16:59:34 +00:00
Michael Natterer bfa7335635 added gimp_dnd_get_component_icon().
2005-01-15  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpdnd.c: added gimp_dnd_get_component_icon().

	* app/widgets/gimpcomponenteditor.c: allow to drag
	components. They can't be dropped anywhere yet.
2005-01-15 14:55:15 +00:00
Sven Neumann 022b3532f8 libgimp/gimptile.c (gimp_tile_put) added missing calls to wire_destroy().
2005-01-15  Sven Neumann  <sven@gimp.org>

	* libgimp/gimptile.c (gimp_tile_put)
	* libgimp/gimp.c (gimp_loop) (gimp_read_expect_msg): added missing
	calls to wire_destroy(). Plugs memory leaks in the wire protocol.
2005-01-15 12:09:25 +00:00
Sven Neumann c40f654fb9 formatting.
2005-01-15  Sven Neumann  <sven@gimp.org>

	* libgimpbase/gimpprotocol.c: formatting.
2005-01-15 11:55:34 +00:00
Sven Neumann 09a190f132 plug-ins/script-fu/script-fu-scripts.c (script_fu_free_script) plugged
2005-01-15  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/script-fu-scripts.c (script_fu_free_script)
	* plug-ins/script-fu/siod-wrapper.c (init_procedures): plugged
	memory leaks.
2005-01-15 11:36:20 +00:00
Michael Natterer bb3a6002cf handle drops of items of all types from all images and convert them if
2005-01-15  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpitemtreeview.c
	(gimp_item_tree_view_drop_viewable): handle drops of items of all
	types from all images and convert them if needed.

	* app/widgets/gimplayertreeview.c: enable dropping of all kinds of
	drawables. Addresses bug #158133.
2005-01-15 03:24:42 +00:00
Michael Natterer 6dda0d82a6 reordered so COMPONENT is after IMAGE.
2005-01-15  Michael Natterer  <mitch@gimp.org>

	* app/widgets/widgets-enums.h (enum GimpDndType): reordered so
	COMPONENT is after IMAGE.

	* app/widgets/gimpdnd.[ch]
	* app/widgets/gimpselectiondata.[ch]: added API for passing
	components around via DND. Speaks in terms of a
	(GimpImage,GimpChannelType) tuple.
2005-01-15 02:24:38 +00:00
Sven Neumann eca7176e9c fixed array out-of-bounds access and some mem-leaks reported by valgrind.
2005-01-15  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/psd_save.c: fixed array out-of-bounds access and
	some mem-leaks reported by valgrind.
2005-01-15 01:33:52 +00:00
Michael Natterer 9c8c7401bd added bugfix note. 2005-01-15 00:53:42 +00:00
jaycox 2b6218a4ce Much less wasted memory. Save guides.
* plug-ins/common/psd_save.c: Much less wasted memory.  Save guides.
2005-01-15 00:38:46 +00:00
Michael Natterer 9e690da7e2 doesn't need "gimp-intl.h" either.
2005-01-14  Michael Natterer  <mitch@gimp.org>

	* app/paint/gimppaintcore-undo.c: doesn't need "gimp-intl.h" either.
2005-01-14 20:32:51 +00:00
Sven Neumann b9acc24be3 doesn't need to include "gimp-intl.h".
2005-01-14  Sven Neumann  <sven@gimp.org>

	* app/paint/gimpink-undo.c: doesn't need to include "gimp-intl.h".
2005-01-14 20:19:17 +00:00
Michael Natterer d4177c88ce added GIMP_UNDO_INK.
2005-01-14  Michael Natterer  <mitch@gimp.org>

	* app/core/core-enums.[ch] (enum GimpUndoType): added GIMP_UNDO_INK.

	* app/paint/gimppaintcore.[ch]: added virtual function
	GimpPaintCore::push_undo() and call it.

	* app/paint/gimppaintcore-undo.[ch]: made it the default
	implementation.

	* app/paint/gimpink-blob.[ch]: added blob_duplicate().

	* app/paint/gimpink.[ch]: added a "start_blob" (just like
	GimpPaintCore::start_coords) which gets set whenever we start a
	new stroke or line. Removed ink->lastx and ink->lasty because
	they are the same as paint_core->last_coords.

	* app/paint/Makefile.am
	* app/paint/gimpink-undo.[ch]: new files implementing an
	undo step for ink which restores the last blob used along
	with the whole ink state. Fixes bug #163670.
2005-01-14 20:13:54 +00:00
Michael Natterer e551a9a3c9 app/actions/buffers-commands.[ch] app/actions/data-commands.[ch]
2005-01-14  Michael Natterer  <mitch@gimp.org>

	* app/actions/buffers-commands.[ch]
	* app/actions/data-commands.[ch]
	* app/actions/documents-commands.[ch]
	* app/actions/palettes-commands.[ch]
	* app/actions/templates-commands.[ch]: changed the remaining
	callbacks to follow a consistent naming scheme
	(e.g. buffers_delete_buffer_cmd_callback ->
	buffers_delete_cmd_callback).

	* app/actions/brushes-actions.c
	* app/actions/buffers-actions.c
	* app/actions/documents-actions.c
	* app/actions/gradients-actions.c
	* app/actions/palettes-actions.c
	* app/actions/patterns-actions.c
	* app/actions/templates-actions.c: changed accordingly.
2005-01-14 13:30:05 +00:00
Sven Neumann 9a84d9f7ac fixed check for number of parameters in non-interactive mode.
2005-01-14  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/retinex.c (run): fixed check for number of
	parameters in non-interactive mode.
2005-01-14 12:05:02 +00:00
Manish Singh 9d9cb21c7c Add a Reset button. Addresses bug #163045.
2005-01-13  Manish Singh  <yosh@gimp.org>

        * plug-ins/common/channel_mixer.c: Add a Reset button. Addresses
        bug #163045.
2005-01-14 01:46:56 +00:00
Sven Neumann 862b8da908 removed obscure error codes from translatable error messages.
2005-01-14  Sven Neumann  <sven@gimp.org>

	* plug-ins/bmp/bmpread.c: removed obscure error codes from
	translatable error messages.
2005-01-13 23:15:54 +00:00
William Skaggs c8b1dfd54d Bill Skaggs <weskaggs@primate.ucdavis.edu>
* plug-ins/Lighting/lighting_shade.c: remove artifacts
	when light strikes underside of bumpmapped surface;
	should fix bug #163877.
2005-01-13 23:04:10 +00:00
William Skaggs 15c4486298 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* plug-ins/bmp/bmp.h
	* plug-ins/bmp/bmpread.c: handle negative height values
	as per spec, fixes bug #158033
2005-01-13 22:00:32 +00:00
Michael Natterer 0f4e21683e Allow to easily open brushes and patterns as images. Fixes bug #163059.
2005-01-13  Michael Natterer  <mitch@gimp.org>

	Allow to easily open brushes and patterns as images.
	Fixes bug #163059.

	* app/actions/brushes-actions.c
	* app/actions/patterns-actions.c: added "brushes-open-as-image"
	and "patterns-open-as-image" actions.

	* app/actions/data-commands.[ch]: added
	data_open_as_image_cmd_callback() which tries to load
	data->filename as image.

	* app/widgets/gimphelp-ids.h: added help IDs for the new actions.

	* app/widgets/gimpdatafactoryview.c: added buttons.

	* menus/brushes-menu.xml
	* menus/patterns-menu.xml: added them to the menus.
2005-01-13 20:22:53 +00:00
Michael Natterer 4e942377e6 Splitting GimpItem::convert() into two virtual functions was apparently
2005-01-13  Michael Natterer  <mitch@gimp.org>

	Splitting GimpItem::convert() into two virtual functions was
	apparently buggy over-engineering. Reverted that stuff and
	implement item conversion much simpler:

	* app/core/gimpitem.[ch]: have a single virtual function,
	GimpItem::convert(), which takes a newly duplicated item and the
	destination image.

	(gimp_item_convert): simply call GimpItem::convert() on the result
	of gimp_item_duplicate().

	(gimp_item_real_convert): set the item's new image.

	* app/core/gimplayer.c (gimp_layer_convert)
	* app/vectors/gimpvectors.c (gimp_vectors_convert): changed
	accordingly and chain up after, not before doing our own stuff
	so the old image is still available as item->image for stuff
	like colormap conversion. Fixes bug #163879.
2005-01-13 18:17:24 +00:00
Michael Natterer 4f97f7a5f9 Made the file open and save dialogs use the last used folder instead of
2005-01-13  Michael Natterer  <mitch@gimp.org>

	Made the file open and save dialogs use the last used folder
	instead of defaulting to current directory. Fixes bug #162385.

	* app/widgets/gimpfiledialog.[ch] (gimp_file_dialog_set_uri):
	removed this function because it had no functionality except
	creating usability problems.

	* app/actions/file-commands.c: use gtk_file_chooser_set_uri()
	instead but *only* if we already have an uri from an alread open
	image or the document hinstory.

	* app/widgets/gimpfiledialog.c (gimp_file_dialog_set_image): set
	the file chooser's uri only if we have an uri from the image
	itself. Leave the current folder untouched otherwise and just set
	the current name (e.g. "Untitled").

	* app/dialogs/file-save-dialog.c (file_save_dialog_save_image): on
	successful save, remember the used uri by attaching it to the
	"gimp" instance.

	(file_save_dialog_new): set the last saved uri's folder on the
	newly created file save dialog.
2005-01-13 17:41:48 +00:00
Sven Neumann 857279479e app/units.c app/core/gimp-units.c app/core/gimp.c added a utility function
2005-01-13  Sven Neumann  <sven@gimp.org>

	* app/units.c
	* app/core/gimp-units.c
	* app/core/gimp.c
	* app/core/gimpunit.[ch]: added a utility function that frees the
	memory allocated for user units. Minor cleanups.
2005-01-13 13:08:00 +00:00
Sven Neumann c743f6dee9 fixed my email address 2005-01-13 09:56:55 +00:00
Sven Neumann f20c9e81a7 added mk (Macedonian).
2005-01-13  Sven Neumann  <neumann@jpk.com>

        * configure.in (ALL_LINGUAS): added mk (Macedonian).
2005-01-13 09:43:24 +00:00
Sven Neumann f430627282 app/pdb/drawable_transform_cmds.c libgimp/gimpenums.h
2005-01-11  Sven Neumann  <neumann@jpk.com>

	* app/pdb/drawable_transform_cmds.c
	* libgimp/gimpenums.h
	* plug-ins/pygimp/gimpenums.py
	* tools/pdbgen/enums.pl: regenerated after change of
	GimpInterpolationType enum.
2005-01-11 18:36:58 +00:00
Sven Neumann f3166ba9f9 app/base/base-enums.[ch] app/core/gimpdrawable-transform.c
2005-01-11  Sven Neumann  <neumann@jpk.com>

	* app/base/base-enums.[ch]
	* app/core/gimpdrawable-transform.c
	* app/core/gimpdrawable.c
	* app/paint-funcs/Makefile.am
	* app/paint-funcs/paint-funcs.[ch]
	* app/paint-funcs/scale-funcs.[ch]: applied patch by Geert Jordaens
	(after a good deal of reformatting for coding style compliance).
	This factors the scale routines into their own file and adds a
	sinc-based (Lanczos) interpolation routine (bug #162250).
2005-01-11 18:31:07 +00:00
Sven Neumann 6d728c3046 removed wrong URL from help output.
2005-01-11  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/siod/slib.c (help): removed wrong URL from
	help output.
2005-01-11 09:41:53 +00:00
Manish Singh 4f792ee092 #include <time.h> to make sure all the types are there for the alsa
2005-01-10  Manish Singh  <yosh@gimp.org>

        * modules/controller_midi.c: #include <time.h> to make sure all
        the types are there for the alsa headers. Should address bug
        #163593.
2005-01-10 21:34:11 +00:00
Sven Neumann f453be6b2f explicitely mention the encoding.
2005-01-10  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/pdb/text_tool.pdb: explicitely mention the encoding.

	* app/pdb/text_tool_cmds.c
	* libgimp/gimptexttool_pdb.c: regenerated.
2005-01-10 21:17:43 +00:00
David Odin 65c70b0f1f update the preview when a parameter change. Updating the preview is now
* plug-ins/common/sparkle.c: update the preview when a parameter
  change.  Updating the preview is now disabled by default since it can
  be very slow.
2005-01-10 21:13:50 +00:00
Sven Neumann 773345cb6d fixed out-of-bounds access in gradient selection widget. Presumably fixes
2005-01-09  Sven Neumann  <sven@gimp.org>

	* libgimp/gimpgradientmenu.c: fixed out-of-bounds access in
	gradient selection widget. Presumably fixes bug #163427.
2005-01-09 20:15:24 +00:00
Sven Neumann fb73b3d786 changed "Key" to "Cursor".
2005-01-09  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpcontrollerkeyboard.c: changed "Key" to "Cursor".
2005-01-09 02:07:31 +00:00
David Odin 524394cd3f added a preview. This will need more testing. Shlomi Fish, can you please
* plug-ins/common/sparkle.c: added a preview. This will need more
  testing.  Shlomi Fish, can you please try to test this plug-in again?
2005-01-09 01:35:07 +00:00
Sven Neumann ae128ff635 connect to "button_press_event" and start editing immidiately instead of
2005-01-09  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpactionview.c (gimp_action_view_new): connect to
	"button_press_event" and start editing immidiately instead of
	waiting for a second click. Fixes bug #163385.
2005-01-09 01:29:30 +00:00
Sven Neumann f571ceebec if called with (ensure_visibility == TRUE), raise the toolbox. Fixes bug
2005-01-09  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpdialogfactory.c (gimp_dialog_factories_toggle):
	if called with (ensure_visibility == TRUE), raise the toolbox.
	Fixes bug #163381.
2005-01-09 00:08:42 +00:00
David Odin b7e646fc8f made the preview fast enough to be useful.
* plug-ins/common/mosaic.c: made the preview fast enough to be useful.
2005-01-08 17:17:19 +00:00
Sven Neumann c9f83a1326 really fix handling of RTL layouts (bug #162663).
2005-01-08  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpcontainertreeview.c
	(gimp_container_tree_view_find_click_cell): really fix handling of
	RTL layouts (bug #162663).
2005-01-08 16:52:44 +00:00
Sven Neumann 09bb9ebb1d fixed handling of clicks into a horizontally scrolled treeview.
2005-01-08  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpcontainertreeview.c
	(gimp_container_tree_view_button_press): fixed handling of clicks
	into a horizontally scrolled treeview.
2005-01-08 16:35:39 +00:00
Sven Neumann 32731ae0ea use a GimpMessageBox to display the informative message when scaling an
2005-01-08  Sven Neumann  <sven@gimp.org>

	* app/dialogs/scale-dialog.c: use a GimpMessageBox to display the
	informative message when scaling an indexed image.
2005-01-08 16:22:31 +00:00
Sven Neumann 9167346a5c handle RTL layouts (fixes bug #162663).
2005-01-07  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpcontainertreeview.c
	(gimp_container_tree_view_button_press): handle RTL layouts (fixes
	bug #162663).
2005-01-07 21:46:04 +00:00
Shlomi Fish 48d6f68c02 made sure the shadow is given enough space and then truncated instead of
2005-01-07  Shlomi Fish  <shlomif@iglu.org.il>

	* plug-ins/script-fu/scripts/frosty-logo.scm: made sure the shadow
	is given enough space and then truncated instead of translated to the
	center of the image, thus preventing the display of shadows with
	a completely horizontal or vertical edge.

	Fixes bug #132145.
2005-01-07 20:47:03 +00:00
Michael Natterer 2cd34bf12d moved variables to local scopes, assign the snapped coords unconditionally
2005-01-07  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpimage-snap.c: moved variables to local scopes,
	assign the snapped coords unconditionally (also if we don't snap),
	cleanup.

	(gimp_image_snap_rectangle): entirely rewritten to use local
	mindist_x, mindist_y variables instead of fiddling with lots of
	boolean variables. Implemented vectors snapping as if the required
	GimpStroke functions existed (#defined them). Simon, your turn :)
2005-01-07 19:50:01 +00:00
Michael Natterer 35776754dd app/actions/plug-in-commands.c GIMP_PROGRESS(NULL) is perfectly valid, no
2005-01-07  Michael Natterer  <mitch@gimp.org>

	* app/actions/plug-in-commands.c
	* app/actions/vectors-commands.c: GIMP_PROGRESS(NULL) is perfectly
	valid, no need to say gdisp ? GIMP_PROGRESS(gdisp) : NULL.

	* app/actions/plug-in-commands.c (plug_in_run_cmd_callback):
	remember the last plug-in if it has at least 3 args, not 2.
	Cleaned up the whole function and removed cruft.
2005-01-07 19:36:43 +00:00
Sven Neumann 829fc5a061 app/composite/gimp-composite-x86.h applied patch from Andreas Jochens that
2005-01-07  Sven Neumann  <sven@gimp.org>

	* app/composite/gimp-composite-x86.h
	* app/composite/gimp-composite-sse.c: applied patch from Andreas
	Jochens that fixes the build on amd64 with gcc-4.0 (bug #163041).
2005-01-07 12:23:44 +00:00
Sven Neumann 89e291685d fixed my email address 2005-01-07 11:47:38 +00:00
Sven Neumann a99c35c785 changed Comment field as suggested in bug #160990.
2005-01-07  Sven Neumann  <neumann@jpk.com>

	* data/misc/gimp.desktop.in.in: changed Comment field as suggested
	in bug #160990.
2005-01-07 11:46:28 +00:00
Sven Neumann 65fff0d0a5 just some minor formatting changes.
2005-01-07  Sven Neumann  <neumann@jpk.com>

	* plug-ins/common/mail.c: just some minor formatting changes.
2005-01-07 08:56:10 +00:00
Sven Neumann adabbad909 plug-ins/jpeg/Makefile.am plug-ins/jpeg/jpeg-exif.c
2005-01-07  Sven Neumann  <sven@gimp.org>

	* plug-ins/jpeg/Makefile.am
	* plug-ins/jpeg/jpeg-exif.c
	* plug-ins/jpeg/jpeg-load.c
	* plug-ins/jpeg/jpeg-save.c
	* plug-ins/jpeg/jpeg.[ch]: some code cleanup.
2005-01-06 23:21:43 +00:00
Manish Singh 59399ad10e flush the display in dispose if we're no longer in a main loop, so the
2005-01-06  Manish Singh  <yosh@gimp.org>

        * libgimpwidgets/gimpdialog.c: flush the display in dispose if we're
        no longer in a main loop, so the dialog doesn't hang around while
        possibly long running calculations are being done. Fixes bug #163084.
2005-01-06 22:19:35 +00:00
Michael Schumacher 4bc5b20edd added gimp_scrolled_preview_set_position
2005-01-06  Michael Schumacher <schumaml@cvs.gnome.org>

	* libgimpwidgets/gimpwidgets.def: added
	gimp_scrolled_preview_set_position
2005-01-06 15:29:19 +00:00
Sven Neumann 3b6eae4e27 applied patch from Shlomi Fish that fixes more regressions in Sparkle
2005-01-06  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/sparkle.c: applied patch from Shlomi Fish that
	fixes more regressions in Sparkle plug-in (bug #132145).
2005-01-06 15:14:26 +00:00
David Odin d9e414fd8d new function: gimp_scrolled_preview_set_position () to set the position of
* libgimpwidgets/gimpscrolledpreview.[ch]: new function:
  gimp_scrolled_preview_set_position () to set the position of the
  preview content wrt the drawable.  This function might be moved to a
  virtual function of GimpPreview in a near future.

* libgimp/gimpdrawablepreview.c: use this function, so a preview
  remembers its position from one invocation to the next.  This is done
  using the current executable name as a key for gimp_set/get_data () so
  each plug-in can have its preview on a different place.

  More informations could be saved this way: the update toggle, the checks, etc.

  Addresses bug #162286.

* libgimpwidgets/gimppreview.c: smallish cleanup.
2005-01-05 22:33:44 +00:00
William Skaggs bd895a1131 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* configure.in: add check for libexif version >= 0.6.0,
	necessary because of nasty incompatible api change.

	* plug-ins/jpeg/exif-handling.txt: removed from here...

	* devel-docs/exif-handling.txt: ...and added here

	* plug-ins/jpeg/jpeg-exif.c
	* plug-ins/jpeg/Makefile.am
	* plug-ins/jpeg/jpeg-load.c
	* plug-ins/jpeg/jpeg.c
	* plug-ins/jpeg/jpeg.h: extract info from exif on loading,
	and add info to exif on saving, addresses bug #56433,
	bug #61499, and bug #121810.
2005-01-04 17:48:13 +00:00
Sven Neumann a6ac8d2480 set the default response to Cancel in order to reduce the risk of
2005-01-04  Sven Neumann  <sven@gimp.org>

	* app/display/gimpdisplayshell-close.c
	(gimp_display_shell_close_dialog): set the default response to
	Cancel in order to reduce the risk of accidentally saving an
	image (bug #162872).
2005-01-04 00:14:06 +00:00
Sven Neumann a1818adf0f prepared code for fixing bug #162663.
2005-01-04  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpcontainertreeview.c: prepared code for fixing
	bug #162663.
2005-01-03 23:47:26 +00:00
David Odin 013a7a437c invalidate the preview when a parameter change. Disabled updating the
* plug-ins/common/mosaic.c: invalidate the preview when a parameter
  change.  Disabled updating the preview by default. There is room
  optimisations, but this fixes #162710.
2005-01-03 21:39:13 +00:00
Sven Neumann 4d1396596d made the code look more similar to GtkCellRendererToggle to allow for easy
2005-01-03  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpcellrenderertoggle.c
	(gimp_cell_renderer_toggle_get_size): made the code look more
	similar to GtkCellRendererToggle to allow for easy comparison.
2005-01-03 21:26:26 +00:00
Sven Neumann c314eef7e5 do actually add the new procedure gimp_gradient_is_editable().
2005-01-03  Sven Neumann  <neumann@jpk.com>

	* tools/pdbgen/pdb/gradient.pdb: do actually add the new procedure
	gimp_gradient_is_editable().

	* app/pdb/gradient_cmds.c
	* app/pdb/internal_procs.c
	* libgimp/gimpgradient_pdb.[ch]: regenerated.

	* libgimp/gimp.def: updated.
2005-01-03 17:58:25 +00:00
Michael Natterer 4a0b9cb662 app/actions/view-actions.c app/actions/view-commands.[ch]
2005-01-03  Michael Natterer  <mitch@gimp.org>

	* app/actions/view-actions.c
	* app/actions/view-commands.[ch]
	* app/display/gimpdisplayshell-appearance.[ch]
	* menus/image-menu.xml.in: reordered actions, functions and menu
	items so the "show" and "snap" actions are grouped.
2005-01-03 16:55:24 +00:00
Michael Natterer 150bea1e80 Implemented "Snap to Canvas Edges" (fixes bug #152971) and "Snap to Active
2005-01-03  Michael Natterer  <mitch@gimp.org>

	Implemented "Snap to Canvas Edges" (fixes bug #152971) and
	"Snap to Active Path" (half way done):

	* app/core/gimpimage-snap.[ch]: added boolean snap_to_canvas and
	snap_to_vectors parameters (snap_to_vectors works fine when
	snapping to a point, but is unimplemented for snapping to a
	rectangle).

	* app/display/gimpdisplayshell.[ch] (struct GimpDisplayShell):
	added snap_to_canvas and snap_to_vectors booleans.

	* app/display/gimpdisplayshell-appearance.[ch]: added API to
	get/set them.

	* app/actions/view-actions.c
	* app/actions/view-commands.[ch]
	* app/widgets/gimphelp-ids.h: added actions, callbacks and help IDs.

	* menus/image-menu.xml.in: added them to Image->View.
2005-01-03 16:19:10 +00:00
Sven Neumann 28251be0e9 use g_free() to release memory allocated using g_malloc().
2005-01-03  Sven Neumann  <neumann@jpk.com>

	* plug-ins/ifscompose/ifscompose.c: use g_free() to release memory
	allocated using g_malloc().
2005-01-03 15:40:51 +00:00
Michael Natterer 8e1a10737b need to snap the coordinates before passing them to the active tool.
2005-01-03  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpdisplayshell-autoscroll.c
	(gimp_display_shell_autoscroll_timeout): need to snap the
	coordinates before passing them to the active tool.
2005-01-03 15:00:55 +00:00
Sven Neumann 919ae7f5cb removed GtkFrame from dialog and replaced a call to free() by g_free().
2005-01-03  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/fp.c: removed GtkFrame from dialog and replaced
	a call to free() by g_free().
2005-01-03 13:22:44 +00:00
Michael Natterer fcc856868f app/paint/gimpbrushcore.c app/paint/gimppaintoptions.[ch] renamed
2005-01-03  Michael Natterer  <mitch@gimp.org>

	* app/paint/gimpbrushcore.c
	* app/paint/gimppaintoptions.[ch]
	* app/tools/gimppaintoptions-gui.c: renamed "invsize" to
	"inverse-size" and reordered it to be after "size".
2005-01-03 12:08:56 +00:00
Sven Neumann 71962f47a8 another update from Eric Pierce.
2005-01-03  Sven Neumann  <sven@gimp.org>

	* etc/ps-menurc: another update from Eric Pierce.
2005-01-02 23:14:14 +00:00
Sven Neumann 4e3026c637 handle event time as guint32. That's the type we deal with here and it
2005-01-03  Sven Neumann  <sven@gimp.org>

	* app/paint/gimpink.[ch]: handle event time as guint32. That's the
	type we deal with here and it avoids a crash that occured when
	autoscrolling with the Ink tool.

	* app/display/gimpdisplayshell-autoscroll.c: cosmetics.
2005-01-02 23:09:54 +00:00
Michael Natterer aef1cf9306 app/display/Makefile.am app/display/gimpdisplayshell-autoscroll.[ch] new
2005-01-02  Michael Natterer  <mitch@gimp.org>

	* app/display/Makefile.am
	* app/display/gimpdisplayshell-autoscroll.[ch]
	* app/display/gimpdisplayshell-coords.[ch]: new files factored out
	of gimpdisplayshell-callbacks.c

	* app/display/gimpdisplayshell.h (struct GimpDisplayShell): added
	"gpointer scroll_info" needed by autoscroll.

	* app/display/gimpdisplayshell-callbacks.c: removed the stuff
	above. Also removed the static autoscroll struct because it's not
	needed any longer.
2005-01-02 20:42:31 +00:00
David Odin 9ecaa8f22c Added a preview. This still needs some work and some testing. Calculating
* plug-ins/common/mosaic.c: Added a preview.  This still needs some
  work and some testing.  Calculating the preview takes ages.
2005-01-02 20:23:13 +00:00
William Skaggs 05015d7bbf Bill Skaggs <weskaggs@primate.ucdavis.edu>
* plug-ins/jpeg/exif-handling.txt:  added summary of how Gimp should
	handle each exif field according to the specs.
2005-01-02 18:19:53 +00:00
Sven Neumann 23a3bdf31e app/widgets/gimpsizebox.c round displayed resolution instead of just
2005-01-02  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpsizebox.c
	* app/widgets/gimptemplateeditor.c: round displayed resolution
	instead of just casting to integer values. Use image size limits
	from libgimpbase/gimplimits.h instead of some arbitrary numbers.
2005-01-02 16:55:50 +00:00
Manish Singh c84a37cdc0 ytpo fix 2005-01-02 09:07:18 +00:00
Manish Singh 9a303fd101 plug-ins/pygimp/plug-ins/clothify.py Add layers to images before using
2005-01-02  Manish Singh  <yosh@gimp.org>

        * plug-ins/pygimp/plug-ins/clothify.py
        * plug-ins/pygimp/plug-ins/foggify.py: Add layers to images before
        using then. Fixes bug #162707.
2005-01-02 09:05:31 +00:00
Maurits Rijk f7fa12f7d0 bumped version number
2005-01-02  Maurits Rijk  <m.rijk@chello.nl>

	* plug-ins/imagemap/imap_about.c: bumped version number

	* plug-ins/imagemap/AUTHORS
	* plug-ins/imagemap/NEWS
	* plug-ins/imagemap/README
	* plug-ins/imagemap/TODO: removed since they don't contain relevant
	information anymore.

	* plug-ins/imagemap/imap_popup.[ch]: removed

	* plug-ins/imagemap/Makefile.am
	* po-plug-ins/POTFILES.in: changed accordingly

	* plug-ins/imagemap/imap_grid.c
	* plug-ins/imagemap/imap_main.[ch]
	* plug-ins/imagemap/imap_menu.[ch]
	* plug-ins/imagemap/imap_object_popup.c
	* plug-ins/imagemap/imap_preview.c
	* plug-ins/imagemap/imap_toolbar.[ch]
	* plug-ins/imagemap/imap_tools.[ch]: first set of changes to fix
	#138841 (Use action based menus in Imagemap plug-in).
2005-01-02 08:07:03 +00:00
Sven Neumann 9dc239a433 fixed display of progress labels in RTL environment.
2005-01-02  Sven Neumann  <sven@gimp.org>

	* app/gui/splash.c (splash_update): fixed display of progress
	labels in RTL environment.
2005-01-02 03:32:10 +00:00
Sven Neumann 4e6961723c updated PS keybindings contributed by Eric Pierce.
2005-01-02  Sven Neumann  <sven@gimp.org>

	* etc/ps-menurc: updated PS keybindings contributed by Eric Pierce.
2005-01-02 02:30:41 +00:00
Sven Neumann 8511b4c226 fixed position of pixel and resolution labels.
2005-01-02  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpsizebox.c (gimp_size_box_constructor): fixed
	position of pixel and resolution labels.
2005-01-02 02:07:46 +00:00
Sven Neumann 3e1be87099 fixed auto-scrolling for left and bottom display edges. Remove the timeout
2005-01-02  Sven Neumann  <sven@gimp.org>

	* app/display/gimpdisplayshell-callbacks.c: fixed auto-scrolling
	for left and bottom display edges. Remove the timeout on
	button-release event, some minor cleanups.
2005-01-02 01:27:16 +00:00
William Skaggs ffcdc61e7d Bill Skaggs <weskaggs@primate.ucdavis.edu>
* plug-ins/jpeg/jpeg_load.c
	* plug-ins/jpeg/jpeg_load.h
	* plug-ins/jpeg/jpeg_save.c
	* plug-ins/jpeg/jpeg_save.h: removed

	* plug-ins/jpeg/jpeg-load.c
	* plug-ins/jpeg/jpeg-load.h
	* plug-ins/jpeg/jpeg-save.c
	* plug-ins/jpeg/jpeg-save.h: added (changing _ to -)

	* plug-ins/jpeg/Makefile.am
	* plug-ins/jpeg/jpeg.c
	* po-plug-ins/POTFILES.in: changed accordingly
2005-01-02 00:58:26 +00:00
Sven Neumann 7039edf4a4 applied patch from Shlomi Fish that fixes regressions in Sparkle plug-in
2005-01-02  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/sparkle.c: applied patch from Shlomi Fish that
	fixes regressions in Sparkle plug-in (bug #132145).
2005-01-02 00:44:02 +00:00
Sven Neumann ebdbc9a6ff changed for move of JPEG plug-in.
2005-01-02  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/plugin-defs.pl: changed for move of JPEG plug-in.
2005-01-02 00:32:20 +00:00
William Skaggs f5b5bfb388 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* plug-ins/Lighting/lighting_ui.c: add a control for
	viewpoint distance.  Should finish fixing bug #4044.
2005-01-02 00:01:20 +00:00
William Skaggs 1a18bdd23b Bill Skaggs <weskaggs@primate.ucdavis.edu>
* plug-ins/jpeg/Makefile.am
	* plug-ins/jpeg/NEWS
	* plug-ins/jpeg/jpeg.c
	* plug-ins/jpeg/jpeg.h
	* plug-ins/jpeg/jpeg_load.c
	* plug-ins/jpeg/jpeg_load.h
	* plug-ins/jpeg/jpeg_save.c
	* plug-ins/jpeg/jpeg_save.h: moved jpeg code into new
	dir and split up, already too large and a good bit more
	will be needed for proper exif handling.

	* plug-ins/common/jpeg.c: removed

	* configure.in
	* plug-ins/Makefile.am
	* plug-ins/common/Makefile.am: changed accordingly
2005-01-01 22:36:06 +00:00
Manish Singh a52204ed34 Revert incorrect optimization from previous change.
2005-01-01  Manish Singh  <yosh@gimp.org>

        * plug-ins/common/tiff.c: Revert incorrect optimization from previous
        change.
2005-01-01 21:11:08 +00:00
William Skaggs 79726aedec Bill Skaggs <weskaggs@primate.ucdavis.edu>
* plug-ins/common/gradmap.c: added procedure plug_in_palettemap
	that does the same thing as gradmap except using the current
	palette; should resolve bug #68879.
2005-01-01 19:31:03 +00:00
Manish Singh 304199263e Special case 1-bit black & white indexed images to save out as 1-bit
2005-01-02  Manish Singh  <yosh@gimp.org>

        * plug-ins/common/tiff.c: Special case 1-bit black & white indexed
        images to save out as 1-bit grayscale MINISWHITE tiffs. Also load
        these images as indexed images into GIMP. Fixes bug #150865.
2005-01-01 19:13:38 +00:00
William Skaggs 398f47529d Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/display/gimpdisplayshell-callbacks.c: use a timeout for
	autoscrolling, to fix bug #8269.  Happy new year!
2005-01-01 17:58:56 +00:00
William Skaggs 7a3eee51f0 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/paint/gimpbrushcore.c
	* app/paint/gimppaintoptions.c
	* app/paint/gimppaintoptions.h
	* app/tools/gimppaintoptions-gui.c: reverted last change, and
	applied full patch from Dave Ahlswede in bug #149576.
2005-01-01 00:04:37 +00:00
William Skaggs 8a651f34df Bill Skaggs <weskaggs@primate.ucdavis.edu>
* tools/pdbgen/pdb/gradient.pdb: added gradient-is-editable

	* tools/pdbgen/pdb/brush.pdb
	* tools/pdbgen/pdb/palette.pdb: changed mitch_misc to bill_misc
	where correct.

	* app/pdb/brush_cmds.c
	* app/pdb/palette_cmds.c
	* libgimp/gimpbrush_pdb.c
	* libgimp/gimppalette_pdb.c: regenerated.
2004-12-31 19:48:29 +00:00
William Skaggs b9a8adfdae Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/paint/gimpbrushcore.c: make previously committed change
	in pressure-size relationship apply only to airbrush, as
	intended.
2004-12-31 18:52:28 +00:00
Michael Natterer da3c78d5e6 use the orininal string if plug_in_actions_check_translation() fails
2004-12-31  Michael Natterer  <mitch@gimp.org>

	* app/actions/plug-in-actions.c: use the orininal string if
	plug_in_actions_check_translation() fails instead of bailing out.
	Fixes bug #162590.
2004-12-31 18:17:57 +00:00
Michael Natterer e5feab6519 removed the just added gimp_palette_insert_entry() and added a "gint
2004-12-31  Michael Natterer  <mitch@gimp.org>

	* app/core/gimppalette.[ch]: removed the just added
	gimp_palette_insert_entry() and added a "gint position" parameter
	to gimp_palette_add_entry() instead (no need to have two almost
	identical functions).

	* app/actions/palette-editor-commands.c
	* app/core/gimppalette-import.c
	* app/widgets/gimppaletteeditor.c
	* tools/pdbgen/pdb/palette.pdb: changed accordingly.

	* app/pdb/palette_cmds.c: regenerated.
2004-12-31 17:27:57 +00:00
Michael Natterer c1ddf3ea45 use the coordinates passed in the color drop callback instead of
2004-12-31  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpfgbgeditor.[ch]: use the coordinates passed in
	the color drop callback instead of remembering them in the
	drag_motion handler.
2004-12-31 16:53:22 +00:00
Sven Neumann 515482fc20 fixed rounding so that all brush kernels are created with a constant sum
2004-12-31  Sven Neumann  <sven@gimp.org>

	* tools/kernelgen.c: fixed rounding so that all brush kernels are
	created with a constant sum of 256.

	* app/paint/gimpbrushcore-kernels.h: regenerated.

	* app/paint/gimpbrushcore.c (gimp_brush_core_subsample_mask): use
	the constant defined un app/paint/gimpbrushcore-kernels.h. Should
	give a tiny speedup.
2004-12-31 16:20:51 +00:00
William Skaggs b650df0c8e Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/paint/gimpbrushcore.c: invert dependence of brush size on pressure,
	using formula from Dave Ahlswede in bug #149576.
2004-12-31 15:43:58 +00:00
Michael Natterer e0f25134ca Applied modified patch from Ben Campbell which adds drop coordinates to
2004-12-31  Michael Natterer  <mitch@gimp.org>

	Applied modified patch from Ben Campbell which adds drop
	coordinates to the color drop callback and uses it to insert
	colors in the palette editor. Extended the patch to add drop
	coordinates to all drop callbacks.

	* app/core/gimppalette.[ch]: added gimp_palette_insert_entry().

	* app/display/gimpdisplayshell-dnd.[ch]: added drop coordinates
	to all drop callbacks.

	* app/dialogs/palette-import-dialog.c
	* app/widgets/gimpcolormapeditor.c
	* app/widgets/gimpcontainerview.c
	* app/widgets/gimpdnd.[ch]
	* app/widgets/gimpdrawabletreeview.c
	* app/widgets/gimpfgbgeditor.c
	* app/widgets/gimpgradienteditor.c
	* app/widgets/gimpitemtreeview.c
	* app/widgets/gimppaletteeditor.c
	* app/widgets/gimppropwidgets.c
	* app/widgets/gimpselectioneditor.c
	* app/widgets/gimptoolbox-dnd.c
	* app/widgets/gimptoolbox-image-area.c
	* app/widgets/gimptoolbox-indicator-area.c
	* app/widgets/gimptooloptionseditor.c
	* libgimpwidgets/gimpcolorselect.c: changed accordingly. The passed
	drop coordiantes are so far unused.

	* app/widgets/gimppaletteeditor.c: use the drop coordinates to
	insert the new color into the palette at the right place instead
	of always appending. Fixes bug #150030.
2004-12-31 14:36:30 +00:00
Michael Natterer 8439ecb6da app/actions/tools-actions.c app/actions/tools-commands.[ch] applied a
2004-12-31  Michael Natterer  <mitch@gimp.org>

	* app/actions/tools-actions.c
	* app/actions/tools-commands.[ch]
	* app/widgets/gimptoolview.[ch]: applied a (modified) patch from
	Joao S. O. Bueno which adds "raise" and "lower" actions and
	their buttons in the tool dialog. Fixes bug #158666.
	Cleaned up the tool action callbacks.
2004-12-31 13:29:39 +00:00
Sven Neumann 4df339c091 use the proper image type and rowstride. Fixes bug #162592.
2004-12-31  Sven Neumann  <sven@gimp.org>

	* plug-ins/imagemap/imap_preview.c (render_rgb_image): use the proper
	image type and rowstride. Fixes bug #162592.
2004-12-31 02:42:10 +00:00
Manish Singh 03cef22080 Oop, forgot changelog 2004-12-31 00:39:35 +00:00
William Skaggs 129c953b6f Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/widgets/gimpsizebox.c: give correct arguments to
	gimp_coordinates_new().  Fixes problem described in
	comment 6 of bug #162387.
2004-12-31 00:27:35 +00:00
Sven Neumann c30a919b68 bumped gimp_app_version and gimp_user_version to 2.3.
2004-12-31  Sven Neumann  <sven@gimp.org>

	* configure.in: bumped gimp_app_version and gimp_user_version to 2.3.
2004-12-31 00:22:34 +00:00
William Skaggs 610b26c2f4 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* tools/pdbgen/pdb/brush.pdb: added api for changing properties
	of generated brushes.

	* tools/pdbgen/pdb/palette.pdb: added palette_is_editable().

	* app/pdb/brush_cmds.c
	* app/pdb/internal_procs.c
	* app/pdb/palette_cmds.c
	* libgimp/gimpbrush_pdb.c
	* libgimp/gimpbrush_pdb.h
	* libgimp/gimppalette_pdb.c
	* libgimp/gimppalette_pdb.h: autogenerated.
2004-12-30 23:28:38 +00:00
Sven Neumann 610ea3091a bumped version to 2.3.0.
2004-12-29  Sven Neumann  <sven@gimp.org>

	* configure.in: bumped version to 2.3.0.
2004-12-29 14:56:43 +00:00
Sven Neumann b5f0facec3 handle a NULL return value from gtk_file_chooser_get_uri(). Fixes bug
2004-12-29  Sven Neumann  <sven@gimp.org>

	* app/dialogs/file-save-dialog.c (file_save_dialog_response):
	handle a NULL return value from gtk_file_chooser_get_uri(). Fixes
	bug #162443.
2004-12-29 14:17:43 +00:00
Maurits Rijk 0358e3814b replace home-brewn color selection by GimpColorButton.
2004-12-29  Maurits Rijk  <m.rijk@chello.nl>

	* plug-ins/imagemap/imap_preferences.[ch]: replace home-brewn color
	selection by GimpColorButton.
2004-12-29 13:04:42 +00:00
David Odin ed4dbde140 plug-ins/gfig/gfig-rectangle.[ch] news files to implement a rectangle tool
* plug-ins/gfig/gfig-rectangle.[ch]
* plug-ins/gfig/images/stock-rectangle.png: news files to implement a
  rectangle tool to gfig.

* plug-ins/gfig/gfig-stock.c
* plug-ins/gfig/gfig-stock.h
* plug-ins/gfig/Makefile.am: modified accordingly.

* plug-ins/gfig/gfig-circle.c
* plug-ins/gfig/gfig-dialog.c
* plug-ins/gfig/gfig-dobject.c
* plug-ins/gfig/gfig-ellipse.c
* plug-ins/gfig/gfig-poly.c
* plug-ins/gfig/gfig-star.c
* plug-ins/gfig/gfig-types.h
* plug-ins/gfig/gfig.c
* plug-ins/gfig/gfig.h: modified to support the new shape and
  implement two new filling types: vertical and horizontal gradients.
  These gradients are imho much more useful than the shapeburst one.
2004-12-29 01:16:20 +00:00
William Skaggs bc9bc06510 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* plug-ins/common/compose.c: Recompose did not properly
	handle case where layer with alpha is decomposed into
	something that does not encode alpha -- now does.
2004-12-29 01:05:14 +00:00
Michael Natterer a46c649956 new utility function instead of code duplication.
2004-12-28  Michael Natterer  <mitch@gimp.org>

	* app/core/gimp-edit.c (gimp_edit_set_buffer): new utility
	function instead of code duplication.
2004-12-28 22:42:04 +00:00
Michael Natterer ab79fa6059 added translatable strings to the GimpLayerModeEffects enum because they
2004-12-28  Michael Natterer  <mitch@gimp.org>

	* app/base/base-enums.[ch]: added translatable strings to the
	GimpLayerModeEffects enum because they will soon disappear from
	widgets/gimpwidgets-constructors.c
2004-12-28 22:07:29 +00:00
William Skaggs 1472c92a05 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* plug-ins/common/compose.c: add "Recompose" (plug_in_recompose)
	as described on dev mailing list.

	* plug-ins/common/decompose.c: add "decompose-data" parasite
	when decoposing, to support Recompose.  Also add missing
	alpha channels to newly produced layers
2004-12-28 21:15:45 +00:00
Sven Neumann 70d570d000 Made 2.2.1 release.
2004-12-28  Sven Neumann  <sven@gimp.org>

        * Made 2.2.1 release.
2004-12-28 16:10:38 +00:00
Sven Neumann 4d27239a9c renamed menu_path parameter to menu_label and added a pointer to
2004-12-28  Sven Neumann  <sven@gimp.org>

	* libgimp/gimp.[ch] (gimp_install_procedure, gimp_install_temp_proc):
	renamed menu_path parameter to menu_label and added a pointer to
	gimp_plugin_menu_register()

	* app/widgets/gimpsizebox.c (gimp_size_box_constructor): removed
	unused variables.
2004-12-28 15:21:16 +00:00
Sven Neumann 7544ed7605 reverted Bill's change since it is obviously not the right fix. Allocate
2004-12-28  Sven Neumann  <sven@gimp.org>

	* app/paint/gimpbrushcore.c (gimp_brush_core_subsample_mask):
	reverted Bill's change since it is obviously not the right fix.
	Allocate the array larger to avoid the crash. We need to
	investigate bug #161323 further.
2004-12-28 14:20:26 +00:00
Sven Neumann 19a39a1234 fixed spelling of Robert's name 2004-12-28 13:10:20 +00:00
William Skaggs 201e23cf7f Change spelling of name from 'Robert Ogren' to 'Robert Egren' in ChangeLog :-). 2004-12-27 19:56:52 +00:00
William Skaggs 5c80016c50 Forgot to give proper credit in ChangeLog entry in previous commit. 2004-12-27 19:50:59 +00:00
William Skaggs 551b11f9b2 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/paint/gimpbrushcore.c (gimp_brush_core_subsample_mask):
	don't set array outside its bounds.  Should fix bug #161323.
2004-12-27 19:46:17 +00:00
Sven Neumann 965b4ff0bb if possible, use gimp_preview_draw_buffer() so that the selection mask is
2004-12-27  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/colortoalpha.c: if possible, use
	gimp_preview_draw_buffer() so that the selection mask is correctly
	previewed. Minor cleanups.
2004-12-27 10:43:38 +00:00
Sven Neumann 59b87864f4 added some checks to avoid division by zero.
2004-12-27  Sven Neumann  <sven@gimp.org>

	* libgimp/gimpregioniterator.c: added some checks to avoid
	division by zero.

	* libgimpwidgets/gimppreviewarea.[ch]: minor cleanups, improved
	API documentation.
2004-12-27 10:24:16 +00:00
David Odin 5a1a005074 plug-ins/gfig/gfig-arc.c plug-ins/gfig/gfig-bezier.c
* plug-ins/gfig/gfig-arc.c
* plug-ins/gfig/gfig-bezier.c
* plug-ins/gfig/gfig-circle.c
* plug-ins/gfig/gfig-dialog.c
* plug-ins/gfig/gfig-ellipse.c
* plug-ins/gfig/gfig-line.c
* plug-ins/gfig/gfig-poly.c
* plug-ins/gfig/gfig-spiral.c
* plug-ins/gfig/gfig-star.c
* plug-ins/gfig/gfig-style.h
* plug-ins/gfig/gfig.h: plugged some memory-leaks, and done some cleanups.
2004-12-26 21:09:48 +00:00
William Skaggs 15fb7b6f18 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/core/gimpbrush.c: don't ask for preview with
	zero width or height, fixes bug #162232.

	* app/base/brush-scale.c: remove tabs and trailing
	whitespace.
2004-12-26 18:18:17 +00:00
William Skaggs 286ed38772 Bill Skaggs Forget to save updated ChangeLog before previous commit.
Bill Skaggs
Forget to save updated ChangeLog before previous commit.
2004-12-26 17:56:21 +00:00
Michael Natterer 80074a4af2 limit the "Thread intensity" parameter to [0..100] because it's used as
2004-12-25  Michael Natterer  <mitch@gimp.org>

	* plug-ins/script-fu/scripts/weave.scm: limit the "Thread
	intensity" parameter to [0..100] because it's used as layer
	opacity. Fixes bug #162182.
2004-12-25 19:27:18 +00:00
William Skaggs 59e86d02fb Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/actions/documents-commands.c
	* app/actions/file-commands.c
	* app/dialogs/file-open-dialog.c
	* app/dialogs/file-open-location-dialog.c
	* app/display/gimpdisplayshell-dnd.c
	* app/widgets/gimplayertreeview.c
	* app/widgets/gimptoolbox-dnd.c: replace % with space
	in file name before showing error message,
	fixes bug #162147.

	* app/core/gimp-gui.c
	* app/widgets/gimpmessagebox.c: be a bit more paranoid
	about validating utf8 for messages.
2004-12-24 19:11:30 +00:00
William Skaggs 1380e5ea0b Bill Skaggs <weskaggs@primate.ucdavis.edu>
* gimp/app/widgets/gimpsizebox.c: fix incorrect Update
	Policy for size entry as pointed out by mitch.
2004-12-24 00:19:41 +00:00
Sven Neumann 6e1ff6f29d don't call gimp_progress_update() for each and every pixel. Every few rows
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.
2004-12-23 23:19:43 +00:00
William Skaggs aebc133432 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* plug-ins/common/mblur.c: set up tile cache before
	creating dialog -- major speedup in preview.
2004-12-23 21:49:28 +00:00
William Skaggs 09951fcf99 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* 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 18:12:23 +00:00
Sven Neumann 7d11f4ddbc made plug_in_proc_frame_free() a static function.
2004-12-23  Sven Neumann  <sven@gimp.org>

	* app/plug-in/plug-in-proc-frame.[ch]: made plug_in_proc_frame_free()
	a static function.
2004-12-23 15:13:51 +00:00
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
Sven Neumann 5e92462789 Moved "gfig" description to the end (out of the gimp namespace) and
also moved the ChangeLog entry.
2004-12-13 20:46:32 +00:00
William Skaggs 9b82d030cd Bill Skaggs <weskaggs@primate.ucdavis.edu>
* devel-docs/parasites.txt: add info about "gfig" layer parasite.
2004-12-13 20:11:19 +00:00
William Skaggs 3bfe3cf98d Bill Skaggs <weskaggs@primate.ucdavis.edu>
* plug-ins/pygimp/gimpfu.py: display PF_RADIO options vertically
	instead of horizontally, as suggested by Joao S. O. Bueno Calligaris.
	Fixes bug #160546.
2004-12-13 19:40:52 +00:00
William Skaggs c778ac3c96 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* plug-ins/gfig/gfig.c: make the "gfig" layer parasites persistent,
	so that they will be saved in xcf files.  Stop printing "GFig
	parasite found" message.
2004-12-13 19:21:48 +00:00
Michael Natterer 91d0794771 don't forget the context we were created with but rmember it as
2004-12-13  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimppdbdialog.[ch]: don't forget the context we
	were created with but rmember it as pdb_dialog->caller_context.

	* app/widgets/gimpbrushselect.c
	* app/widgets/gimpfontselect.c
	* app/widgets/gimpgradientselect.c
	* app/widgets/gimppaletteselect.c
	* app/widgets/gimppatternselect.c: use the caller_context when
	calling the temp_proc so the temp_proc's stack frame doesn't
	contain the dialog's private context (which is just a scratch
	model for the container views) but the plug-in's real context
	which is fully initialized. Fixes bug #161114.
2004-12-13 14:45:55 +00:00
Sven Neumann d9363898a1 fixed gtk-doc comment.
2004-12-13  Sven Neumann  <sven@gimp.org>

	* libgimp/gimpdrawablecombobox.c: fixed gtk-doc comment.
2004-12-13 12:38:26 +00:00
David Odin b73e628cab plug-ins/gfig/gfig-dialog.c let objects keep their own fill_style context.
* plug-ins/gfig/gfig-dialog.c
* plug-ins/gfig/gfig-style.c: let objects keep their own fill_style
  context.
2004-12-13 10:12:05 +00:00
Sven Neumann 677fc5cc7e applied patch from Adam D. Moss with more fixed dither improvements (bug
2004-12-13  Sven Neumann  <sven@gimp.org>

	* app/core/gimpimage-convert.c: applied patch from Adam D. Moss with
	more fixed dither improvements (bug #161123).
2004-12-13 00:30:15 +00:00
Sven Neumann 4f76089e26 restrict splash image to screen size to guard us from insanely large
2004-12-13  Sven Neumann  <sven@gimp.org>

	* app/gui/splash.c: restrict splash image to screen size to guard us
	from insanely large splash images.
2004-12-12 23:20:09 +00:00
Michael Natterer 44a7132848 invert logic so everything except GTK_RESPONSE_OK keeps the dock open
2004-12-13  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpdock.c (gimp_dock_delete_event): invert logic so
	everything except GTK_RESPONSE_OK keeps the dock open
	(e.g. hitting escape).
2004-12-12 23:13:19 +00:00
Michael Natterer 31d4c01db9 should save before comitting. 2004-12-12 23:11:17 +00:00
Michael Natterer 2e263a8cc0 added precondition check for the coords of the src area. Some cleanup and
2004-12-12  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpdrawable-preview.c (gimp_drawable_get_sub_preview):
	added precondition check for the coords of the src area. Some
	cleanup and simplification.

	* app/widgets/gimpviewrendererdrawable.c
	(gimp_view_renderer_drawable_render): don't request sub-previews
	of areas outside the drawable and don't reuqest previews of zero
	width or height. Fixes crashes with the new preview code.
2004-12-12 22:52:00 +00:00
Sven Neumann a6e1e72fe4 Applied patch from Adam D. Moss (bug #161113):
2004-12-12  Sven Neumann  <sven@gimp.org>

	Applied patch from Adam D. Moss (bug #161113):

	* app/core/gimpimage-convert.c: Use a slower but much nicer
	technique for finding the two best colours to dither between when
	using fixed/positional dither methods.  Makes positional dither
	much less lame.
2004-12-12 22:09:22 +00:00
Sven Neumann 609c84c26f push a context around code that changes the foreground color.
2004-12-12  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/film.c (film): push a context around code that
	changes the foreground color.
2004-12-12 22:00:31 +00:00
Sven Neumann e247a2875f changed handling of the 'gimp -b -' command-line. It used to spawn three
2004-12-12  Sven Neumann  <sven@gimp.org>

	* app/batch.c (batch_run): changed handling of the 'gimp -b -'
	command-line. It used to spawn three instances of Script-Fu, two
	should be more than enough.
2004-12-12 18:41:52 +00:00
William Skaggs 578c0c4f0a Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/widgets/gimpdataeditor.c: make Revert button insensitive
	because revert is not yet implemented (bug #152259).
2004-12-12 18:26:16 +00:00
Sven Neumann 734265ee59 show a confirmation dialog if a dock with multiple tabs is being closed.
2004-12-12  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpdock.c: show a confirmation dialog if a dock
	with multiple tabs is being closed. Sorry for the new strings,
	they were carefully copied from gnome-terminal.
2004-12-12 18:02:00 +00:00
William Skaggs 8b414f212f Bill Skaggs <weskaggs@primate.ucdavis.edu>
* plug-ins/common/pnm.c: make export do the right thing when
	saving as .pgm or .ppm.  Fixes bug #160045.
2004-12-12 17:18:03 +00:00
Sven Neumann 0e7423477c added gimp_edit_copy_visible.
2004-12-12  Sven Neumann  <sven@gimp.org>

	* libgimp/gimp.def: added gimp_edit_copy_visible.

	* plug-ins/script-fu/scripts/copy-visible.scm: decprecated.
2004-12-12 14:59:53 +00:00