Commit Graph

8496 Commits

Author SHA1 Message Date
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