Commit Graph

8661 Commits

Author SHA1 Message Date
Sven Neumann e05541a54a added back $(LCMS_LIBS) that I had accidentally removed.
2004-07-06  Sven Neumann  <sven@gimp.org>

	* modules/Makefile.am (libcdisplay_proof_la_LIBADD): added back
	$(LCMS_LIBS) that I had accidentally removed.
2004-07-06 12:54:45 +00:00
Sven Neumann d5724ff596 return the proper type.
2004-07-06  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpvectorstreeview.c (gimp_vectors_tree_view_drag_svg):
	return the proper type.
2004-07-06 10:54:46 +00:00
Michael Natterer 960c32e94a connect to "editing-canceled" of the name cell renderer and restore the
2004-07-06  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpcontainertreeview.c: connect to
	"editing-canceled" of the name cell renderer and restore the
	original text in the callback. Doesn't work reliably until GTK+
	bug #145463 is fixed.
2004-07-05 22:50:38 +00:00
Sven Neumann 51aa99574e fixed a compiler warning.
2004-07-05  Sven Neumann  <sven@gimp.org>

	* app/plug-in/plug-in-rc.c (plug_in_icon_deserialize): fixed a
	compiler warning.

	* plug-ins/common/dog.c: removed some redundant casts and other
	trivial cleanups.
2004-07-05 22:28:09 +00:00
Michael Natterer cade89ab61 removed #define GIMP_CONTROLLER_PARAM_SERIALIZE.
2004-07-06  Michael Natterer  <mitch@gimp.org>

	* libgimpwidgets/gimpcontroller.h: removed #define
	GIMP_CONTROLLER_PARAM_SERIALIZE.

	* libgimpmodule/gimpmoduletypes.h: added
	GIMP_MODULE_PARAM_SERIALIZE instead.

	* modules/controller_linux_input.c
	* modules/controller_midi.c: changed accordingly.

	* modules/cdisplay_colorblind.c
	* modules/cdisplay_gamma.c
	* modules/cdisplay_highcontrast.c
	* modules/cdisplay_proof.c: made the new properties serializable.
2004-07-05 22:12:54 +00:00
Michael Natterer ddd4e1c760 don't scan app/paint-funcs/paint-funcs-types.h for enums.
2004-07-05  Michael Natterer  <mitch@gimp.org>

	* tools/pdbgen/Makefile.am (enum_headers): don't scan
	app/paint-funcs/paint-funcs-types.h for enums.

	* app/paint-funcs/paint-funcs-types.h: removed /*< pdb-skip >*/

	* app/core/core-types.h: reordered opaque typedefs to somehow
	match the categories in the comments.
2004-07-05 21:39:54 +00:00
Michael Natterer d2292ffe35 removed enum SizeType.
2004-07-05  Michael Natterer  <mitch@gimp.org>

	* app/core/core-types.h: removed enum SizeType.

	* app/text/text-enums.h: added it as enum GimpSizeType and added
	comment that it's for backward compatibility only.

	* tools/pdbgen/Makefile.am
	* tools/pdbgen/pdb/text_tool.pdb: changed accordingly.

	* libgimp/gimpenums.h
	* plug-ins/pygimp/gimpenums.py
	* plug-ins/script-fu/script-fu-constants.c
	* tools/pdbgen/enums.pl: regenerated (pdbgen insisted on
	reordering the enums).
2004-07-05 20:55:05 +00:00
Michael Natterer a31bbed6c7 #define MIN and MAX values for GimpCoords.pressure, .tilt and .wheel.
2004-07-05  Michael Natterer  <mitch@gimp.org>

	* app/core/core-types.h: #define MIN and MAX values for
	GimpCoords.pressure, .tilt and .wheel.

	* app/display/gimpdisplayshell-callbacks.c
	(gimp_display_shell_get_event_coords)
	(gimp_display_shell_get_device_coords): use the #defines instead
	of hardcoded magic values when CLAMP()ing event or device values.
2004-07-05 18:48:43 +00:00
Sven Neumann ee163c049b link all modules with libgimpmodule.
2004-07-05  Sven Neumann  <sven@gimp.org>

	* modules/Makefile.am: link all modules with libgimpmodule.
2004-07-05 18:36:24 +00:00
William Skaggs cf0b598199 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* plug-ins/common/dog.c: improved defaults.  use gimp_invert()
	instead of rolling own.  Use nasty hack to get previews to
	work with grayscale images.  Accept grayscale images.
2004-07-05 18:18:32 +00:00
Sven Neumann 6d25d84534 Removed the basename parameter and use the object name instead. Convert it
2004-07-05  Sven Neumann  <sven@gimp.org>

	* app/core/gimpdata.[ch] (gimp_data_create_filename): Removed the
	basename parameter and use the object name instead. Convert it to
	the filesystem encoding.

	* app/core/gimpdatafactory.c: changed accordingly.
2004-07-05 18:10:05 +00:00
Sven Neumann afe4ff8290 applied patch from Shlomi Fish that fixes a number of bugs in the
2004-07-05  Sven Neumann  <sven@gimp.org>

	* plug-ins/gimpressionist: applied patch from Shlomi Fish that
	fixes a number of bugs in the gimpressionst plug-in (bug #145309).

	Also added some const qualifiers, cleaned up includes and removed
	degtorad() and radtodeg() functions that used to duplicate
	functionality from libgimpmath.
2004-07-05 16:50:46 +00:00
Michael Natterer 49a46c76a0 removed unused local variables.
2004-07-05  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimptemplateview.c
	(gimp_template_view_tree_name_edited): removed unused local variables.
2004-07-05 14:57:22 +00:00
Sven Neumann e3d54897c6 don't g_free() a GdkPixbuf, it's an object. Removed trailing whitespace.
2004-07-05  Sven Neumann  <sven@gimp.org>

	* plug-ins/gfig/gfig-dialog.c: don't g_free() a GdkPixbuf, it's an
	object. Removed trailing whitespace.

	* plug-ins/gfig/gfig-preview.c (draw_background): fixed declaration.
2004-07-05 13:28:34 +00:00
Michael Natterer 5ce611e0d8 return TRUE if initialization was successful. Makes the tool->drawable
2004-07-05  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimpcolorizetool.c (gimp_colorize_tool_initialize):
	return TRUE if initialization was successful. Makes the
	tool->drawable pointer being set correctly by the calling code and
	fixes bugs where colorize was leaving the drawable in a modified
	but non-undoable state when cancelling or changing images.
2004-07-05 12:54:58 +00:00
Sven Neumann e119a2eb6f use object properties for the configurable values.
2004-07-05  Sven Neumann  <sven@gimp.org>

	* modules/cdisplay_proof.c: use object properties for the
	configurable values.
2004-07-05 11:26:30 +00:00
Michael Natterer d476ee65ae added signal "color-changed" and emit it in gimp_channel_set_color() and
2004-07-05  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpchannel.[ch]: added signal "color-changed" and emit
	it in gimp_channel_set_color() and gimp_channel_set_opacity().

	* app/core/gimpimage-qmask.[ch]: added new functions
	gimp_image_set,get_qmask_color().

	* app/core/gimpimage.[ch]: install a "color-changed" handler on
	gimage->channels and update gimage->qmask_color when the qmask's
	color changes. Fixes bug #145361.

	* app/actions/qmask-commands.c: use the new qmask color API.
2004-07-05 11:18:34 +00:00
Simon Budig e7af53b0d3 app/actions/dialogs-commands.c app/display/gimpdisplayshell-dnd.c
2004-07-04  Simon Budig  <simon@gimp.org>

	* app/actions/dialogs-commands.c
	* app/display/gimpdisplayshell-dnd.c
	* app/gui/preferences-dialog.c
	* app/tools/gimppainttool.c
	* app/widgets/gimpdeviceinfo.c
	* app/widgets/gimpitemtreeview.c
	* plug-ins/imagemap/imap_selection.c
	* tools/pdbgen/pdb/gradients.pdb: Small changes to make GIMP
	CVS compile with gcc 2.95 again. Mostly double semicolons and
	variable declarations after other stuff. Spotted by Martin
	Renold.

	* app/pdb/gradients_cmds.c: regenerated.

	(there is one issue left, see his patch at
	http://old.homeip.net/martin/gcc-2.95.diff, I did not
	copy the #define va_copy __va_copy, since I don't know
	what happens here.)
2004-07-04 21:27:09 +00:00
William Skaggs 0fd3c264d7 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* plug-ins/gfig/gfig-dialog.[ch]:
	* plug-ins/gfig/gfig-style.[ch]:
	* plug-ins/gfig/notes.txt:       New files.
	* plug-ins/gfig/*.[ch]:  Complete reworking of the gfig plug-in.
	See 'notes.txt' for a summary of what has changed, and how to use
	it now.  Plenty of bugs have been  introduced, which will take a
	while to straighten out.
2004-07-04 20:50:25 +00:00
Tor Lillqvist ffa1d155c8 Drop a couple of unused variables.
2004-07-04  Tor Lillqvist  <tml@iki.fi>

	* app/core/gimpdrawable-equalize.c (gimp_drawable_equalize): Drop
	a couple of unused variables.

	* libgimpmodule/gimpmodule.def: Add gimp_module_register_enum.
2004-07-04 18:12:22 +00:00
Sven Neumann b08e39d65b added gimp_module_register_enum(), a function to register an enum type for
2004-07-04  Sven Neumann  <sven@gimp.org>

	* libgimpmodule/gimpmodule.[ch]: added gimp_module_register_enum(),
	a function to register an enum type for a GTypeModule.

	* modules/cdisplay_colorblind.c: use an object property for the
	color deficiency enum.
2004-07-04 16:29:28 +00:00
Sven Neumann 690c919cb6 don't attempt to store a pointer to the last used filename in the plug-in
2004-07-04  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/channel_mixer.c: don't attempt to store a
	pointer to the last used filename in the plug-in parameter
	struct. Fixes bug #145380.
2004-07-04 13:40:24 +00:00
Sven Neumann 21fea37da7 modules/cdisplay_gamma.c added object properties for configurable values.
2004-07-04  Sven Neumann  <sven@gimp.org>

	* modules/cdisplay_gamma.c
	* modules/cdisplay_highcontrast.c: added object properties for
	configurable values.

	* app/widgets/gimpcolordisplayeditor.c
	* libgimpwidgets/gimpcolordisplaystack.c
	* modules/cdisplay_colorblind.c
	* modules/cdisplay_proof.c: cosmetic changes.
2004-07-04 00:21:03 +00:00
Michael Natterer 23f6a194ac added context->serialize_props mask which enables specifying exactly which
2004-07-03  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpcontext.[ch]: added context->serialize_props mask
	which enables specifying exactly which properties will be
	serialized. Also fixes a bug that prevented undefined properties
	from being serialized, breaking tool_options and device status
	serialization.

	* app/core/gimptoolinfo.c (gimp_tool_info_new): make only the
	properties in the tool_info->context_props mask serializable, also
	configure/initialize tool_info->tool_options.

	* app/tools/gimp-tools.c (gimp_tools_register): removed
	tool_options initialization that is now done in
	gimp_tool_info_new().

	* app/widgets/gimpdeviceinfo.c: make only the properties in
	GIMP_DEVICE_INFO_CONTEXT_MASK serializable.

	* app/widgets/gimpdevicestatus.c: add the device table to its
	parent container again. Fixes "missing" devices.

	* app/core/gimptooloptions.c
	* app/widgets/gimpdevices.c: cleanup / code review.
2004-07-03 20:27:28 +00:00
Michael Natterer 04ed4a8a0f if the color tool is enabled, skip cursor hiding entirely.
2004-07-03  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimppainttool.c (gimp_paint_tool_cursor_update): if
	the color tool is enabled, skip cursor hiding entirely.
2004-07-03 13:07:30 +00:00
Sven Neumann 87ee13fad1 removed #ifdef'ed code that isn't any longer needed.
2004-07-03  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/dog.c (dog): removed #ifdef'ed code that isn't
	any longer needed.
2004-07-03 10:16:48 +00:00
Philip Lafleur 25fa494408 Added bug number to my ChangeLog entry.
2004-07-02  Philip Lafleur  <plafleur@cvs.gnome.org>

  * ChangeLog: Added bug number to my ChangeLog entry.
2004-07-03 01:05:54 +00:00
Philip Lafleur 1d625ed2f5 Replaced "Preview" checkbutton with a combobox with options "Outline",
2004-07-02  Philip Lafleur  <plafleur@cvs.gnome.org>

	* app/tools/gimptransformoptions.[ch]:
	* app/tools/gimptransformtool.c:
	* app/tools/tools-enums.[ch]: Replaced "Preview" checkbutton with
	a combobox with options "Outline", "Grid", "Image", and
	"Image + Grid".
2004-07-02 21:56:30 +00:00
Sven Neumann 1c9e4b5704 don't let the Paste menu items sensitivity depend on the availability of
2004-07-02  Sven Neumann  <sven@gimp.org>

	* app/actions/edit-actions.c: don't let the Paste menu items
	sensitivity depend on the availability of clipboard data because
	we aren't notified when the GDK clipboard changes.
2004-07-02 14:40:48 +00:00
Sven Neumann 6423529b86 app/gui/Makefile.am new files implementing a clipboard for image data
2004-07-02  Sven Neumann  <sven@gimp.org>

	* app/gui/Makefile.am
	* app/gui/clipboard.[ch]: new files implementing a clipboard for
	image data based on GDK_SELECTION_CLIPBOARD (bug #133247).

	* app/actions/edit-actions.c
	* app/actions/edit-commands.c: use the new clipboard API.

	* app/gui/gui.c: initialize and shutdown the clipboard.

	* app/core/gimpbuffer.c: cosmetics.

	* app/actions/actions.c
	* app/menus/menus.c: added sanity checks to exit functions.

	* app/display/gimpdisplayshell-dnd.[ch]: let
	gimp_display_shell_drop_svg() take a guchar * buffer.

	* app/widgets/gimpselectiondata.c (gimp_selection_data_get_pixbuf):
	fixed the implementation.
2004-07-02 14:08:15 +00:00
Michael Natterer 9d19bf2a3e plug-ins/gimpressionist/Makefile.am applied patch from Shlomi Fish that
2004-07-02  Michael Natterer  <mitch@gimp.org>

	* plug-ins/gimpressionist/Makefile.am
	* plug-ins/gimpressionist/*.[ch]: applied patch from Shlomi Fish
	that massively cleans up gimppressionist (touching all files and
	addding some new ones) and adds a simple PDB interface for
	selecting one of the previously created presets.
	Fixes bugs #145191, #144913 and #144922.
2004-07-02 13:31:25 +00:00
Sven Neumann ccff34dc48 bumped version number to 2.1.2.
2004-07-01  Sven Neumann  <sven@gimp.org>

	* configure.in: bumped version number to 2.1.2.
2004-07-01 22:01:29 +00:00
Sven Neumann 098335265e updated german translation.
2004-07-01  Sven Neumann  <sven@gimp.org>

	* de.po: updated german translation.
2004-07-01 21:37:17 +00:00
Michael Schumacher 74a73e5710 there seems to be no reason why this plug-in should not work on INDEXED*
2004-07-01  Michael Schumacher  <schumaml@cvs.gnome.org>

	* plug-ins/common/align_layers.c: there seems to be no reason why
	this plug-in should not work on INDEXED* images, added it to the
	registered image types
2004-07-01 20:22:43 +00:00
Roman Joost 8f0d1ee084 plug-ins/script-fu/scripts/blend-anim.scm
2004-07-01  Roman Joost <roman@bromeco.de>

        * plug-ins/script-fu/scripts/blend-anim.scm
        * plug-ins/script-fu/scripts/glossy.scm
        * plug-ins/script-fu/scripts/test-sphere.scm: fixed typos

        * po-script-fu/de.po: updated german translation
2004-07-01 20:09:08 +00:00
Sven Neumann 931110de27 added (yet unused) functions gimp_selection_data_[get|set]_pixbuf().
2004-07-01  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpselectiondata.[ch]: added (yet unused) functions
	gimp_selection_data_[get|set]_pixbuf().
2004-07-01 15:46:25 +00:00
Michael Natterer 6679dc7183 implement GtkWidget::drag_motion() and set the FG/BG depending on where
2004-07-01  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpfgbgarea.[ch]: implement GtkWidget::drag_motion()
	and set the FG/BG depending on where the color was dropped. Also
	set the drag status accordingly so the cursor indicates whether
	dropping will have an effect or not. Fixes bug #145219.
2004-07-01 10:42:00 +00:00
Sven Neumann d5fb658079 do like Liam taught us and use the golden ratio as default for new images.
2004-07-01  Sven Neumann  <sven@gimp.org>

	* app/core/gimptemplate.c: do like Liam taught us and use the
	golden ratio as default for new images.
2004-07-01 01:39:56 +00:00
Philip Lafleur bbed5b577b Chain up if the color tool is enabled. This fixes the problem of the color
2004-06-30  Philip Lafleur  <plafleur@cvs.gnome.org>

	* app/tools/gimppainttool.c (gimp_paint_tool_cursor_update):
	Chain up if the color tool is enabled. This fixes the problem of
	the color picker cursor not appearing when using a paint tool
	in color picking mode while "Show Paint Tool Cursor" is off.
2004-07-01 00:12:29 +00:00
William Skaggs 10ffa7d90b Bill Skaggs <weskaggs@primate.ucdavis.edu>
* libgimp/gimpdrawable.c: moved call to
	_gimp_tile_cache_flush_drawable() from gimp_drawable_detach() to
	gimp_drawable_flush(), to resolve problem described in bug
	#145051.
2004-06-30 20:28:30 +00:00
Michael Natterer b13087adb9 added a GimpContext parameter and use it to start plug-ins.
2004-06-30  Michael Natterer  <mitch@gimp.org>

	* app/plug-in/plug-ins.[ch] (plug_ins_init): added a GimpContext
	parameter and use it to start plug-ins.

	* app/core/gimp.c (gimp_real_restore): pass the user context.
	Restores script-fu's access to the global FG, FG, brush, ...
2004-06-30 16:55:43 +00:00
Sven Neumann bec9f9a670 app/core/core-enums.c app/display/display-enums.c app/paint/paint-enums.c
2004-06-30  Sven Neumann  <sven@gimp.org>

	* app/core/core-enums.c
	* app/display/display-enums.c
	* app/paint/paint-enums.c
	* app/text/text-enums.c
	* app/widgets/widgets-enums.c: regenerated.
2004-06-30 16:05:24 +00:00
William Skaggs 571f8b561d Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/actions/file-commands.c: revert previous change that was
	intended to fix bug #141971.
2004-06-30 16:01:05 +00:00
William Skaggs 8d4bdf5d60 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/*/*-enums.h: did HIG-compliant capitalization in the right
	place, instead of the auto-generated *-enums.c files.
2004-06-30 15:47:32 +00:00
Michael Natterer cc6aa18619 app/widgets/gimpdnd.[ch] app/widgets/gimpselectiondata.[ch] changed
2004-06-30  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpdnd.[ch]
	* app/widgets/gimpselectiondata.[ch]
	* app/widgets/gimpcontainertreeview.[ch]: changed "files" and "uris"
	to "uri_list" in all function names, parameters and typedefs.

	* app/widgets/gimpcontainertreeview-dnd.c
	* app/widgets/gimpdocumentview.c
	* app/widgets/gimplayertreeview.c
	* app/widgets/gimptoolbox-dnd.c
	* app/display/gimpdisplayshell-dnd.[ch]
	* app/display/gimpdisplayshell.c: changed accordingly.
2004-06-30 14:47:23 +00:00
Sven Neumann 8040a22aa9 made the dialog look a little less clumsy.
2004-06-30  Sven Neumann  <sven@gimp.org>

	* plug-ins/maze/maze_face.c: made the dialog look a little less
	clumsy.
2004-06-30 14:07:48 +00:00
Sven Neumann adab09fd45 tools/pdbgen/pdb/drawable.pdb raised the maximum size for thumbnails from
2004-06-30  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/pdb/drawable.pdb
	* libgimp/gimppixbuf.c: raised the maximum size for thumbnails
	from 256 to 512 pixels.

	* app/pdb/drawable_cmds.c
	* libgimp/gimpdrawable_pdb.c: regenerated.

	* plug-ins/gfig/gfig-preview.c
	* plug-ins/gfig/gfig.c: redone Bill's fix using
	gimp_image_get_thumbnail(). A lot simpler, renders the alpha
	checkerboard and also works for grayscale images.
2004-06-30 12:31:08 +00:00
Michael Natterer 4022980314 Fixed a 1.2 -> 2.0 regression that was forgotten:
2004-06-30  Michael Natterer  <mitch@gimp.org>

	Fixed a 1.2 -> 2.0 regression that was forgotten:

	* app/widgets/widgets-enums.[ch]: added enum GimpColorPickState
	which can be one of { NEW, UPDATE }.

	* app/widgets/gimppaletteeditor.[ch]: changed #if 0'ed function
	gimp_palette_editor_update_color() to
	gimp_palette_editor_pick_color() and restored the functionality of
	creating/updating colors via this API

	Changed button_press handler to only edit the color on double
	click if it's really a double click on the same color.
	Fixes bug #141381.

	* app/tools/gimpcolorpickeroptions.[ch]: added boolean property
	"add-to-palette" and a GUI for it.

	* app/core/gimpmarshal.list
	* app/tools/gimpcolortool.[ch]: added a GimpColorPickState
	parameter to the "color_picked" signal. Pass NEW on button_press
	and UPDATE on motion.

	* app/tools/gimpcurvestool.c (gimp_curves_tool_color_picked)
	* app/tools/gimplevelstool.c (gimp_levels_tool_color_picked)
	* app/tools/gimppainttool.c (gimp_paint_tool_color_picked):
	changed accordingly

	* app/tools/gimpcolorpickertool.c (gimp_color_picker_tool_picked):
	If "add-to-palette" is TRUE, get the palette editor and call
	gimp_palette_editor_pick_color().
2004-06-30 12:10:08 +00:00
Sven Neumann 114f747f4c renamed the SVG related functions so that they deal with an anonymous data
2004-06-30  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpselectiondata.[ch]: renamed the SVG related
	functions so that they deal with an anonymous data stream that
	could as well be a PNG image.

	* app/widgets/gimpdnd.[ch]
	* app/widgets/gimpcontainertreeview-dnd.c: changed accordingly.

	* app/display/gimpdisplayshell-dnd.[ch]
	* app/vectors/gimpvectors-import.[ch]
	* app/widgets/gimpcontainertreeview-dnd.c
	* app/widgets/gimpvectorstreeview.c: use gsize for the length of
	the buffer.

	* app/widgets/gimpdnd.[ch]
	* app/widgets/widgets-enums.[ch]: added GIMP_DND_TYPE_PNG which isn't
	used yet.
2004-06-30 11:57:17 +00:00
Michael Natterer 12355969f6 take const GimpRGB* instead of just GimpRGB*. Converted tabs to spaces.
2004-06-30  Michael Natterer  <mitch@gimp.org>

	* app/core/gimppalette.[ch] (gimp_palette_add_entry): take
	const GimpRGB* instead of just GimpRGB*.
	Converted tabs to spaces.
2004-06-30 11:09:44 +00:00
Michael Natterer 425fd699e3 changed return value from gchar* to const gchar*. Renamed parameters to be
2004-06-30  Michael Natterer  <mitch@gimp.org>

	* widgets/gimpselectiondata.[ch] (gimp_selection_data_get_svg):
	changed return value from gchar* to const gchar*. Renamed
	parameters to be consistent with other SVG functions.

	* widgets/gimpcontainertreeview-dnd.c
	* widgets/gimpdnd.c: changed accordingly.
2004-06-29 23:18:18 +00:00
Simon Budig 2cf661fc16 app/vectors/gimpstroke.[ch] Applied a modified patch from Geert Jordaens
2004-06-30  Simon Budig  <simon@gimp.org>

	* app/vectors/gimpstroke.[ch]
	* tools/pdbgen/pdb/paths.pdb: Applied a modified patch from
	Geert Jordaens that implements the gimp-path-get-point-at-dist
	PDB function (fixes bug #138754).

	* app/pdb/paths_cmds.c: regenerated
2004-06-29 22:45:58 +00:00
Michael Natterer 3cec641627 do like GtkAccelLabel does and turn underscores in accels into spaces so
2004-06-30  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimptoolbox.c (gimp_toolbox_button_accel_changed):
	do like GtkAccelLabel does and turn underscores in accels into
	spaces so e.g. "Page_Up" becomes "Page Up".
2004-06-29 22:35:04 +00:00
Michael Natterer 4685112cff reordered drop destinations so vectors are preferred over SVG.
2004-06-29  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpdisplayshell.c: reordered drop destinations
	so vectors are preferred over SVG.

	* app/vectors/gimpvectors-import.[ch]: added "gint position"
	parameter to all import functions so the imported vectors can be
	added at any position in the vectors stack.

	* app/actions/vectors-commands.c
	* app/display/gimpdisplayshell-dnd.c
	* tools/pdbgen/pdb/paths.pdb: changed accordingly (pass -1 as
	position).

	* app/pdb/paths_cmds.c: regenerated.

	* app/widgets/gimpvectorstreeview.c: implemented SVG DND from and
	to the paths dialog.
2004-06-29 13:34:16 +00:00
Michael Natterer 03b4c71d69 don't free the SVG data after dropping, it's owned by GtkSelectionData.
2004-06-29  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpcontainertreeview-dnd.c: don't free the SVG data
	after dropping, it's owned by GtkSelectionData.
2004-06-29 13:28:26 +00:00
Michael Natterer 3f5e10c1d6 use gtk_target_list_add() instead of gtk_target_list_add_table() because
2004-06-29  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpdnd.c: use gtk_target_list_add() instead of
	gtk_target_list_add_table() because the latter prepends the
	targets to the internal list which screws the order (== priority)
	of DND targets.

	* app/widgets/gimpselectiondata.c: added some more checks for
	failed drops (selection_data->length < 0).
2004-06-29 13:20:30 +00:00
Philip Lafleur 0acea7350e The preview's row buffer was accidentally made way too large.
2004-06-29  Philip Lafleur  <plafleur@cvs.gnome.org>

	* plug-ins/common/unsharp.c: The preview's row buffer was
	accidentally made way too large.
2004-06-29 03:06:12 +00:00
Michael Natterer 6cd5737257 added new function gimp_get_mod_string() which takes a GdkModifierType and
2004-06-29  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpwidgets-utils.[ch]: added new function
	gimp_get_mod_string() which takes a GdkModifierType and returns
	correctly formated strings for all shift,control,alt combinations.

	* app/tools/gimpbucketfilloptions.c
	* app/tools/gimpcolorpickeroptions.c
	* app/tools/gimpconvolvetool.c
	* app/tools/gimpcropoptions.c
	* app/tools/gimpdodgeburntool.c
	* app/tools/gimperasertool.c
	* app/tools/gimpflipoptions.c
	* app/tools/gimpmagnifyoptions.c
	* app/tools/gimpmoveoptions.c
	* app/tools/gimptransformoptions.c
	* app/tools/gimpvectoroptions.c
	* app/widgets/gimpchanneltreeview.c
	* app/widgets/gimpcolormapeditor.c
	* app/widgets/gimpdocumentview.c
	* app/widgets/gimperrorconsole.c
	* app/widgets/gimpgradienteditor.c
	* app/widgets/gimpitemtreeview.c
	* app/widgets/gimppaletteeditor.c
	* app/widgets/gimpselectioneditor.c
	* app/widgets/gimpthumbbox.c
	* app/widgets/gimptooloptionseditor.c
	* app/widgets/gimpvectorstreeview.c: use the new function instead
	of gimp_get_mod_name_shift(),control(),alt(),separator(). This
	kindof addresses the issue of configurable modifier keys but is
	actually indended to ease translation of format strings ("%s" is
	easier to get right than "%s%s%s").
2004-06-28 23:30:57 +00:00
Michael Natterer 6a5e68c9e2 Allow all sorts of things to be dropped on or in between the items of a
2004-06-28  Michael Natterer  <mitch@gimp.org>

	Allow all sorts of things to be dropped on or in between the
	items of a GimpContainerTreeView:

	* app/widgets/gimpcontainertreeview.[ch]: added more parameters to
	GimpContainerTreeView::drop_possible() to specify where ecactly
	the drop should take place (between or into items) and to support
	dropping all sorts of things.

	Renamed ::drop() to ::drop_viewable() and added ::drop_color(),
	::drop_files() and ::drop_svg(), which cover all possible drop
	types.

	* app/widgets/gimpcontainertreeview-dnd.[ch]: changed accordingly.
	Dispatch all kinds of drops to the resp. virtual functions.

	* app/widgets/gimpitemtreeview.c: changed accordingly.

	* app/widgets/gimplayertreeview.c: allow to drop URIs, colors
	and patterns to the layers dialog. Fixes bugs #119506 and #139246.
2004-06-28 22:07:12 +00:00
Michael Natterer c5c63f31ee new utility function which opens an image, flattens it if needed and
2004-06-28  Michael Natterer  <mitch@gimp.org>

	* app/file/file-open.[ch] (file_open_layer): new utility function
	which opens an image, flattens it if needed and returns the only
	layer, converted for a passed destination image.

	* app/display/gimpdisplayshell-dnd.c
	(gimp_display_shell_drop_files): use the new function.
2004-06-28 21:42:19 +00:00
Michael Natterer 667de3c9f4 app/widgets/Makefile.am new files containing the code which
2004-06-28  Michael Natterer  <mitch@gimp.org>

	* app/widgets/Makefile.am
	* app/widgets/gimpselectiondata.[ch]: new files containing the
	code which encodes/decodes all sorts of stuff to/from its
	GtkSelectionData representation. Used to live in gimpdnd.c

	* app/widgets/gimpdnd.c: use the new functions (unclutters the
	file quite a bit), converted tabs to spaces.
2004-06-28 20:39:54 +00:00
Michael Natterer d45a6b230f #include "libgimpwidgets/gimpwidgets.h"
2004-06-28  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpcontainergridview.c:
	#include "libgimpwidgets/gimpwidgets.h"
2004-06-28 17:06:38 +00:00
Michael Natterer a2850f6df2 Fixed bug #141930 while keeping bug #132322 fixed:
2004-06-28  Michael Natterer  <mitch@gimp.org>

	Fixed bug #141930 while keeping bug #132322 fixed:

	* app/base/curves.c (curves_lut_func)
	* app/base/levels.c (levels_lut_func): changed meaning of channel
	slots for GRAYA images: just as for GRAY images, expect the value
	channel in slot 0 and the alpha channel in slot 1, so it matches
	the meaning of slots of GimpHistogram (before this change, only
	GRAY images had their value in slot 0 and GRAYA images had it in
	slot 1, whereas the histogram had the value channel in slot 0,
	which was breaking auto levels for GRAYA images).

	* app/tools/gimpcurvestool.c
	* app/tools/gimplevelstool.c
	* tools/pdbgen/pdb/color.pdb: adjusted channel fiddling for GRAY
	and GRAYA images accordingly.

	* app/tools/gimpcurvestool.c (curves_update)
	* app/tools/gimplevelstool.c (levels_update): call
	gimp_color_bar_set_buffers() with the right buffers.

	* app/pdb/color_cmds.c: regenerated.
2004-06-28 14:24:56 +00:00
Sven Neumann b9c23cac5d select the standard tool.
2004-06-28  Sven Neumann  <sven@gimp.org>

	* app/gui/gui.c (gui_initialize_after_callback): select the
	standard tool.

	* app/tools/tool_manager.c: cosmetics.
2004-06-28 13:18:00 +00:00
Michael Natterer 3ec1647d36 reverted fix for bug #141930. These hacks are there because the enum used
2004-06-28  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimplevelstool.c: reverted fix for bug #141930. These
	hacks are there because the enum used in levels doesn't match
	the enum used by the combo box and the histogram widget.
2004-06-28 11:45:14 +00:00
Michael Natterer c186126083 removed again (tools must not draw outside GimpDrawTool::draw()).
2004-06-28  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimpclonetool.c (gimp_clone_tool_button_release):
	removed again (tools must not draw outside GimpDrawTool::draw()).

	(gimp_clone_tool_draw): removed check for gimp_draw_tool_is_active()
	because the draw function would not be called if the draw tool was
	inactive. Simplified check for whether or not to draw the src
	location.

	* app/tools/gimppainttool.c (gimp_paint_tool_button_release):
	pause/resume the draw tool across all button_release actions so
	tools (clone) have a chance to draw different things depending on
	gimp_tool_control_is_active(tool->control). Fixes bug #145022.
2004-06-28 11:36:00 +00:00
Sven Neumann 33fb67bcdb added missing return value.
2004-06-28  Sven Neumann  <sven@gimp.org>

	* app/actions/actions.c (action_select_object): added missing
	return value.
2004-06-28 10:13:33 +00:00
Sven Neumann a0a7711502 applied HIG rules to the GUI and slightly rearranged it to get a more
2004-06-28  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/dog.c: applied HIG rules to the GUI and slightly
	rearranged it to get a more compact layout. Applied GIMP coding style.
2004-06-28 09:28:49 +00:00
Sven Neumann dd7b550df5 removed wrong note about using _gimp_tile_cache_flush_drawable() from the
2004-06-28  Sven Neumann  <sven@gimp.org>

	* libgimp/gimpdrawable.c: removed wrong note about using
	_gimp_tile_cache_flush_drawable() from the API docs.
2004-06-28 08:58:56 +00:00
Sven Neumann 6d4d1d2f82 ifdef'ed out calls to _gimp_tile_cache_flush_drawable() since it can't be
2004-06-28  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/dog.c (dog): ifdef'ed out calls to
	_gimp_tile_cache_flush_drawable() since it can't be used from a
	plug-in. Removed trailing whitespace and redundant includes.

	* libgimp/gimp.def: removed _gimp_tile_cache_flush_drawable again.
2004-06-28 08:47:51 +00:00
Simon Budig 96e8b93e2a fixed drawing code to properly update after deleting nodes via
2004-06-28  Simon Budig  <simon@gimp.org>

	* app/tools/gimpvectortool.c: fixed drawing code to properly
	update after deleting nodes via BackSpace/Delete.
2004-06-27 23:00:46 +00:00
William Skaggs d6428d61ab Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/tools/gimplevelstool.c: removed two small chunks of code.
	Fixes bug #141930.  Possibly unfixes bug #132322.
2004-06-27 17:30:55 +00:00
Michael Schumacher 8fbd374684 added _gimp_tile_cache_flush_drawable because it is used in a plug-in. See
2004-06-27  Michael Schumacher <schumaml@cvs.gnome.org>

	* libgimp/gimp.def: added _gimp_tile_cache_flush_drawable because
	it is used in a plug-in. See bug 145051.
2004-06-27 16:02:01 +00:00
Philip Lafleur 3b81356a5e Preview now works correctly with RGBA and grayscale-alpha images. Fixes
2004-06-26  Philip Lafleur  <plafleur@cvs.gnome.org>

	* plug-ins/common/unsharp.c: Preview now works correctly with
	RGBA and grayscale-alpha images. Fixes bug #144971.
2004-06-27 03:17:57 +00:00
William Skaggs 47ec8205cd Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/tools/gimpclonetool.c: added button_release callback
	to fix bug #145022.
2004-06-26 23:45:13 +00:00
Philip Lafleur a151042dd6 Use GTK_PREVIEW_GRAYSCALE if source is grayscale or grayscale-alpha.
2004-06-26  Philip Lafleur  <plafleur@cvs.gnome.org>

	* plug-ins/common/unsharp.c: Use GTK_PREVIEW_GRAYSCALE if source
	is grayscale or grayscale-alpha. Partial fix for bug #144971.
2004-06-26 19:08:08 +00:00
William Skaggs 6f745997b1 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* plug-ins/common/unsharp.c: speed up preview by allocating tile
	cache before creating dialog.  Should fix bug #144972.
2004-06-26 14:18:25 +00:00
Philip Lafleur 43445522be Moved Zealous Crop from <Image>/Layer/Crop to <Image>/Image/Crop because
2004-06-25  Philip Lafleur  <plafleur@cvs.gnome.org>

	* plug-ins/common/zealouscrop.c: Moved Zealous Crop from
	<Image>/Layer/Crop to <Image>/Image/Crop because it affects the
	entire image.
2004-06-26 01:38:22 +00:00
William Skaggs 48095ce3fc Bill Skaggs <weskaggs@primate.ucdavis.edu>
* plug-ins/common/dog.c: added Difference of Gaussians edge
	detect plug-in.

	* plug-ins/common/plugin-defs.pl:
	* plug-ins/common/Makefile.am: added dog and regenerated
	Makefile.
2004-06-25 20:19:54 +00:00
Michael Natterer fe14fa1d33 added GIMP_ACTION_SELECT_SET actions which set a generated brush's
2004-06-25  Michael Natterer  <mitch@gimp.org>

	* app/actions/context-actions.c: added GIMP_ACTION_SELECT_SET
	actions which set a generated brush's properties directly.

	* app/actions/context-commands.c: adjust the range of possible
	brush radius and aspect_ratio values to be actually usable.
2004-06-25 13:50:45 +00:00
Michael Natterer 140d3d5c01 reordered parameters and members to be consistent with other places where
2004-06-25  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpbrushgenerated.[ch]: reordered parameters and
	members to be consistent with other places where generated
	brushes are used. Check for errors when loading a brush and
	utf8-validate its name. Cleanup.

	* app/core/gimpbrush.c
	* app/core/gimpbrushpipe.c: cleanup.
2004-06-25 13:41:24 +00:00
Michael Natterer 397626fc7b work around GTK+ bug #143270 (set the cursor on the selected model path
2004-06-25  Michael Natterer  <mitch@gimp.org>

	* app/gui/preferences-dialog.c (prefs_dialog_new): work around
	GTK+ bug #143270 (set the cursor on the selected model path
	instead of selecting the iter in the selection). Fixes random
	theme switching when selecting the "Theme" page.
2004-06-25 10:24:35 +00:00
Michael Natterer 23c068bc75 added properties for all brush parameters.
2004-06-25  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpbrushgenerated.c: added properties for all brush
	parameters.

	* app/widgets/gimpbrusheditor.c: listen to property changes of the
	edited brush and update the scales accordingly.
2004-06-25 00:58:43 +00:00
Michael Natterer 6d864c4346 more work on the controller page, made integer controller properties
2004-06-25  Michael Natterer  <mitch@gimp.org>

	* app/gui/preferences-dialog.c: more work on the controller page,
	made integer controller properties editable.

	* modules/controller_midi.c: allow to specify the MIDI channel to
	generate events from. Default to -1 (all channels).
2004-06-24 23:44:37 +00:00
William Skaggs 5fe683a51e Bill Skaggs <weskaggs@primate.ucdavis.edu>
* plug-ins/gfig/gfig.[ch]:
	* plug-ins/gfig/gfig-preview.c: Let gfig use a thumbnail of the
	image as background for its preview, if the image is RGB and "Show
	image" is checked in the Options tab.  (Next best thing to
	previewing in the image.)
2004-06-24 22:51:55 +00:00
Michael Natterer 488ac69d02 added a boolean property "debug-events" and honor it when printing
2004-06-25  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpcontrollerinfo.[ch]: added a boolean property
	"debug-events" and honor it when printing debugging output.
	Should add an event console window so the user doesn't need to
	have a terminal to inspect input module output.

	* app/gui/prefereces-dialog.c: HIGified some forgotten labels.
	Renamed the "Pointer Movement Feedback" frame to "Mouse Cursors".
	Replaced some forgotten "Dir" with "Folder".
	Made more GimpControllerInfo and GimpController properties
	editable and cleaned up the controller page.
2004-06-24 22:35:00 +00:00
Michael Natterer f0fcfaabb2 added gimp_prop_label_new().
2004-06-25  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimppropwidgets.[ch]: added gimp_prop_label_new().

	* app/widgets/gimpgrideditor.c: HIGified capitalization.
2004-06-24 22:23:05 +00:00
Michael Natterer 6a42a7194b modules/controller_linux_input.c remember the source ID returned by
2004-06-25  Michael Natterer  <mitch@gimp.org>

	* modules/controller_linux_input.c
	* modules/controller_midi.c: remember the source ID returned by
	g_io_add_watch() and remove it when changing the device, so the
	file descritor gets actually closed. Minor cleanups.
2004-06-24 22:19:25 +00:00
Michael Natterer 11dfbae2f6 renamed function gimp_controller_wheel_scrolled() to
2004-06-24  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpcontrollerwheel.[ch]: renamed function
	gimp_controller_wheel_scrolled() to
	gimp_controller_wheel_scroll().

	* app/display/gimpdisplayshell-callbacks.c
	(gimp_display_shell_canvas_tool_events): changed accordingly.
2004-06-24 15:29:19 +00:00
Michael Natterer c0aa8fee88 fix typo in wheel controller mapping.
2004-06-24  Michael Natterer  <mitch@gimp.org>

	* etc/controllerrc: fix typo in wheel controller mapping.
2004-06-24 12:12:46 +00:00
Michael Natterer 02b91f6628 app/tools/gimptool.[ch] added boolean return value to
2004-06-24  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimptool.[ch]
	* app/tools/tool_manager.[ch]: added boolean return value to
	GimpTool::key_press() which indicates if the event was handled.

	* app/tools/gimpcroptool.c
	* app/tools/gimpeditselectiontool.[ch]
	* app/tools/gimptransformtool.c
	* app/tools/gimpvectortool.c: return TRUE if the key event was handled.

	* app/tools/gimppainttool.c: removed key_press() implementation.

	* app/widgets/Makefile.am
	* app/widgets/widgets-types.h
	* app/widgets/gimpcontrollerkeyboard.[ch]: new controller class
	which takes GdkEventKey and emits controller events for all
	combinations of modifiers and cursor keys.

	* app/widgets/gimpcontrollers.[ch]: added new function
	gimp_controllers_get_keyboard().

	* app/display/gimpdisplayshell-callbacks.c: if a key event was not
	handled by the active tool, dispatch it to the keyboard controller.

	* etc/controllerrc: add a keyboard controller which is configured
	to do the same as the removed gimp_paint_tool_key_press().
2004-06-24 10:16:08 +00:00
William Skaggs ffe9ac0772 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* libgimp/gimpdrawable.c:  added some documentation for
	a few important functions with no API docs.
2004-06-24 02:00:32 +00:00
Sven Neumann 569765d7e3 Made 2.1.1 release.
2004-06-24  Sven Neumann  <sven@gimp.org>

        * Made 2.1.1 release.
2004-06-24 00:51:19 +00:00
William Skaggs 4ac084a6f9 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/actions/file-commands.c: make "Revert" only ask for
	confirmation if image is dirty.  Fixes bug #141971.
2004-06-24 00:15:06 +00:00
William Skaggs 63a4a72f79 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/gui/*.c:
	* app/widgets/*.c:
	* etc/templaterc: HIGify capitalization.  Should finish bug #123699
	except for everything I missed or got wrong.
2004-06-23 22:44:04 +00:00
Sven Neumann 7bdf689b68 commented out the linux_input controller configuration.
2004-06-24  Sven Neumann  <sven@gimp.org>

	* etc/controllerrc: commented out the linux_input controller
	configuration.
2004-06-23 22:34:33 +00:00
William Skaggs b4197cf30e Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/tools/*.c: HIGify capitalization for dialogs.  More
	progress on bug #123699.
2004-06-23 20:29:46 +00:00
Michael Natterer 0de43cb089 added utility function midi_event() which assembles a
2004-06-23  Michael Natterer  <mitch@gimp.org>

	* modules/controller_midi.c: added utility function midi_event()
	which assembles a GimpControllerEventValue and emits it.
2004-06-23 15:20:37 +00:00
Michael Natterer 1ce16fefd7 app/widgets/gimpenumaction.[ch] app/widgets/gimppluginaction.[ch] added
2004-06-23  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpenumaction.[ch]
	* app/widgets/gimppluginaction.[ch]
	* app/widgets/gimpstringaction.[ch]: added parameters to the
	gimp_*_action_selected() function so the "selected" signal can be
	emitted with value != action->value. Changed GtkAction::activate()
	implementations accordingly (pass action->value).

	* app/widgets/gimpcontrollers.c: call gimp_enum_action_selected()
	and pass the value of the GimpControllerEventValue instead of
	temporarily replacing action->value and calling
	gtk_action_activate().

	* app/widgets/gimpcontrollerinfo.c: fixed debugging output.
2004-06-23 14:39:48 +00:00
Michael Natterer 7e52ed902a added signal "set-brush" which is G_SIGNAL_RUN_LAST so we can connect
2004-06-23  Michael Natterer  <mitch@gimp.org>

	* app/paint/gimpbrushcore.[ch]: added signal "set-brush" which is
	G_SIGNAL_RUN_LAST so we can connect before and after the default
	implementation. Moved the brush setting and outline invalidation
	stuff to its default implementation. Also remember the outline's
	width and height. Call gimp_brush_core_set_brush() from
	gimp_brush_core_invalidate_cache() so "set-brush" is emitted
	whenever a generated brush becomes dirty.

	* app/tools/gimppainttool.c (gimp_paint_tool_button_press): don't
	pause/resume but rather stop/start the draw_tool. Fixes straight
	line preview aretefacts.

	(gimp_paint_tool_oper_update): set the brush_core's brush before
	starting the draw_tool.

	(gimp_paint_tool_draw): never free the brush_core's cached brush
	outline because the brush_core does that by itself now.

	(gimp_paint_tool_set_brush)
	(gimp_paint_tool_set_brush_after): new callbacks which pause and
	resume the draw_tool. Fixes brush outline artefacts when modifying
	the current brush e.g. by using the mouse wheel.
2004-06-23 12:19:28 +00:00