Commit Graph

8661 Commits

Author SHA1 Message Date
Michael Natterer d88f23ddba removed enum GimpContextSelectType.
2004-06-23  Michael Natterer  <mitch@gimp.org>

	* app/actions/context-commands.h: removed enum GimpContextSelectType.

	* app/actions/actions-types.h: added enum GimpActionSelectType.

	* app/actions/actions.[ch]: added utility functions
	action_select_value() and action_select_object().

	* app/actions/context-actions.c
	* app/actions/context-commands.c: changed accordingly.

	* app/actions/layers-actions.c
	* app/actions/layers-commands.[ch]: merged the layer select
	callbacks into one using the GimpActionSelectType functions. Added
	actions and callbacks for modifying the active layer's opacity.

	* app/menus/menus-types.h: #incude "actions/action-types.h".

	* app/gui/gui-types.h: #incude "menus/menus-types.h".

	* app/gui/preferences-dialog.c: allow to enable/disable input
	controllers.
2004-06-23 00:23:25 +00:00
William Skaggs 546359f914 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/tools/gimpcurvestool.c: try again to revert.
2004-06-22 21:09:26 +00:00
William Skaggs a45025f60f reverted change to app/tools/gimpcurvestool.c 2004-06-22 18:46:03 +00:00
William Skaggs 93d6fdef05 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* plug-ins/script-fu/scripts: HIG-ified capitalization on
	all.  Finishes this for everything in plug-ins.  Bug #123699 is
	now mostly fixed.
2004-06-22 18:20:03 +00:00
Sven Neumann b2d8a3d563 define timersub() macro in case it's undefined. Patch by Tim Mooney, fixes
2004-06-22  Sven Neumann  <sven@gimp.org>

	* app/composite/gimp-composite-regression.c: define timersub()
	macro in case it's undefined. Patch by Tim Mooney, fixes 'make
	check' on Tru64 (bug #144780).
2004-06-22 18:11:08 +00:00
Bill Skaggs 848307668e added Store/Recall buttons for one-click saving and loading of curves.
2004-06-22  Bill Skaggs  <weskaggs@primate.ucdavis.edu>

	* app/tools/gimpcurvestool.c: added Store/Recall buttons for
	one-click saving and loading of curves.  Should create stock
	labels for them.  Hopefully resolves bug #75558.
2004-06-22 17:17:16 +00:00
Michael Natterer 9fe8e84963 app/actions/view-actions.c added actions & callbacks to configure the
2004-06-22  Michael Natterer  <mitch@gimp.org>

	* app/actions/view-actions.c
	* app/actions/view-commands.[ch]: added actions & callbacks to
	configure the canvas padding color.

	* app/widgets/gimphelp-ids.h
	* menus/image-menu.xml.in: added the actions' help IDs and menu entries.

	* app/display/display-enums.h: added /*< skip >*/'ed enum value
	GIMP_CANVAS_PADDING_MODE_RESET.

	* app/display/gimpdisplayshell-appearance.c
	* app/display/gimpdisplayshell-callbacks.[ch]
	* app/display/gimpdisplayshell-handlers.c
	* app/display/gimpdisplayshell.[ch]: removed the canvas padding
	button and its popup menu (fixes bug #142996). Instead, added a
	toggle button which allows to zoom the image when the window is
	resized (as known from sodipodi, except it doesn't work as nice
	yet :-) improvements to the algorithm are welcome).
	Cleaned up the GimpDisplayShell struct a bit and renamed some
	of its members.

	* libgimpwidgets/gimpstock.[ch]
	* themes/Default/images/Makefile.am
	* themes/Default/images/stock-zoom-follow-window-12.png: added new
	icon for the new display toggle button.
2004-06-22 16:31:27 +00:00
Michael Natterer afeaf96dd5 chain up unconditionally now that we draw the brush outline while
2004-06-22  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimpclonetool.c (gimp_clone_tool_draw): chain up
	unconditionally now that we draw the brush outline while
	painting. Fixes brush outline artefacts on button_press and
	button_release. Spotted by sjburges.
2004-06-22 15:31:14 +00:00
Sven Neumann a5fcdf28c7 unset the filename if the image is unnamed.
2004-06-22  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpfiledialog.c (gimp_file_dialog_set_image): unset
	the filename if the image is unnamed.

	* configure.in
	* app/sanity.c: depend on gtk+ >= 2.4.1.

	* app/widgets/gimpthumbbox.[ch]: changed gimp_thumb_box_set_uris()
	to gimp_thumb_box_take_uris() since the function takes ownership
	of the list,

	* app/widgets/gimpfiledialog.c: changed accordingly. Removed code
	that worked around a problem in gtk+ < 2.4.1.
2004-06-22 15:11:35 +00:00
Sven Neumann dd81320e5c use gimp_rgb_distance() for flat color areas. Fixes bug #144786.
2004-06-22  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpcolorarea.c (gimp_color_area_set_color): use
	gimp_rgb_distance() for flat color areas. Fixes bug #144786.
2004-06-22 09:28:35 +00:00
Sven Neumann 95a88ac3ae app/pdb/fileops_cmds.c is a generated file, need to do the documentation
2004-06-22  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/pdb/fileops.pdb: app/pdb/fileops_cmds.c is a
	generated file, need to do the documentation change here.

	* app/pdb/fileops_cmds.c
	* libgimp/gimpfileops_pdb.c: regenerated.
2004-06-22 08:54:27 +00:00
William Skaggs 8a7e2703dc Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/tools/gimptransformoptions.c: use radio buttons
	for constraint options.  Makes all options visible,
	should resolve bug #68106.
2004-06-22 02:21:13 +00:00
William Skaggs 146be19c00 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/gui/file-save-dialog.c: to reduce clutter, hide overwrite
	query dialog after user has responded.
2004-06-22 00:12:52 +00:00
William Skaggs eb6921d824 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* plug-ins/common/noisify.c: changed handling of alpha
	channel in an attempt to deal with bug #72853.
	Changed menu entry from "Noisify" to "Scatter RGB".
2004-06-21 20:42:55 +00:00
William Skaggs 1a58f6534a Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/pdb/fileops_cmds.c: fixed incorrect documentation for
	gimp_file_load, which was the root cause of bug #118811.
2004-06-21 19:36:26 +00:00
William Skaggs 1ca000333c Bill Skaggs <weskaggs@primate.ucdavis.edu>
* plug-ins: finish implementing HIG capitalization in dialogs.
	Scripts remain to be done.  More progress on bug #123699.
2004-06-21 19:15:08 +00:00
Michael Natterer 5e2c4257bb removed value GIMP_CURSOR_FORMAT_PIXBUF_PREMULTIPLY because it's the job
2004-06-21  Michael Natterer  <mitch@gimp.org>

	* app/widgets/widgets-enums.[ch] (enum GimpCursorFormat): removed
	value GIMP_CURSOR_FORMAT_PIXBUF_PREMULTIPLY because it's the job
	of GDK to do that (it was GDK that was broken, not some of the X
	servers).

	* app/widgets/gimpcursor.c (gimp_cursor_new): premultiply the
	cursor's pixels for GTK+ < 2.4.4.
2004-06-21 16:17:16 +00:00
Sven Neumann 57ce8c61be improved message in quit dialog just in case that we don't manage to redo
2004-06-21  Sven Neumann  <sven@gimp.org>

	* app/gui/gui.c (gui_exit_callback): improved message in quit
	dialog just in case that we don't manage to redo this dialog
	before 2.2.
2004-06-21 13:35:09 +00:00
Sven Neumann 2670ce0bf8 libgimpwidgets/gimpwidgets.[ch] added new utility function
2004-06-21  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpwidgets.[ch]
	* libgimpwidgets/gimpwidgets.def: added new utility function
	gimp_label_set_attributes().

	* app/display/gimpdisplayshell.c
	* app/gui/preferences-dialog.c
	* app/gui/resolution-calibrate-dialog.c
	* app/widgets/gimpviewabledialog.c
	* app/widgets/gimpwidgets-utils.c: use the new function.

	* app/widgets/gimpcontainergridview.c
	* app/widgets/gimphistogrameditor.c: display the name in italic.

	* plug-ins/common/jpeg.c: display the file size in italic.
2004-06-21 13:18:50 +00:00
William Skaggs f68a788d01 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* plug-ins/common/url.c: if url does not end in a recognized
	extension, open it as an unnamed image.  Fixes bug # 118811.
2004-06-21 00:48:44 +00:00
William Skaggs 707e635f61 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* plug-ins:  changed dialogs to follow HIG capitalization style
	wherever they didn't.  Scripts remain to be done.  Partially
	fixes bug #123699.
2004-06-20 22:47:33 +00:00
Sven Neumann d97fb0a287 removed the label between the spinbuttons, it looks silly. Converted tabs
2004-06-20  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimphistogrambox.[ch]: removed the label between the
	spinbuttons, it looks silly. Converted tabs to spaces, removed
	trailing whitespace.

	* app/widgets/gimphistogrameditor.c
	* app/tools/gimpthresholdtool.c: changed accordingly.
2004-06-20 22:04:10 +00:00
William Skaggs ca7aac79d1 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/widgets/gimphistogrambox.[ch]:
	* app/tools/gimpthresholdtool.c: Changed the threshold tool dialog
	so that it uses a two-triangle-slider scale of the sort used in the
	levels tool.  Almost all of the changes are actually in the
	histogram-box widget code, which is only used by the threshold
	tool.  Fixes bug #137521.
2004-06-20 20:51:23 +00:00
Sven Neumann 2a1ff95b6f removed redundant hboxes and other layout cleanups.
2004-06-20  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/jpeg.c: removed redundant hboxes and other
	layout cleanups.
2004-06-20 13:45:41 +00:00
Philip Lafleur c7364a64aa Changed "Zoom to Fit Window" command to "Fit Image in Window" and added
2004-06-20  Philip Lafleur  <plafleur@cvs.gnome.org>

	* app/display/gimpdisplayshell-scale.[ch]:
	* app/display/gimpnavigationview.[ch]:
	* app/actions/view-actions.c:
	* app/actions/view-commands.[ch]:
	* app/widgets/gimphelp-ids.h:
	* menus/image-menu.xml.in: Changed "Zoom to Fit Window" command
	to "Fit Image in Window" and added another command, "Fit Image
	to Window", that zooms according to the opposite dimension. Fixes
	bug #144597.
2004-06-20 12:09:03 +00:00
Michael Schumacher 3bc62470fe libgimpwidgets/gimpwidgets.def: added missing gimp_controller_* entries 2004-06-19 21:02:34 +00:00
Michael Schumacher d6b6ba7423 modules/controller_midi.c: #ifdef G_OS_WIN32 for a O_NONBLOCK 2004-06-19 20:57:17 +00:00
William Skaggs 63c0ed2ce8 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* plug-ins/common/jpeg.c: more changes to save dialog.  Moved
	comment field to Advanced area.  Don't set restart marker
	frequency stuff insensitive.  Changed range for quality
	scale from 0-1 to 0-100 to follow the jpeg spec (but left
	allowable range for pdb at 0-1 to avoid breaking anything).
2004-06-19 20:31:41 +00:00
Bill Skaggs 8ec615926e fixed my fix for bug # 68106, which worked incorrectly for two of the
2004-06-19 Bill Skaggs  <weskaggs@primate.ucdavis.edu>

	* app/tools/gimpscaletool.c: fixed my fix for bug # 68106, which
	worked incorrectly for two of the control points.
2004-06-19 18:40:51 +00:00
Michael Natterer c4558d8e1c simplified swallowing of SysEx messages and unwanted data bytes. Reordered
2004-06-19  Michael Natterer  <mitch@gimp.org>

	* modules/controller_midi.c (midi_read_event): simplified
	swallowing of SysEx messages and unwanted data bytes. Reordered
	and commented stuff to be more readable.
2004-06-19 18:34:14 +00:00
Michael Natterer 3d48bbd062 modules/Makefile.am new controller for MIDI input. Maps all note on and
2004-06-19  Michael Natterer  <mitch@gimp.org>

	* modules/Makefile.am
	* modules/controller_midi.c: new controller for MIDI input. Maps
	all note on and note off events and all MIDI controllers to
	GimpContollerEvents. Should parse any MIDI stream. Code based on
	blinkenmedia stuff from Daniel Mack.
2004-06-19 17:37:14 +00:00
Sven Neumann af16921d9b Applied a patch from Geert Jordaens that implements the GtkStatusbar
2004-06-19  Sven Neumann  <sven@gimp.org>

	Applied a patch from Geert Jordaens that implements the
	GtkStatusbar functionality in GimpStatusbar so that we can redo it
	in order to fix bug #120175:

	* app/core/gimpmarshal.list: added VOID: UINT, STRING.

	* app/display/gimpstatusbar.[ch]: copied GtkStatusbar code.

	* app/display/gimpdisplayshell.c: changed accordingly.
2004-06-19 13:31:58 +00:00
Sven Neumann 50d9bf30c6 use G_SQRT2; some coding style cleanups.
2004-06-19  Sven Neumann  <sven@gimp.org>

	* plug-ins/ifscompose/ifscompose_utils.c (create_brush): use
	G_SQRT2; some coding style cleanups.
2004-06-19 11:06:57 +00:00
Sven Neumann bcc27d8e8d moved array initialization out of variable declaration (bug #144632).
2004-06-19  Sven Neumann  <sven@gimp.org>

	* app/vectors/gimpbezierstroke.c (arcto_ellipsesegment): moved
	array initialization out of variable declaration (bug #144632).
2004-06-19 10:44:54 +00:00
Sven Neumann ef5d371d83 use G_SQRT2 to make circlemagic a constant value so we can initialize the
2004-06-19  Sven Neumann  <sven@gimp.org>

	* app/vectors/gimpbezierstroke.c (arcto_ellipsesegment): use
	G_SQRT2 to make circlemagic a constant value so we can initialize
	the array on declaration. Fixes bug #144632.
2004-06-19 09:20:36 +00:00
Sven Neumann 496f42fd5c document "exif-data" parasite.
2004-06-19  Sven Neumann  <sven@gimp.org>

	* devel-docs/parasites.txt: document "exif-data" parasite.
2004-06-19 08:58:14 +00:00
Manish Singh b93b92be2d Don't use deprecated gimp_text functions, clean up font name string
2004-06-18  Manish Singh  <yosh@gimp.org>

        * plug-ins/common/film.c: Don't use deprecated gimp_text functions,
        clean up font name string handling a bit, default is now "Monospace"
        instead of "Courier".
2004-06-19 02:17:58 +00:00
Michael Natterer 3720ce2ef7 start supporting GIMP_CONTROLLER_EVENT_VALUE of type gdouble. Assume the
2004-06-19  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpcontrollers.c (gimp_controllers_event_mapped):
	start supporting GIMP_CONTROLLER_EVENT_VALUE of type gdouble.
	Assume the double value is in a [0.0..1.0] range and temporarily
	change the value of the called GimpEnumAction to a range of
	[0..1000] when invoking it. All still very hackish...
2004-06-19 00:31:08 +00:00
Michael Natterer 98e5e6939d more debugging output.
2004-06-19  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpcontrollerinfo.c (gimp_controller_info_event):
	more debugging output.
2004-06-19 00:05:48 +00:00
William Skaggs 5180d547d0 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/tools/gimpscaletool.c: changed algorithm for scaling when
	aspect ratio is constrained, to fix strange behavior described
	in bug # 68106.
2004-06-18 23:07:23 +00:00
William Skaggs ec186b33b4 redid save dialog along lines suggested in bug # 138929
* plug-ins/common/jpeg.c:  redid save dialog along lines suggested
	in bug # 138929

	Only create an exif data parasite on loading file if the file actually
	contains exif data.

	Call exif data parasite "exif-data" instead of "jpeg-exif-data",
	because it should be interchangeable with TIFF exif data.
2004-06-18 22:38:45 +00:00
Michael Natterer 7166f7acd9 app/actions/context-actions.c added tons of new actions to modify the
2004-06-18  Michael Natterer  <mitch@gimp.org>

	* app/actions/context-actions.c
	* app/actions/context-commands.[ch]: added tons of new actions to
	modify the current FG/BG color's RGB components.

	Added new enum value GIMP_CONTEXT_SELECT_SET which allows to set
	values, not only increase/decrease them.

	Changed context_select_value() utility function to interpret
	GimpEnumAction::value being >= GIMP_CONTEXT_SELECT_SET as settings
	in a range from 0 to 1000. Yes, that's a hack...
2004-06-18 12:58:39 +00:00
Philip Lafleur 31fd87873b reverted my fix to bug #144570.
2004-06-18  Philip Lafleur  <plafleur@cvs.gnome.org>

	* app/tools/gimptransformtool.c: reverted my fix to bug #144570.
2004-06-18 10:47:07 +00:00
Philip Lafleur f6c502b40b Fix fuzzy select menu label.
2004-06-18  Philip Lafleur  <plafleur@cvs.gnome.org>

	* app/tools/gimpfuzzyselecttool.c: Fix fuzzy select menu label.
2004-06-18 09:48:44 +00:00
Philip Lafleur 860d29d09c If transforming a path, use the path bounds rather than the mask bounds.
2004-06-18  Philip Lafleur  <plafleur@cvs.gnome.org>

	* app/tools/gimptransformtool.c (gimp_transform_tool_bounds):
	If transforming a path, use the path bounds rather than the mask
	bounds. Fixes bug #144570.
2004-06-18 05:47:44 +00:00
Michael Natterer 2a69c419f1 added gimp_boolean_handled_accum().
2004-06-17  Michael Natterer  <mitch@gimp.org>

	* app/core/gimp-utils.[ch]: added gimp_boolean_handled_accum().

	* app/core/gimp.c
	* app/widgets/gimpcontrollerinfo.c: use it.
2004-06-17 16:32:30 +00:00
Michael Natterer 75e6fc560b add newly created children to the container *after* deserializing them so
2004-06-17  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpcontainer.c (gimp_container_deserialize): add newly
	created children to the container *after* deserializing them so
	GimpContainer::add() callbacks get the already deserialized
	object.

	* app/widgets/gimpcontrollers.c: connect to "add" and "remove" of
	the controller list and remember / clear the wheel controller when
	it appears / disappears.
2004-06-17 16:25:36 +00:00
Sven Neumann 21ecf07cf4 check for xsltproc and mention that the intltool version mismatch is
2004-06-17  Sven Neumann  <sven@gimp.org>

	* autogen.sh: check for xsltproc and mention that the intltool
	version mismatch is harmless.
2004-06-17 14:33:29 +00:00
Pedro Gimeno d099aa75a9 Fix typos and improve documentation. Addresses bug #144267.
2004-06-17  Pedro Gimeno  <pggimeno@wanadoo.es>

	* tools/pdbgen/pdb/paths.pdb: Fix typos and improve documentation.
	Addresses bug #144267.

	* app/pdb/paths_cmds.c
	* libgimp/gimppaths_pdb.c: regenerated.
2004-06-17 14:08:29 +00:00
Michael Natterer 5f4eabdbcb removed "enabled" property. Removed GIMP_CONTROLLER_PARAM_RERIALIZE from
2004-06-17  Michael Natterer  <mitch@gimp.org>

	* libgimpwidgets/gimpcontroller.[ch]: removed "enabled"
	property. Removed GIMP_CONTROLLER_PARAM_RERIALIZE from the "name"
	property because it's the hardware-determined name of this
	controller instance.

	* app/widgets/gimpcontrollerwheel.c
	* modules/controller_linux_input.c: set the name.

	* libgimpwidgets/gimpwidgets.h: #include gimpcontroller.h.

	* app/widgets/gimpcontrollerinfo.[ch]: added "enabled" here
	instead.  Don't dispatch events if the controller is
	disabled. Made everything work (not crash) with info->mapping
	being NULL.

	* etc/controllerrc: updated again with the changed format.

	* app/widgets/gimpcontrollers.[ch]: added
	gimp_controllers_get_list() which returns the container of
	controllers.

	* app/widgets/gimphelp-ids.h
	* app/gui/preferences-dialog.c: added controller configuration
	(can't change anything yet, just view the current settings).
	Resurrected the "Input Devices" page and removed the "Session"
	page by moving its widgets to other pages. Pack the various
	"Save now"/"Clear now" buttons vertically, not horizontally.
	Fixes bug #139069.

	* themes/Default/images/preferences/Makefile.am
	* themes/Default/images/preferences/controllers.png
	* themes/Default/images/preferences/theme.png: new icons for new
	prefs pages. Someone needs to make them nice...
2004-06-17 14:07:05 +00:00
Michael Natterer c3a0a277e7 GtkUIManager makes the menu bar visible by default, hide it if
2004-06-17  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpdisplayshell.c: GtkUIManager makes the menu bar
	visible by default, hide it if options->show_menubar is FALSE.
	Fixes bug #143243.
2004-06-17 12:19:02 +00:00
Sven Neumann 5823d07e23 bumped version to 2.1.1. Allow to disable the build of the linux_input
2004-06-17  Sven Neumann  <sven@gimp.org>

	* configure.in: bumped version to 2.1.1. Allow to disable the
	build of the linux_input controller module.
2004-06-17 10:01:58 +00:00
Philip Lafleur 52160f6ad7 Make transforms (most notably perspective transforms) conform exactly to
2004-06-17  Philip Lafleur  <plafleur@cvs.gnome.org>

	* app/core/gimpdrawable-transform.c (gimp_drawable_transform_tiles_affine):
	Make transforms (most notably perspective transforms) conform exactly
	to specified edges. Includes a patch by David Gowers. Fixes bug #144352.
2004-06-17 06:42:07 +00:00
Manish Singh efe3ff1b91 put BTN_{WHEEL,GEAR_DOWN,GEAR_UP} usage in #ifdefs, since pre-2.6 kernels
2004-06-16  Manish Singh  <yosh@gimp.org>

        * modules/controller_linux_input.c: put BTN_{WHEEL,GEAR_DOWN,GEAR_UP}
        usage in #ifdefs, since pre-2.6 kernels do not have them.

        * modules/controller_linux_input.c (linux_input_read_event): n_bytes
        should be a gsize.
2004-06-16 23:37:38 +00:00
Michael Natterer ed891b72db app/actions/context-actions.c added actions & callback to select the
2004-06-16  Michael Natterer  <mitch@gimp.org>

	* app/actions/context-actions.c
	* app/actions/context-commands.[ch]: added actions & callback
	to select the first/last/prev/next tool.
2004-06-16 20:12:47 +00:00
Simon Budig 1209fb5d65 removed BTN_MISC, since it is the same as BTN_0 in the input.h header
2004-06-16  Simon Budig  <simon@gimp.org>

	* modules/controller_linux_input.c: removed BTN_MISC,
	since it is the same as BTN_0 in the input.h header file.
2004-06-16 19:59:34 +00:00
Michael Natterer 004a9572cf always return a non-NULL string (return "<invalid event id>" as fallback).
2004-06-16  Michael Natterer  <mitch@gimp.org>

	* libgimpwidgets/gimpcontroller.c (gimp_controller_get_event_name)
	(gimp_controller_get_event_blurb): always return a non-NULL
	string (return "<invalid event id>" as fallback).

	* modules/controller_linux_input.c: reenabled button event
	dispatching.

	* app/widgets/gimpcontrollerinfo.c: fixed debugging output.
2004-06-16 19:51:33 +00:00
Simon Budig a1d67f0ecb break out of the loop after we handled the first matching rel_event.
2004-06-16  Simon Budig  <simon@gimp.org>

	* modules/controller_linux_input.c: break out of the
	loop after we handled the first matching rel_event.
2004-06-16 18:55:01 +00:00
Michael Natterer 3a7f7d54e7 added #define GIMP_CONTROLLER_PARAM_SERIALIZE. Made all properties
2004-06-16  Michael Natterer  <mitch@gimp.org>

	* libgimpwidgets/gimpcontroller.[ch]: added #define
	GIMP_CONTROLLER_PARAM_SERIALIZE. Made all properties serializable.

	* modules/controller_linux_input.c: made "device-name"
	serializable.

	* app/config/gimpconfig-params.h: added macro
	GIMP_CONFIG_INSTALL_PROP_POINTER() which needs to be handled
	by custom (de)serialize_property() implementations.

	* app/config/gimpconfig-deserialize.c
	* app/config/gimpconfig-serialize.c: made object (de)serialization
	work for object properties which are *not* GIMP_PARAM_AGGREGATE.
	Write/parse the exact type of the object to create to enable this.

	* app/core/gimpmarshal.list: new marshaller for GimpControllerInfo.

	* app/widgets/gimpcontrollerinfo.[ch]: implement GimpConfigInterface
	and add "controller" and "mapping" properties. Add "event-mapped"
	signal which carries the action_name.

	* app/widgets/gimpcontrollers.c: removed all deserialization code
	and simply (de)serialize the controller container. Install a
	container handler for "event-mapped" and do the action_name ->
	action mapping in the callback.

	* etc/controllerrc: regenerated with new syntax. Delete your old one!
2004-06-16 18:14:44 +00:00
Sven Neumann 429b090fd4 don't use gettext() here.
2004-06-16  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpcontrollerwheel.c
	(gimp_controller_wheel_get_event_name): don't use gettext() here.

	* modules/controller_linux_input.c: added more button events, set
	the device name, some cleanup.
2004-06-16 17:22:19 +00:00
Sven Neumann d47121fa08 changed dependencies for blur.
2004-06-16  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/plugin-defs.pl: changed dependencies for blur.

	* plug-ins/common/Makefile.am: regenerated.

	* plug-ins/common/blur.c: no need to include libgimpui.h any longer.
2004-06-16 16:17:02 +00:00
William Skaggs ad8e87767a committing ChangeLog entry for previous commit 2004-06-16 16:01:07 +00:00
Simon Budig 7d46ad95be enable dial-events for e.g. the powermate. Fixed typo.
2004-06-16  Simon Budig  <simon@gimp.org>

	* modules/controller_linux_input.c: enable dial-events for
	e.g. the powermate. Fixed typo.
2004-06-16 12:07:34 +00:00
Sven Neumann dce97c4e33 added missing menu entries (bug #144449).
2004-06-16  Sven Neumann  <sven@gimp.org>

	* menus/image-menu.xml.in: added missing menu entries (bug #144449).
2004-06-16 12:05:28 +00:00
Michael Natterer 569af0ac93 added GimpController::get_event_blurb() which returns the strings that
2004-06-16  Michael Natterer  <mitch@gimp.org>

	* libgimpwidgets/gimpcontroller.[ch]: added
	GimpController::get_event_blurb() which returns the strings that
	were returned by get_event_name(). The latter returns
	untranslatable event identifiers now.

	* app/widgets/gimpcontrollerwheel.c
	* modules/controller_linux_input.c: changed accordingly.

	* app/widgets/gimpcontrollerinfo.c
	* app/widgets/gimpcontrollers.c: changed the event mapping from
	event-id -> action-name to event-name -> action-name.

	* etc/controllerrc: changed accordingly (finally readable now).
2004-06-16 11:53:37 +00:00
Michael Natterer ba2e6c675f app/widgets/Makefile.am app/widgets/widgets-types.h made an object out of
2004-06-16  Michael Natterer  <mitch@gimp.org>

	* app/widgets/Makefile.am
	* app/widgets/widgets-types.h
	* app/widgets/gimpcontrollerinfo.[ch]: made an object out of
	the GimpControllerInfo struct.

	* app/widgets/gimpcontrollers.c: changed accordingly.
2004-06-16 11:11:32 +00:00
Jakub Steiner 02e41c06fa fix typo
2004-06-16  Jakub Steiner <jimmac@ximian.com>

* etc/controllerrc: fix typo
2004-06-16 02:57:55 +00:00
Sven Neumann 152a05c51a modules/controller_linux_input.c basic wheel event support.
2004-06-16  Sven Neumann  <sven@gimp.org>

	* modules/controller_linux_input.c
	* etc/controllerrc: basic wheel event support.
2004-06-16 02:39:15 +00:00
Michael Natterer 3474308cfe better debugging output.
2004-06-16  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpcontrollers.c: better debugging output.
2004-06-16 02:23:42 +00:00
Sven Neumann 75a1716e53 forgot this one... 2004-06-16 02:20:34 +00:00
Michael Natterer 1713ef21a5 load the controller's properties from the controllerrc file.
2004-06-16  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpcontrollers.c: load the controller's
	properties from the controllerrc file.

	* etc/controllerrc: set the wheel's properties.
2004-06-16 01:59:50 +00:00
Michael Natterer 037da87c92 use the 10% actions for opacity.
2004-06-16  Michael Natterer  <mitch@gimp.org>

	* etc/controllerrc: use the 10% actions for opacity.
2004-06-16 01:22:57 +00:00
Michael Natterer aa96898f45 ref the actions when putting them in the mapping table.
2004-06-16  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpcontrollers.c: ref the actions when putting
	them in the mapping table.

	* app/actions/context-actions.c: added actions to change the
	opacity in 10% steps.
2004-06-16 01:16:52 +00:00
Michael Natterer f3b7f4161c added a "name" property. Dispatch events only if the controller is
2004-06-16  Michael Natterer  <mitch@gimp.org>

	* libgimpwidgets/gimpcontroller.[ch]: added a "name" property.
	Dispatch events only if the controller is enabled.

	* app/widgets/gimpcontrollerwheel.c: added controller events for
	all possible modifier combinations.

	* etc/Makefile.am
	* etc/controllerrc: default controllerrc which maps all unused
	wheel+modifier combinations to more-or-less usefull stuff.
2004-06-16 00:52:28 +00:00
Michael Natterer d0117ef5b9 Started to fix bug #106920 in a more genreral way:
2004-06-16  Michael Natterer  <mitch@gimp.org>

	Started to fix bug #106920 in a more genreral way:

	* libgimpwidgets/Makefile.am
	* libgimpwidgets/gimpwidgetstypes.h
	* libgimpwidgets/gimpwidgetsmarshal.list
	* libgimpwidgets/gimpcontroller.[ch]: new abstract base class
	which provides an API for pluggable input controller modules
	(mouse wheel, usb/midi stuff etc.).

	* app/widgets/Makefile.am
	* app/widgets/widgets-types.h
	* app/widgets/gimpcontrollerwheel.[ch]: subclass of the above
	which maps wheel mouse scroll events to controller events.

	* app/widgets/gimpcontrollers.[ch]: manager for controllers.
	reads $(gimpdir)/controllerrc and keeps a mapping of controller
	events to GtkActions.

	* app/gui/gui.c: initialize and shut down the controller stuff.

	* app/display/gimpdisplayshell-callbacks.c
	(gimp_display_shell_canvas_tool_events): if a wheel controller
	exists, dispatch GdkEventScroll to it first and return if it was
	handled.
2004-06-15 22:59:26 +00:00
Sven Neumann 7070931e6a deprecate the XLFD-based API gimp_text() and gimp_text_get_extents().
2004-06-15  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/pdb/text_tool.pdb: deprecate the XLFD-based API
	gimp_text() and gimp_text_get_extents().

	* app/pdb/text_tool_cmds.c
	* libgimp/gimptexttool_pdb.[ch]: regenerated.
2004-06-15 21:44:19 +00:00
Manish Singh 58dc763b63 tools/pdbgen/pdbgen.pl some simplistic code to add a $deprecated flag to
2004-06-15  Manish Singh  <yosh@gimp.org>

        * tools/pdbgen/pdbgen.pl
        * tools/pdbgen/lib.pl: some simplistic code to add a $deprecated
        flag to pdb definitions, which translates into GIMP_DISABLE_DEPRECATED
        guards in lib headers.
2004-06-15 21:08:14 +00:00
Michael Natterer 8ab1ae98a3 app/actions/Makefile.am app/actions/context-actions.[ch] added new action
2004-06-15  Michael Natterer  <mitch@gimp.org>

	* app/actions/Makefile.am
	* app/actions/context-actions.[ch]
	* app/actions/context-commands.[ch]: added new action group to
	modify all GimpContext properties. So far there are actions to
	cycle through the lists of brushes, patterns etc., to change the
	opacity, to swap and default colors and to edit generated brushes.

	* app/actions/actions.c: register the new "context" action group.

	* app/actions/tools-actions.c
	* app/actions/tools-commands.[ch]: removed "tools-default-colors"
	and "tools-swap-colors" actions and callbacks because they are
	in the "context" action group now.

	* app/menus/menus.c: add the "context" group to the <Image> and
	<Dock> UI managers.

	* menus/image-menu.xml.in: changed accordingly. Added a temporary
	"Context" menu to test and debug the new actions.
2004-06-15 15:42:50 +00:00
Philip Lafleur d1e706484c Force aspect ratio to match selection when 'From Selection' is clicked.
2004-06-15  Philip Lafleur  <plafleur@cvs.gnome.org>

	* app/tools/gimpcroptool.c (crop_selection_callback): Force
	aspect ratio to match selection when 'From Selection' is clicked.
	Fixes bug #144361. Also converted tabs to spaces.
2004-06-15 15:30:36 +00:00
Sven Neumann 4d3ae147a7 applied the fix for empty colormaps (bug #143009) here as well.
2004-06-15  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/mng.c (respin_cmap): applied the fix for empty
	colormaps (bug #143009) here as well.
2004-06-15 11:22:05 +00:00
Philip Lafleur 8059d9aa29 Don't round texture coordinates when not using interpolation. Fixes bug
2004-06-15  Philip Lafleur  <plafleur@cvs.gnome.org>

	* app/core/gimpdrawable-transform.c (gimp_drawable_transform_tiles_affine):
	Don't round texture coordinates when not using interpolation. Fixes
	bug #144352 for the nearest neighbor case only.
2004-06-15 08:18:13 +00:00
Sven Neumann c5810390d1 replaced some arbitrary values with larger but still arbitrary values
2004-06-14  Sven Neumann  <sven@gimp.org>

	* app/paint/gimpinkoptions.c: replaced some arbitrary values with
	larger but still arbitrary values (default and limit for ink size).
2004-06-14 17:41:53 +00:00
Michael Natterer 587e070ff4 removed PRETRACE_PAINT and POSTTRACE_PAINT from the GimpPaintCoreState
2004-06-14  Michael Natterer  <mitch@gimp.org>

	* app/paint/gimppaintcore.[ch]: removed PRETRACE_PAINT and
	POSTTRACE_PAINT from the GimpPaintCoreState enum. Removed
	"gboolean traces_on_window" from GimpPaintCoreClass.

	* app/paint/gimpclone.[ch]
	* app/paint/gimpink.c
	* app/tools/gimpclonetool.c: changed accordingly.

	* app/tools/gimppainttool.c: ditto. Show the brush outline
	while painting. Fixes bug #118348.
2004-06-14 15:26:29 +00:00
Michael Natterer 4b9a4db275 use gimp_draw_tool_is_active() instead of
2004-06-14  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimptransformtool.c: use gimp_draw_tool_is_active()
	instead of GIMP_IS_DISPLAY(draw_tool->gdisp).
2004-06-14 15:13:37 +00:00
Michael Natterer 179c709509 do the workaround for "" accelerators only if the GTK+ version is smaller
2004-06-14  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpactiongroup.c (gimp_action_group_add_*_actions):
	do the workaround for "" accelerators only if the GTK+ version
	is smaller than 2.4.3. Fixes bug #144342 for GTK+ >= 2.4.3.
2004-06-14 14:38:59 +00:00
Sven Neumann 2b78805a89 declared gimp_drawable_transform_cubic() as inline function. Makes
2004-06-14  Sven Neumann  <sven@gimp.org>

	* app/core/gimpdrawable-transform.c: declared
	gimp_drawable_transform_cubic() as inline function. Makes
	sample_cubic() run about 10% faster and causes a 7% speedup on
	cubic transformations.

	* app/paint-funcs/paint-funcs.c (border_region): avoid an
	unnecessary memory allocation.
2004-06-14 13:38:31 +00:00
Philip Lafleur 905b0e031e Disable preview in corrective mode, and notify preview when switching
2004-06-14  Philip Lafleur  <plafleur@cvs.gnome.org>

	* app/tools/gimptransformtool.c: Disable preview in corrective
	mode, and notify preview when switching transform type and
	direction.
2004-06-14 13:21:29 +00:00
Michael Natterer 3e2690832c added new virtual function GimpPaintCore::post_paint() and call it after
2004-06-14  Michael Natterer  <mitch@gimp.org>

	* app/paint/gimppaintcore.[ch]: added new virtual function
	GimpPaintCore::post_paint() and call it after calling
	GimpPaintCore::paint().

	* app/paint/gimpbrushcore.[ch]: renamed brush_core->grr_brush
	to brush_core->main_brush and reset brush_core->brush
	to brush_core->main_brush in GimpPaintCore::post_paint().

	* app/paint/gimpbrushcore.c
	* app/paint/gimppaintcore-stroke.c
	* app/tools/gimppainttool.c: removed all code which restores
	the brush_core's old brush after painting since post_paint()
	does this automatically now.

	* app/paint/gimpclone.[ch]: moved static variables to the
	GimpClone struct.
2004-06-14 12:52:33 +00:00
Sven Neumann 0256a2dcd2 some code cleanup I did while attempting to optimize this code further.
2004-06-14  Sven Neumann  <sven@gimp.org>

	* app/paint-funcs/paint-funcs-generic.h (color_pixels): some code
	cleanup I did while attempting to optimize this code further.
2004-06-14 12:18:30 +00:00
Henrik Brix Andersen 1bdd36c952 let extensions run synchronously when called via PDB. Fixes bug #140112.
2004-06-14 Henrik Brix Andersen <brix@gimp.org>

* app/plug-in/plug-in-run.c: let extensions run synchronously when
called via PDB. Fixes bug #140112.
2004-06-14 11:58:49 +00:00
Philip Lafleur 4ad2d7177f Preview is now only used for layer transformations.
2004-06-14  Philip Lafleur  <plafleur@cvs.gnome.org>

	* app/tools/gimptransformtool.c: Preview is now only used for
	layer transformations.
2004-06-14 11:45:45 +00:00
Michael Natterer 4c68bd878a app/tools/gimpperspectivetool.c app/tools/gimprotatetool.c
2004-06-14  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimpperspectivetool.c
	* app/tools/gimprotatetool.c
	* app/tools/gimpscaletool.c
	* app/tools/gimpsheartool.c: removed calls to
	gimp_transform_tool_expose_preview() from all
	GimpTransformTool::motion() implementations...

	* app/tools/gimptransformtool.c: ...and call it after calling
	tr_tool_class->preview().
2004-06-14 10:48:00 +00:00
Michael Natterer 1082ee6b94 remember the last used GimpCursorFormat so changing the format in prefs
2004-06-14  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpdisplayshell.[ch]: remember the last used
	GimpCursorFormat so changing the format in prefs applies
	instantly, and not after the next tool change.

	* app/display/gimpdisplayshell-cursor.[ch]
	* app/tools/gimptool.[ch]
	* app/tools/gimptoolcontrol.[ch]
	* app/tools/gimpclonetool.c
	* app/tools/gimpcolortool.c
	* app/tools/gimpcroptool.c
	* app/tools/gimpcurvestool.c
	* app/tools/gimpiscissorstool.c
	* app/tools/gimpmeasuretool.c
	* app/tools/gimpmovetool.c
	* app/tools/gimptransformtool.c: s/GdkCursorType/GimpCursorType/g
2004-06-14 10:19:39 +00:00
Philip Lafleur 71b4d89167 Preview wasn't being turned off before performing a transformation. Also
2004-06-14  Philip Lafleur  <plafleur@cvs.gnome.org>

	* app/tools/gimptransformtool.c (gimp_transform_tool_doit): Preview
	wasn't being turned off before performing a transformation. Also
	converted tabs to spaces.
2004-06-14 09:06:28 +00:00
Philip Lafleur 01b53ad34f Transformation previews now use the selection mask if it is present.
2004-06-14  Philip Lafleur  <plafleur@cvs.gnome.org>

	* app/display/gimpdisplayshell-preview.c: Transformation previews now
	use the selection mask if it is present.
2004-06-14 05:13:21 +00:00
Manish Singh 62e33047e6 Make sure PangoFT2 is using a recent enough fontconfig since many people
2004-06-13  Manish Singh  <yosh@gimp.org>

        * configure.in: Make sure PangoFT2 is using a recent enough fontconfig
        since many people have broken and confused setups.
2004-06-14 02:34:46 +00:00
Manish Singh 6ffe04402b cleans ups so generated output doesn't warn about uninitialize variable
2004-06-13  Manish Singh  <yosh@gimp.org>

        * tools/pdbgen/pdb/gradient_edit.pdb: cleans ups so generated
        output doesn't warn about uninitialize variable use, and whitespace
        cosmetic cleanups.

        * app/pdb/gradient_edit_cmds.c: regenerated.
2004-06-14 01:01:39 +00:00
Manish Singh 0829a3b65e Reorged, to address bug #142907 and bug #143069. Accel implementations
2004-06-13  Manish Singh  <yosh@gimp.org>

        * app/base/cpu-accel.c: Reorged, to address bug #142907 and
        bug #143069. Accel implementations #define HAVE_ACCEL, and cpu_accel()
        keys on that. Both PPC and X86 implementations check for __GNUC__.
        X86 stuff is only used with USE_MMX is defined. The SSE OS check
        is now checked in arch_accel(), not cpu_accel(). Finally, the
        arch x86_64 checks now are EM64T aware (which didn't matter in
        practice).
2004-06-14 00:52:38 +00:00
Philip Lafleur 7b3cc62c52 use drawable_mask_bounds() for texture coordinates instead of the
2004-06-13  Philip Lafleur  <plafleur@cvs.gnome.org>

	* app/display/gimpdisplayshell-preview.c: use drawable_mask_bounds()
	for texture coordinates instead of the drawable's width and height.
2004-06-13 15:22:51 +00:00
Sven Neumann 847e41fa24 don't call tile_ewidth() three times from the inner loop.
2004-06-13  Sven Neumann  <sven@gimp.org>

	* app/paint-funcs/paint-funcs.c (shapeburst_region): don't call
	tile_ewidth() three times from the inner loop.

	* app/base/tile-manager.c (tile_manager_get): don't call
	tile_size() twice on the same tile.

	* app/base/tile-private.h: added tile_size_inline(), an inline
	version of the tile_size() function.

	* app/base/tile-cache.c
	* app/base/tile-manager.c
	* app/base/tile-swap.c
	* app/base/tile.c: use tile_size_inline() from inside the tile
	subsystem.
2004-06-13 13:19:19 +00:00
Simon Budig a3936388bc Minor tweaks to two macros. Shouldn't change anything.
2004-06-13  Simon Budig  <simon@gimp.org>

	* app/tools/gimpiscissorstool.c: Minor tweaks to two macros.
	Shouldn't change anything.
2004-06-13 12:48:40 +00:00
Simon Budig b71dafc8a9 Oops, forgot to mention Iva as a host... :) 2004-06-13 12:10:01 +00:00
Jakub Steiner 5b2c7e0709 minor fsckup
2004-06-13  Jakub Steiner <jimmac@ximian.com>

* cursors/tool-zoom.png:
* cursors/cursor-zoom.png: minor fsckup
2004-06-13 11:27:36 +00:00
Jakub Steiner 079e6d356b cursors/gimp-tool-cursors.xcf the burn tool doesn't really have an
2004-06-13  Jakub Steiner <jimmac@ximian.com>

* cursors/gimp-tool-cursors.xcf
* cursors/tool-burn.png: the burn tool doesn't really have an
  inverted handle
2004-06-13 11:17:43 +00:00
Sven Neumann b9211077cd added progress callback.
2004-06-13  Sven Neumann  <sven@gimp.org>

	* app/paint-funcs/paint-funcs.[ch] (shapeburst_region): added
	progress callback.

	* app/core/gimpdrawable-blend.c: show a progress while calculating
	the Shapeburst. Not perfect but better than not showing any
	progress at all.
2004-06-13 10:52:42 +00:00
Michael Natterer 2498adc5f6 added enum GimpCursorFormat which can be one of { BITMAP, PIXBUF,
2004-06-13  Michael Natterer  <mitch@gimp.org>

	* app/widgets/widgets-enums.[ch]: added enum GimpCursorFormat
	which can be one of { BITMAP, PIXBUF, PIXBUF-PREMULTIPLY } to
	work around broken X servers.

	* app/config/gimpguiconfig.[ch]
	* app/config/gimprc-blurbs.h: added GimpGuiConfig::cursor-format.

	* app/gui/preferences-dialog.c: added a GUI for the new option.

	* app/widgets/gimpcursor.[ch]: added cursor_format parameter
	to gimp_cursor_new() and _set().

	* app/display/gimpdisplayshell-cursor.c
	* app/tools/gimpcurvestool.c
	* app/widgets/gimpdialogfactory.c: pass an appropriate cursor_mode.
2004-06-13 02:08:54 +00:00
Philip Lafleur a6801996e4 added missing semicolon.
2004-06-12  Philip Lafleur  <plafleur@cvs.gnome.org>

	* app/core/gimpdrawable-blend.c: added missing semicolon.
2004-06-13 01:57:26 +00:00
Philip Lafleur afb3f5c16c Fixed incorrect logic that caused perfect-but-slow pointer tracking to be
2004-06-12  Philip Lafleur  <plafleur@cvs.gnome.org>

	* app/display/gimpdisplayshell-callbacks.c: Fixed incorrect logic that
	caused perfect-but-slow pointer tracking to be used in tools that
	don't request exact mode.

	* app/display/Makefile.am:
	* app/display/gimpdisplayshell-appearance.[ch]:
	* app/display/gimpdisplayshell-callbacks.c:
	* app/display/gimpdisplayshell.[ch]:
	* app/display/gimpdisplayshell-preview.[ch]: added
	* app/tools/gimpperspectivetool.c:
	* app/tools/gimprotatetool.c:
	* app/tools/gimpscaletool.c:
	* app/tools/gimpsheartool.c:
	* app/tools/gimptransformoptions.[ch]:
	* app/tools/gimptransformtool.[ch]: Implemented live transformation
	previews, available through tool options. Fixes bug #108172.
2004-06-13 01:37:29 +00:00
Sven Neumann c28d70ce00 inline the repeat functions.
2004-06-13  Sven Neumann  <sven@gimp.org>

	* app/core/gimpdrawable-blend.c (gradient_render_pixel): inline
	the repeat functions.

	* app/core/gimpgradient.c: inline the curve functions.
2004-06-13 01:17:57 +00:00
Jakub Steiner 4e235080ce cursors/gimp-tool-cursors.xcf make more transparent
2004-06-13  Jakub Steiner <jimmac@ximian.com>

* cursors/gimp-tool-cursors.xcf
* cursors/tool-zoom.png: make more transparent
2004-06-13 00:32:59 +00:00
Jakub Steiner cf3ff44978 cursors/gimp-tool-cursors.xcf cursors/tool-blur.png
2004-06-13  Jakub Steiner <jimmac@ximian.com>

* cursors/gimp-tool-cursors.xcf
* cursors/tool-blur.png
* cursors/tool-bucket-fill.png
* cursors/tool-dodge.png
* cursors/tool-eraser.png
* cursors/tool-hand.png: fix a few problems hidden by low opacity
2004-06-12 23:55:03 +00:00
Jakub Steiner 6ec4ced96c updated the cursors
2004-06-13  Jakub Steiner <jimmac@ximian.com>

* cursor/*png: updated the cursors
2004-06-12 23:01:25 +00:00
Michael Natterer 672fa6af9f added nice new antialiased cursor layers made by Jimmac.
2004-06-13  Michael Natterer  <mitch@gimp.org>

	* cursors/gimp-tool-cursors.xcf: added nice new antialiased
	cursor layers made by Jimmac.
2004-06-12 22:41:22 +00:00
Sven Neumann de758bbe93 don't use the rather inefficient gimp_palette_add_entry() when loading a
2004-06-13  Sven Neumann  <sven@gimp.org>

	* app/core/gimppalette.c (gimp_palette_load): don't use the rather
	inefficient gimp_palette_add_entry() when loading a palette.
2004-06-12 22:28:13 +00:00
Michael Natterer b490b26283 added "gint freeze_count" and gimp_data_freeze()/thaw() functions. Emit
2004-06-13  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpdata.[ch]: added "gint freeze_count" and
	gimp_data_freeze()/thaw() functions. Emit "dirty" only if
	freeze_count either is 0 or drops to 0.

	* app/core/gimpbrushgenerated.[ch]
	* app/core/gimpgradient.[ch]: removed freeze/thaw stuff that
	was duplicated in these two subclasses and use the new
	GimpData API instead.

	* app/widgets/gimpbrusheditor.c
	* app/widgets/gimpgradienteditor.c: changed accordingly.
2004-06-12 22:13:31 +00:00
Sven Neumann 2fd178c624 don't copy the first row onto itself.
2004-06-12  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpcolorbar.c (gimp_color_bar_expose): don't copy
	the first row onto itself.
2004-06-12 20:26:16 +00:00
Simon Budig d76b2183aa Make Enter/Return apply the transformation, Backspace/Delete resets the
2004-06-12  Simon Budig  <simon@gimp.org>

	* app/tools/gimptransformtool.c: Make Enter/Return apply the
	transformation, Backspace/Delete resets the transformation.

	* app/tools/gimpcroptool.c: Simplify the key_press callback.
2004-06-12 20:10:40 +00:00
Simon Budig 3fe1753e1a Make the Enter/Return key do the crop action.
2004-06-12  Simon Budig  <simon@gimp.org>

	* app/tools/gimpcroptool.c: Make the Enter/Return key do
	the crop action.

	* app/tools/gimpeditselectiontool.c
	* app/tools/gimpvectortool.c: Make the _key_press functions
	safe for non-arrow keys.
2004-06-12 19:29:50 +00:00
Sven Neumann 25855661f6 just some cleanup.
2004-06-12  Sven Neumann  <sven@gimp.org>

	* app/composite/gimp-composite.[ch]: just some cleanup.
2004-06-12 19:23:45 +00:00
Michael Natterer 7fd7442582 ported some forgotten #if 0'ed GtkItemFactory stuff to GtkUIManager.
2004-06-12  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpdisplayshell-callbacks.c
	(gimp_display_shell_events): ported some forgotten #if 0'ed
	GtkItemFactory stuff to GtkUIManager.
2004-06-12 18:50:44 +00:00
Simon Budig 3c1b7fe68f renamed the "arrow_key" member to "key_press", since it is now no longer
2004-06-12  Simon Budig  <simon@gimp.org>

	* app/tools/gimptool.[ch]: renamed the "arrow_key" member
	to "key_press", since it is now no longer about just the arrow
	keys.

	* app/tools/gimpcroptool.c
	* app/tools/gimpeditselectiontool.c
	* app/tools/gimpeditselectiontool.h
	* app/tools/gimpmovetool.c
	* app/tools/gimppainttool.c
	* app/tools/gimpselectiontool.c
	* app/tools/gimptexttool.c
	* app/tools/gimpvectortool.c
	* app/tools/tool_manager.c: Changed accordingly.
2004-06-12 18:41:52 +00:00
Michael Natterer a458622eb0 add the file DND destination before all others so the DND code will
2004-06-12  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpdisplayshell.c (gimp_display_shell_init): add
	the file DND destination before all others so the DND code will
	implicitly use its destination properties. Works around Konqueror
	offering only file MOVE, not COPY and fixes bug #144168.
2004-06-12 18:31:49 +00:00
Sven Neumann 277d09627e reindented, some minor cleanup.
2004-06-12  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/sample_colorize.c: reindented, some minor cleanup.
2004-06-12 18:23:16 +00:00
Simon Budig 7eac83840f Fixed typo in the Changelog 2004-06-12 18:08:30 +00:00
Simon Budig 39614b34a6 renamed tool_manager_arrow_key_active to tool_manager_key_press_active.
2004-06-12  Simon Budig  <simon@gimp.org>

	* app/tools/tool_manager.[ch]: renamed
	tool_manager_arrow_key_active to tool_manager_key_press_active.

	* app/display/gimpdisplayshell-callbacks.c: Also dispatch
	GDK_Return/KP_Enter/BackSpace/Delete to the tools "arrow_key"
	member of GimpTool probably should be renamed.

	* app/tools/gimpvectortool.c: Use Enter/Return to convert the
	current path to a selection, use Backspace/Delete to delete the
	currently active anchors in a path.

	Implemented on Jimmacs request - thanks for being a great host  :)
2004-06-12 18:03:48 +00:00
Sven Neumann fc03867f4c set the initially selected channel on the histogram combobox. Fixes bug
2004-06-12  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimphistogrameditor.c (gimp_histogram_editor_init):
	set the initially selected channel on the histogram combobox.
	Fixes bug #144225.
2004-06-12 17:30:28 +00:00
Philip Lafleur 234cb4c61c renamed all "pressure-pressure" variables to "pressure-hardness".
2004-06-12  Philip Lafleur  <plafleur@cvs.gnome.org>

	* app/paint/gimppaintoptions.[ch]: renamed all "pressure-pressure"
	variables to "pressure-hardness".

	* app/paint/gimpairbrush.c:
	* app/tools/gimppaintoptions-gui.c: changed accordingly.
2004-06-12 12:44:24 +00:00
Michael Natterer 1031f24b9e replaced destroy() by finalize(), converted tabs to spaces, cleanup.
2004-06-10  Michael Natterer  <mitch@gimp.org>

	* libgimpwidgets/gimpcolorarea.c: replaced destroy() by
	finalize(), converted tabs to spaces, cleanup.
2004-06-10 16:02:30 +00:00
Michael Natterer 33f43497f0 line-wrap the filename label if it's too long instead of cutting it off.
2004-06-10  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpthumbbox.c (gimp_thumb_box_new): line-wrap the
	filename label if it's too long instead of cutting it off.
2004-06-10 16:00:53 +00:00
Michael Natterer 65995ec6f8 s/GIMP_LAST_CURSOR_MODIFIER_ENTRY/GIMP_CURSOR_MODIFIER_LAST/.
2004-06-10  Michael Natterer  <mitch@gimp.org>

	* app/widgets/widgets-enums.h (enum GimpCursorModifier):
	s/GIMP_LAST_CURSOR_MODIFIER_ENTRY/GIMP_CURSOR_MODIFIER_LAST/.

	* app/widgets/gimpcursor.c: changed accordingly. Renamed struct
	GimpBitmapCursor to GimpCursor. More cleanup.
2004-06-10 14:43:08 +00:00
Michael Natterer 63e5c04716 app/actions/image-actions.c app/actions/image-commands.[ch]
2004-06-10  Michael Natterer  <mitch@gimp.org>

	* app/actions/image-actions.c
	* app/actions/image-commands.[ch]
	* app/actions/layers-actions.c
	* app/actions/layers-commands.[ch]: made the
	"image-convert-rgb/grayscale/indexed" and the
	"layers-mask-apply/delete" actions GimpEnumActions and merged
	their callbacks.
2004-06-10 14:25:04 +00:00
Philip Lafleur ee5eff3133 restored the 'Show Paint Tool Cursor' option that was removed during
2004-06-10  Philip Lafleur  <plafleur@cvs.gnome.org>

	* app/gui/preferences-dialog.c: restored the 'Show Paint Tool
    Cursor' option that was removed during clean-up.
2004-06-10 11:24:36 +00:00
Philip Lafleur abcf984b66 avoided some redundant calculations.
2004-06-10  Philip Lafleur  <plafleur@cvs.gnome.org>

	* app/paint/gimpbrushcore.c (gimp_brush_core_pressurize_mask):
	avoided some redundant calculations.
2004-06-10 02:53:19 +00:00
Sven Neumann 309bf0098f removed the monitor calibration from the user installation process. It's
2004-06-10  Sven Neumann  <sven@gimp.org>

	* app/gui/user-install-dialog.c: removed the monitor calibration
	from the user installation process. It's not a vital setting and
	can be done from the Preferences dialog later.

	* app/gui/resolution-calibrate-dialog.[ch]: simplified the
	resolution calibration dialog by removing the hacks that were
	needed for drawing it in the user-installation style.

	* app/gui/preferences-dialog.c: changed accordingly. Also removed
	the separator from the Display page.
2004-06-09 23:51:06 +00:00
Sven Neumann 38b78ce9d2 added an API to expand/collapse the "Advanced Options" frame.
2004-06-10  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimptemplateeditor.[ch]: added an API to
	expand/collapse the "Advanced Options" frame.

	* app/gui/preferences-dialog.c
	* app/widgets/gimphelp-ids.h: applied a patch done by William
	Skaggs that cleans up and reorganizes the Preferences dialog
	(bug #144060).
2004-06-09 22:37:49 +00:00
Simon Budig cb777787ed renamed gimp_coords_length2 to gimp_coords_length_squared.
2004-06-09  Simon Budig  <simon@gimp.org>

	* app/core/gimpcoords.[ch]: renamed gimp_coords_length2 to
	gimp_coords_length_squared.

	* app/vectors/gimpbezierstroke.c: Changed accordingly
2004-06-09 12:44:13 +00:00
Sven Neumann 084d57c4f6 typo 2004-06-09 12:23:00 +00:00
Sven Neumann beae166d54 no need request GIMP_MOTION_MODE_EXACT here since the parent class does
2004-06-09  Sven Neumann  <sven@gimp.org>

	* app/tools/gimppenciltool.c (gimp_pencil_tool_init): no need
	request GIMP_MOTION_MODE_EXACT here since the parent class does
	that already.

	* app/tools/gimpinktool.c (gimp_ink_tool_init): ditto. Enable the
	color picker feature for the ink tool.
2004-06-09 12:14:55 +00:00
Sven Neumann 69ccf485c7 added "Selection Editor" to the Selection menu. Still hoping for the great
2004-06-09  Sven Neumann  <sven@gimp.org>

	* menus/image-menu.xml.in: added "Selection Editor" to the
	Selection menu. Still hoping for the great menu reorganization
	though...
2004-06-09 00:31:04 +00:00
Sven Neumann 05ab8475d6 "Save to Channel" makes sense without a selection also, so don't set it
2004-06-09  Sven Neumann  <sven@gimp.org>

	* app/actions/select-actions.c (select_actions_update): "Save to
	Channel" makes sense without a selection also, so don't set it
	insensitive.
2004-06-08 23:07:45 +00:00
Sven Neumann b21932ddd7 the glob() function is not available on Win32 and also isn't necessarily
2004-06-07  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/glob.c: the glob() function is not available on
	Win32 and also isn't necessarily UTF-8 safe. Started to add an
	alternative implementation. Right now there's just some code taken
	from GTK+ (an UTF-8 save fnmatch() implementation) and the plug-in
	does nothing useful. I will add some stripped-down glob code based
	on the code in glibc later.
2004-06-07 18:47:59 +00:00
Michael Natterer 49e3657a06 don't set layer->mask's offsets. It is wrong because
2004-06-07  Michael Natterer  <mitch@gimp.org>

	* app/core/gimplayer.c (gimp_layer_set_tiles): don't set
	layer->mask's offsets. It is wrong because GimpDrawable::set_tiles()
	is a lowlevel function which is used by stuff like scale and
	resize which keep the mask in sync explicitely and don't expect it
	to be moved in the middle of chaining up. Fixes bug #143860.
2004-06-07 15:13:54 +00:00
Michael Natterer 7654712d22 app/actions/view-actions.c added separate callback for "view-zoom-other"
2004-06-07  Michael Natterer  <mitch@gimp.org>

	* app/actions/view-actions.c
	* app/actions/view-commands.[ch]: added separate callback for
	"view-zoom-other" and connect GtkAction::activate manually so
	"Other..." can be selected even if it's the active item in the
	zoom radio group. Fixes bug #143850.
2004-06-07 14:04:50 +00:00
Sven Neumann a8c5c25754 fixed a typo.
2004-06-07  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/tileit.c (tileit_dialog): fixed a typo.
2004-06-07 11:24:28 +00:00
Sven Neumann e5a0ae9b1b sort the menus by the translated menu path stripped from underscores.
2004-06-07  Sven Neumann  <sven@gimp.org>

	* app/menus/plug-in-menus.c (plug_in_menus_setup): sort the menus
	by the translated menu path stripped from underscores.
2004-06-07 10:45:05 +00:00
Sven Neumann 9a2660551c fixed a stupid cut'n'paste bug I introduced yesterday.
2004-06-06  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/gauss.c (gauss): fixed a stupid cut'n'paste bug
	I introduced yesterday.
2004-06-06 15:42:57 +00:00
Sven Neumann 6c616c35f0 register the menu entry the new way and install a mnemonic for Gaussian
2004-06-06  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/gauss.c (query): register the menu entry the new
	way and install a mnemonic for Gaussian Blur.
2004-06-06 11:07:08 +00:00
Sven Neumann 9a0d74f1cf applied a patch from Henrik Brix Andersen that tells the user that Curve
2004-06-05  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/curve_bend.c: applied a patch from Henrik Brix
	Andersen that tells the user that Curve Bend cannot operate on
	layers with masks instead of silently applying the mask
	(bug #134748).
2004-06-05 19:22:46 +00:00
Sven Neumann d1d565ba83 plug-ins/common/plugin-defs.pl plug-ins/common/Makefile.am
2004-06-05  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/plugin-defs.pl
	* plug-ins/common/Makefile.am
	* plug-ins/common/gauss_iir.c
	* plug-ins/common/gauss_rle.c: removed the two gaussian blur
	plug-ins...

	* plug-ins/common/gauss.c: and added a merged version done by
	William Skaggs. Fixes bug #134088.
2004-06-05 19:13:36 +00:00
Sven Neumann 41d9014d99 applied a patch from Philip Lafleur that makes the plug-in handle images
2004-06-05  Sven Neumann  <sven@gimp.org>

	* plug-ins/sgi/sgi.c: applied a patch from Philip Lafleur that
	makes the plug-in handle images with more than 4 channels. At the
	moment the extra information is discarded (bug #143673).
2004-06-05 18:46:05 +00:00
Sven Neumann 1165019859 applied a modified patch from Geert Jordaens that adds a preview to the
2004-06-05  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/unsharp.c: applied a modified patch from Geert
	Jordaens that adds a preview to the Unsharp Mask plug-in. Fixes
	bug #140974.
2004-06-05 17:13:21 +00:00
Sven Neumann 8ce95ff6d5 app/paint/gimppaintcore.c app/paint-funcs/paint-funcs-generic.h applied a
2004-06-05  Sven Neumann  <sven@gimp.org>

	* app/paint/gimppaintcore.c
	* app/paint-funcs/paint-funcs-generic.h
	* app/paint-funcs/paint-funcs.[ch]: applied a patch from Philip
	Lafleur that changes the way that paint is applied during a paint
	stroke. Fixes bug #124225.
2004-06-05 16:21:41 +00:00
Sven Neumann 94ca613230 plug-ins/common/Makefile.am plug-ins/common/plugin-defs.pl added a simple
2004-06-05  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/Makefile.am
	* plug-ins/common/plugin-defs.pl
	* plug-ins/common/glob.c: added a simple glob plug-in based on
	some old code by George Hartz. This plug-in is very useful when
	you need to do batch processing, especially from Script-Fu.
	Fixes bug #143661.
2004-06-05 14:35:43 +00:00
Sven Neumann ae24e1fab2 applied a patch from David Gowers that makes the gradient editor display
2004-06-05  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpgradienteditor.c: applied a patch from David
	Gowers that makes the gradient editor display the perceptual
	intensity of the color under the cursor (bug #135037).
2004-06-05 11:14:38 +00:00
Sven Neumann 6982f75755 applied a modifed patch from Yeti that adds a preview to the Solid Noise
2004-06-05  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/snoise.c: applied a modifed patch from Yeti that
	adds a preview to the Solid Noise plug-in (bug #142587).
2004-06-05 10:52:47 +00:00
Sven Neumann 7dc1697f96 save the proper value for type of alpha channel. Fixes bug #143522; patch
2004-06-05  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/tiff.c: save the proper value for type of alpha
	channel. Fixes bug #143522; patch by Philip Lafleur.
2004-06-05 10:27:47 +00:00
Manish Singh bbf9e45a69 update call to prefs_spin_button_add for num-processors too.
2004-06-05  Manish Singh  <yosh@gimp.org>

        * app/gui/preferences-dialog.c (prefs_dialog_new): update call
        to prefs_spin_button_add for num-processors too.
2004-06-05 07:22:04 +00:00
Sven Neumann 686d431d48 typo 2004-06-05 01:52:17 +00:00
Sven Neumann ef2df33f9e left align toggle buttons.
2004-06-05  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/script-fu-scripts.c (script_fu_interface):
	left align toggle buttons.
2004-06-05 01:51:49 +00:00
Sven Neumann 3cc11e1b1a updated the (still unused) unused text transformation code.
2004-06-05  Sven Neumann  <sven@gimp.org>

	* app/text/gimptextlayer-transform.[ch]: updated the (still unused)
	unused text transformation code.

	* app/text/gimptext-bitmap.c: removed a redundant transformation.
2004-06-04 23:42:05 +00:00
Michael Natterer 714d63fcda cursors/Makefile.am cursors/cursor-none.png new empty cursor images.
2004-06-05  Michael Natterer  <mitch@gimp.org>

	* cursors/Makefile.am
	* cursors/cursor-none.png
	* cursors/xbm/cursor-none.xbm: new empty cursor images.

	* app/config/gimpdisplayconfig.[ch]
	* app/config/gimprc-blurbs.h
	* app/widgets/widgets-enums.h
	* app/widgets/gimpcursor.c
	* app/display/gimpdisplayshell-cursor.c
	* app/tools/gimppainttool.[ch]
	* app/tools/gimpinktool.c
	* app/gui/preferences-dialog.c: applied patches from Philip
	Lafleur which implement hiding the cursor completely for paint
	tools. Changed the name of the config option from
	"hide-paint-tool-cursor" to "show-paint-tool-cursor" and default
	to TRUE because this needs the brush outline being visible while
	painting to be really usable. Fixes bug #132163.

	* app/widgets/widgets-enums.h: renamed all GimpCursorType and
	GimpToolCursorType enum values to GIMP_CURSOR_* and
	GIMP_TOOL_CURSOR_*.

	* app/widgets/gimpcursor.c
	* app/display/gimpdisplayshell-callbacks.c
	* app/display/gimpdisplayshell-cursor.c
	* app/tools/gimp*tool.c; changed accordingly.
2004-06-04 23:08:29 +00:00
Michael Natterer d0f9de48d0 changed create_cursor_foo() utility functions to get_cursor_foo() and use
2004-06-04  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpcursor.c: changed create_cursor_foo() utility
	functions to get_cursor_foo() and use them as accessors instead of
	using cursor->member. Use gdk_pixbuf_copy() instead of compositing
	the initial image onto an empty pixbuf.
2004-06-04 19:03:49 +00:00
Sven Neumann aadd9e03aa set the focus on the text area.
2004-06-04  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimptexteditor.c (gimp_text_editor_new): set the
	focus on the text area.
2004-06-04 18:17:50 +00:00
Sven Neumann de1ed0a379 allow to move a text layer using the cursor keys.
2004-06-04  Sven Neumann  <sven@gimp.org>

	* app/tools/gimptexttool.c (gimp_text_tool_class_init): allow to
	move a text layer using the cursor keys.
2004-06-04 17:51:32 +00:00
Michael Natterer 8c2fbfc2f6 removed...
2004-06-04  Michael Natterer  <mitch@gimp.org>

	* cursors/*.xbm: removed...

	* cursors/xbm/*.xbm: ...and added here instead. Renamed them
	all to match the PNG file names.

	* cursors/Makefile.am: changed accordingly.

	* app/widget/gimpcursor.c: ditto. Merged the two cursor creating
	functions again because they duplicated too much code.
2004-06-04 12:10:13 +00:00
Sven Neumann d714307f9a populate the tree with collation keys and use strcmp() instead of
2004-06-04  Sven Neumann  <sven@gimp.org>

	* app/menus/plug-in-menus.c (plug_in_menus_setup): populate the
	tree with collation keys and use strcmp() instead of
	g_utf8_collate() as the tree's sort function.
2004-06-04 11:47:15 +00:00
Sven Neumann 0b982011ac applied a patch by Philip Lafleur that changes the default to FALSE. Fixes
2004-06-04  Sven Neumann  <sven@gimp.org>

	* app/paint/gimppaintoptions.c (DEFAULT_PRESSURE_PRESSURE):
	applied a patch by Philip Lafleur that changes the default to
	FALSE. Fixes bug #143626.
2004-06-04 09:47:06 +00:00
Michael Natterer aec32205c8 use gtk_widget_size_request() instead of _get_child_requisition() because
2004-06-03  Michael Natterer  <mitch@gimpmp.org>

	* app/widgets/gimptoolbox.c (gimp_toolbox_size_allocate): use
	gtk_widget_size_request() instead of _get_child_requisition()
	because we need to know the size of the toolbox' areas
	even if they are invisible. Fixes SIGFPE spotted by Jimmac.
2004-06-03 16:36:52 +00:00
Michael Natterer a2955426b2 some cleanup. Make the tool_cursor and cursor_modifier components slightly
2004-06-03  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpcursor.c: some cleanup. Make the tool_cursor
	and cursor_modifier components slightly transparent.

	* cursors/cursor-mouse.png: was the wrong image.
2004-06-03 14:03:54 +00:00
Michael Natterer 5c46556dd3 cursors/Makefile.am added PNG version of all cursors.
2004-06-03  Michael Natterer  <mitch@gimp.org>

	* cursors/Makefile.am
	* cursors/*.png: added PNG version of all cursors.

	* cursors/gimp-tool-cursors.xcf: reordered and renamed all layers
	to match the new PNG filenames.

	* app/widgets/gimpcursor.[ch]: create cursors with alpha and color
	if the GdkDisplay supports it. Fall back to the old stuff
	otherwise.
2004-06-03 12:36:02 +00:00
Sven Neumann 506c4c7101 if a Title is set, use that as the pattern name.
2004-06-03  Sven Neumann  <sven@gimp.org>

	* app/core/gimppattern.c (gimp_pattern_load_pixbuf): if a Title is
	set, use that as the pattern name.
2004-06-03 12:01:17 +00:00
Sven Neumann 532d42d012 removed commented-out message.
2004-06-03  Sven Neumann  <sven@gimp.org>

	* app/core/gimpdatafactory.c (gimp_data_factory_load_data):
	removed commented-out message.

	* app/core/gimppattern.[ch]: fixed handling of errors and PNG
	comments in new pattern loader. Renamed functions for consistency
	with other data loaders.

	* app/core/gimp.c: changed accordingly.
2004-06-03 11:34:51 +00:00
Dave Neary d088fd3fe1 Add support for GdkPixbuf patterns, so now all of png, jpex, pnm, xbm,
2004-06-03  Dave Neary  <bolsh@gimp.org>

        * app/core/gimp.c:
        * app/core/gimpdatafactory.c:
        * app/core/gimppattern.[ch]: Add support for GdkPixbuf patterns,
        so now all of png, jpex, pnm, xbm, bmp, gif, ico, pcx, ras, tga,
        xpm and tiff can be used for patterns.
2004-06-03 11:03:53 +00:00
Michael Natterer 421b2a0d0e added alternative actions "vectors-selection-from-vectors" and
2004-06-03  Michael Natterer  <mitch@gimp.org>

	* app/actions/vectors-actions.c: added alternative actions
	"vectors-selection-from-vectors" and
	"vectors-selection-to-vectors-short" with different labels suited
	for the "Select" menu.

	* app/actions/select-actions.c: removed "select-from-vectors"
	and "select-to-vectors" (to vectors was crashing anyway).

	* app/actions/select-commands.[ch]: removed
	select_from_vectors_cmd_callback(). Fixes code dupliction.

	* menus/image-menu.xml.in
	* menus/selection-editor-menu.xml: changed accordingly.
2004-06-03 09:47:05 +00:00
Michael Natterer 1d31d62c30 use the newly added GimpGradient API to set the segment's handles instead
2004-06-03  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpgradienteditor.c (control_motion): use the newly
	added GimpGradient API to set the segment's handles instead of
	setting the values directly. Dirties the gradient correctly and
	makes the preview update instantly again. Fixes bug #143605.
2004-06-02 22:50:15 +00:00
Sven Neumann 7bfee0413d check for NULL pointer before passing it to g_utf8_normalize(). Just a
2004-06-03  Sven Neumann  <sven@gimp.org>

	* app/gui/file-open-location-dialog.c
	(file_open_location_completion): check for NULL pointer before
	passing it to g_utf8_normalize(). Just a workaround for a problem
	in GimpContainerView.
2004-06-02 22:08:34 +00:00
Sven Neumann 28eaad7d65 more updates.
2004-06-02  Sven Neumann  <sven@gimp.org>

	* INSTALL: more updates.
2004-06-02 21:29:13 +00:00
Sven Neumann f3c3bc22c3 Made 2.1.0 development release.
2004-06-02  Sven Neumann  <sven@gimp.org>

	* Made 2.1.0 development release.
2004-06-02 18:57:57 +00:00
Sven Neumann 62b59db976 app/display/gimpdisplayshell-scale.c app/gui/info-window.c
2004-06-02  Sven Neumann  <sven@gimp.org>

	* app/display/gimpdisplayshell-scale.c
	* app/gui/info-window.c
	* app/gui/preferences-dialog.c
	* app/gui/resize-dialog.c
	* app/tools/gimpcolorbalancetool.c
	* app/tools/gimpcurvestool.c
	* app/tools/gimphuesaturationtool.c
	* app/tools/gimplevelstool.c
	* app/tools/gimpthresholdtool.c
	* app/widgets/gimpdockable.c
	* app/widgets/gimpfiledialog.c
	* app/widgets/gimpgradienteditor.c
	* app/widgets/gimphistogrambox.c
	* app/widgets/gimplayertreeview.c
	* app/widgets/gimpstrokeeditor.c: tweaked some spacings for
	consistency and better HIG compliance.
2004-06-02 17:56:02 +00:00
Michael Natterer 6d91f4c968 set_blending_function() and set_coloring_type() work on segment ranges,
2004-06-02  Michael Natterer  <mitch@gimp.org>

	* tools/pdbgen/pdb/gradient_edit.pdb: set_blending_function() and
	set_coloring_type() work on segment ranges, renamed them
	accordingly. Spotted by Shlomi Fish.

	* app/pdb/gradient_edit_cmds.c
	* libgimp/gimpgradientedit_pdb.[ch]: regenerated.
2004-06-02 17:45:56 +00:00
Michael Natterer 61116ebb05 removed utility funtion gimp_dnd_open_files().
2004-06-02  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpdnd.[ch]: removed utility funtion
	gimp_dnd_open_files().

	* app/widgets/gimptoolbox-dnd.c: added gimp_toolbox_drop_files()
	instead.

	* app/display/gimpdisplayshell-dnd.c (gimp_display_shell_drop_files):
	show the error message if opening a dropped file fails.
2004-06-02 17:35:55 +00:00
Sven Neumann f2f3c448c2 plugged a memory leak.
2004-06-02  Sven Neumann  <sven@gimp.org>

	* libgimpthumb/gimpthumbnail.c: plugged a memory leak.
2004-06-02 17:13:26 +00:00
Michael Natterer b6beebcc00 removed enum GimpDndType...
2004-06-02  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpdnd.h: removed enum GimpDndType...

	* app/widgets/widgets-enums.h: ...and added it here.

	* app/widgets/gimpdnd.c: added more g_return_if_fail(). Allow
	all gimp_dnd_foo_dest_add() functions to be called without
	callback (just add the target if callback is NULL).

	(gimp_dnd_open_files): removed the checks for validity of the
	passed filenames/uris...

	(gimp_dnd_set_file_data): ...and added it here so all callbacks
	get an already sanitized list of strings.
2004-06-02 16:56:00 +00:00
Sven Neumann d29a222fe6 app/actions/Makefile.am (EXTRA_DIST) removed makefile.msc until they have
2004-06-02  Sven Neumann  <sven@gimp.org>

	* app/actions/Makefile.am (EXTRA_DIST)
	* app/menus/Makefile.am (EXTRA_DIST): removed makefile.msc until
	they have been added.
2004-06-02 14:00:39 +00:00
Sven Neumann 35bad8319d create the hash table when inserting items; removes redundant
2004-06-02  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpcontainerview.c: create the hash table when
	inserting items; removes redundant create/destroy cycles and plugs
	a memory leak.
2004-06-02 12:49:16 +00:00
Sven Neumann efd6c6b56c added more contributors 2004-06-02 11:11:29 +00:00
Sven Neumann 5085518763 updated for gimp-2.1. Suggest to use gimp-print version 4.2.7-pre1 in case
2004-06-02  Sven Neumann  <sven@gimp.org>

	* INSTALL: updated for gimp-2.1. Suggest to use gimp-print
	version 4.2.7-pre1 in case of problems (see bug #138273).
2004-06-02 11:09:31 +00:00
Michael Natterer 4e9c58a589 copy the merged layer, not the first one. Preserve the type of the layer
2004-06-02  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpdisplayshell-dnd.c
	(gimp_display_shell_drop_files): copy the merged layer, not the
	first one. Preserve the type of the layer to make e.g. dropping an
	XCF with a single text layer work.
2004-06-01 23:49:50 +00:00
Sven Neumann 86d153f869 NEWS updated.
2004-06-02  Sven Neumann  <sven@gimp.org>

	* NEWS
	* README: updated.
2004-06-01 23:25:53 +00:00
Michael Natterer ff2f6eb09f accept file/uri drops.
2004-06-02  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpdisplayshell.c (gimp_display_shell_init): accept
	file/uri drops.

	* app/display/gimpdisplayshell-dnd.[ch]
	(gimp_display_shell_drop_files): open any kind of image and turn
	it into a single layer which is added to the image (suggested by
	Antenne Springborn).
2004-06-01 23:14:28 +00:00
Sven Neumann 133a7098df tools/pdbgen/pdb/gradient_edit.pdb mark new API as new using $since.
2004-06-02  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/pdb/gradient_edit.pdb
	* tools/pdbgen/pdb/gradients.pdb: mark new API as new using $since.

	* libgimp/gimpgradientedit_pdb.c
	* libgimp/gimpgradients_pdb.c: regenerated.
2004-06-01 22:50:37 +00:00
Michael Natterer 1799caae84 forgot two more s/int32/enum/.
2004-06-02  Michael Natterer  <mitch@gimp.org>

	* tools/pdbgen/pdb/gradient_edit.pdb: forgot two more s/int32/enum/.

	* app/pdb/gradient_edit_cmds.c
	* libgimp/gimpgradientedit_pdb.[ch]: regenerated.
2004-06-01 22:16:54 +00:00
Michael Natterer 739a37e633 forgot bug number. 2004-06-01 22:08:19 +00:00
Sven Neumann c509204b7d tools/pdbgen/pdb/image.pdb app/pdb/image_cmds.c reverted changes I did to
2004-06-01  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/pdb/image.pdb
	* app/pdb/image_cmds.c
	* app/core/gimpimage.[ch]: reverted changes I did to the image
	unit earlier. As in 2.0, it will continue to not accept pixels.
	This makes the PDB API and the XCF format compatible again and
	fixes bug #142961 (and to some extent bug #137704).

	* app/core/Makefile.am
	* app/core/gimpimage-unit.[ch]: removed these files. The
	convenience accessors defined here aren't commonly used any
	longer.

	* app/display/gimpdisplay.[ch]
	* app/display/gimpdisplayshell.[ch]: added a unit parameter to
	gimp_display_new(). Made "unit" and "scale" properties of
	GimpDisplayShell.

	* app/actions/image-commands.c
	* app/actions/images-commands.c
	* app/actions/layers-commands.c
	* app/actions/select-commands.c
	* app/actions/view-commands.c
	* app/core/gimp-edit.c
	* app/core/gimp.[ch]
	* app/core/gimptemplate.c
	* app/display/gimpdisplayshell-handlers.c
	* app/display/gimpdisplayshell-scale.c
	* app/display/gimpdisplayshell-title.c
	* app/display/gimpstatusbar.c
	* app/file/file-open.c
	* app/gui/gui-vtable.c
	* app/gui/info-window.c
	* app/gui/offset-dialog.c
	* app/gui/resize-dialog.[ch]
	* app/pdb/display_cmds.c
	* app/tools/gimpcroptool.c
	* app/tools/gimpmeasuretool.c
	* app/tools/gimppainttool.c
	* app/tools/gimprectselecttool.c
	* app/tools/gimprotatetool.c
	* app/tools/gimpscaletool.c
	* app/vectors/gimpvectors-export.c
	* app/widgets/gimptoolbox-dnd.c
	* tools/pdbgen/pdb/display.pdb: changed accordingly. Use the
	display unit where the image unit was used before.
2004-06-01 22:04:20 +00:00
Michael Natterer 20b1612966 use enums instead of integers, cleanup.
2004-06-01  Michael Natterer  <mitch@gimp.org>

	* tools/pdbgen/pdb/gradient_edit.pdb: use enums instead of
	integers, cleanup.

	* app/pdb/gradient_edit_cmds.c
	* libgimp/gimpgradientedit_pdb.[ch]: regenerated.
2004-06-01 21:58:08 +00:00
Michael Natterer 149888b5d4 added new function gimp_data_factory_data_delete().
2004-06-01  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpdatafactory.[ch]: added new function
	gimp_data_factory_data_delete().

	* app/actions/data-commands.c (data_delete_callback): use it.

	* tools/pdbgen/pdb/gradients.pdb: applied (slightly modified)
	patch from Shlomi Fish which adds PDB wrappers to create, delete,
	duplicate and rename gradients.

	* app/pdb/gradients_cmds.c
	* app/pdb/internal_procs.c
	* libgimp/gimpgradients_pdb.[ch]: regenerated.
2004-06-01 21:37:36 +00:00
Michael Natterer c399ae1fe9 renamed the values of the GimpGradientSegment* enums from GIMP_GRAD_* to
2004-06-01  Michael Natterer  <mitch@gimp.org>

	* app/core/core-enums.h: renamed the values of the
	GimpGradientSegment* enums from GIMP_GRAD_* to
	GIMP_GRADIENT_SEGMENT_* because they are exported now.

	* app/core/gimp-gradients.c
	* app/core/gimpgradient.c
	* app/actions/gradient-editor-actions.c: changed accordingly.

	* libgimp/gimpenums.h
	* plug-ins/pygimp/gimpenums.py
	* plug-ins/script-fu/script-fu-constants.c
	* tools/pdbgen/enums.pl: regenerated.
2004-06-01 18:49:50 +00:00
Sven Neumann 88da8b10cc don't call gtk_entry_set_text() with a NULL text.
2004-06-01  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/tiff.c: don't call gtk_entry_set_text() with a
	NULL text.
2004-06-01 17:15:56 +00:00
Michael Natterer 572577b262 app/widgets/gimpcontainertreeview-dnd.c some cleanup in the tree view DND
2004-06-01  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpcontainertreeview-dnd.c
	* app/widgets/gimpitemtreeview.c: some cleanup in the tree view
	DND code.
2004-06-01 15:14:45 +00:00
Michael Natterer f826916828 added a horrible hack that sets the paned's position after the first
2004-06-01  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpsessioninfo.c (gimp_session_info_restore): added
	a horrible hack that sets the paned's position after the first
	"size-allocate" after "map". Makes position remembering work for
	the toolbox and fixes bug #142697.

	* app/widgets/gimpdockable.[ch]: added new function
	gimp_dockable_set_tab_style()

	* app/actions/dockable-commands.c (dockable_tab_style_cmd_callback)
	* app/widgets/gimpsessioninfo.c (gimp_session_info_restore):
	use gimp_dockable_set_tab_style().
2004-06-01 12:31:44 +00:00