Commit Graph

6640 Commits

Author SHA1 Message Date
Sven Neumann 4db3b93ffc minor change to the PDB docs.
2004-11-27  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/pdb/drawable.pdb: minor change to the PDB docs.

	* libgimp/gimpdrawable_pdb.c
	* tools/pdbgen/pdb/drawable.pdb: regenerated.
2004-11-27 11:25:36 +00:00
Sven Neumann ec5a467857 fixed docs for gimp_drawable_type_with_alpha().
2004-11-26  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/pdb/drawable.pdb: fixed docs for
	gimp_drawable_type_with_alpha().

	* app/pdb/drawable_cmds.c
	* libgimp/gimpdrawable_pdb.c: regenerated.
2004-11-26 18:16:48 +00:00
Sven Neumann 2dcbec8418 only show the Incremental toggle for tools that use it (bug #159306).
2004-11-26  Sven Neumann  <sven@gimp.org>

	* app/tools/gimppaintoptions-gui.c (gimp_paint_options_gui): only
	show the Incremental toggle for tools that use it (bug #159306).
2004-11-26 15:14:21 +00:00
Sven Neumann 3e56a07190 don't add documents w/o a name to the list. Fixes bug #159510.
2004-11-26  Sven Neumann  <sven@gimp.org>

	* app/core/gimpdocumentlist.c (gimp_document_list_deserialize):
	don't add documents w/o a name to the list. Fixes bug #159510.

	* app/core/gimpdrawable.c (gimp_drawable_resize): extended the
	check to take the offsets into account as well.
2004-11-26 14:45:10 +00:00
Michael Natterer cdb165874f if the active display becomes NULL (e.g. by closing a view), don't leave
2004-11-24  Michael Natterer  <mitch@gimp.org>

	* app/gui/gui.c (gui_display_changed): if the active display
	becomes NULL (e.g. by closing a view), don't leave the user
	context with an image but no display. Instead, try to find another
	display of the same image instead and if that fails set the image
	to NULL.

	Prevents the various foo_actions_update() functions from being
	called with a NULL display while there is still an active image in
	the context.

	Fixes bug #159304.

	(Removed #warning about being misplaced from that function because
	it's a typical piece of ugly glue code that belongs exactly here).
2004-11-24 16:41:52 +00:00
Michael Natterer 6d63d50040 guarded the whole header with GIMP_ENABLE_CONTROLLER_UNDER_CONSTRUCTION
2004-11-24  Michael Natterer  <mitch@gimp.org>

	* libgimpwidgets/gimpcontroller.[ch]: guarded the whole header
	with GIMP_ENABLE_CONTROLLER_UNDER_CONSTRUCTION because it's no
	fixed API yet. Added a "state" property bacause "name" was abused
	as the controller's state. Added "help_domain" to the controller
	class.

	* libgimpwidgets/gimpwidgets.h: don't include gimpcontroller.h

	* modules/controller_linux_input.c
	* modules/controller_midi.c: set the "name" property to the name
	retrieved from the device, or to a default string if no name is
	available. Store the status in the "state" property. Added and
	changed some strings, but it's better to have the controller
	strings untranslated than to have no tooltips at all or misleading
	labels.

	* app/widgets/gimpcontrollerkeyboard.c
	* app/widgets/gimpcontrollerwheel.c: set default strings for both.

	* app/widgets/gimpcontrollereditor.c: added a GUI for the "state"
	property.

	* app/widgets/gimpcontrollerkeyboard.h
	* app/widgets/gimpcontrollerwheel.h
	* app/widgets/gimpcontrollerinfo.c
	* app/widgets/gimpcontrollers.c: #define
	GIMP_ENABLE_CONTROLLER_UNDER_CONSTRUCTION (just as in all files
	above).

	* app/widgets/gimphelp-ids.h: added the IDs of all controller
	modules and also of all other modules. The defines are not
	actually used, but this file is the canonical place to collect all
	the core's help IDs.
2004-11-24 02:17:12 +00:00
Sven Neumann 7eed9323db app/core/gimp-templates.[ch] merge the migrated user templaterc with the
2004-11-23  Sven Neumann  <sven@gimp.org>

	* app/core/gimp-templates.[ch]
	* app/dialogs/user-install-dialog.c: merge the migrated user
	templaterc with the system templaterc so the users who have used
	gimp-2.0 before get our changes to the default templates.
2004-11-23 21:00:15 +00:00
Michael Natterer d8a5ca6c1b added new function gimp_toggle_button_set_visible() which can be used as
2004-11-23  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpwidgets-utils.[ch]: added new function
	gimp_toggle_button_set_visible() which can be used as "toggled"
	callback on a GtkToggleButton and sets a widget (in)visible
	according to the toggle's "active" state.

	* app/tools/gimpblendoptions.c
	* app/tools/gimppaintoptions-gui.c
	* app/tools/gimpselectionoptions.c: use it to hide (rather than
	just insensitize) the seldomly used "Feather edges", "Autoshrink
	selection", "Adaptive supersampling", "Fade out" and "Use color
	from gradient" widgets when their enabling toggle is unchecked.
	Makes the affected tool options much less crowded and noisy in
	their default appearance. Fixes bug #159008.
2004-11-23 17:01:51 +00:00
Michael Natterer 518ab86b64 create dynamic sub-menus using a separate, ui-manager-global merge_id
2004-11-23  Michael Natterer  <mitch@gimp.org>

	* app/menus/plug-in-menus.c (plug_in_menus_add_proc): create
	dynamic sub-menus using a separate, ui-manager-global merge_id
	instead of the procedure's merge_id. Has the effect that the ui
	manager keeps around these sub-menus forever, even if the
	procedure that initially registered them is unregistered.
	Fixes menu ordering after Script-Fu->Refresh.
2004-11-23 14:35:45 +00:00
Michael Natterer bd57700685 cosmetics, untabified.
2004-11-23  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpparasitelist.c: cosmetics, untabified.

	* libgimpbase/gimpparasiteio.[ch]: added g_return_if_fail()'s
	to all functions.

	(gimp_pixpipe_params_parse): changed "gchar*" param to "const
	gchar*" (sortof API change, but these files are most probably only
	used by GIMP itself). Still uses strtok() on the internal copy,
	but at least not on the passed string.

	* plug-ins/common/csource.c
	* plug-ins/common/gif.c
	* plug-ins/common/gih.c
	* plug-ins/common/jpeg.c
	* plug-ins/common/png.c
	* plug-ins/common/tiff.c: use parasite getters instead of
	accessing the scruct members directly. Always use g_strndup()
	instead of just g_strdup() to get strings stored in parasites
	because there is no guarantee that they are nul-terminated.
2004-11-23 14:28:43 +00:00
Sven Neumann f653295e5d do nothing if the size doesn't change. This keeps text layers from being
2004-11-23  Sven Neumann  <sven@gimp.org>

	* app/core/gimpdrawable.c (gimp_drawable_resize): do nothing if
	the size doesn't change. This keeps text layers from being
	modified when an image is cropped and the layer is entirely inside
	the cropped area.

	* menus/image-menu.xml.in: put the Quit item back for now. We
	should think about this again in the next development cycle.
2004-11-23 09:32:54 +00:00
Michael Natterer 69ead3955c always create the event mapping table. Fixes tons of warnings and
2004-11-22  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpcontrollerinfo.c (gimp_controller_info_init):
	always create the event mapping table. Fixes tons of warnings and
	non-functional controller mapping dialog when an empty controller
	was deserialized from controllerrc. Spotted by drc.
2004-11-22 21:46:23 +00:00
Sven Neumann 6f4d9df019 call base_exit() before quitting the application using exit(). Fixes bug
2004-11-22  Sven Neumann  <sven@gimp.org>

	* app/app_procs.c (app_exit_after_callback): call base_exit()
	before quitting the application using exit(). Fixes bug #159019.

	* app/base/tile-swap.c: moved the warning about a non-empty swap
	file into #ifdef GIMP_UNSTABLE ... #endif.
2004-11-22 21:29:41 +00:00
Michael Natterer 512b1120c4 added a "menu_factory" parameter instead of trying to get it from the
2004-11-22  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimptextoptions.[ch] (gimp_text_options_editor_new):
	added a "menu_factory" parameter instead of trying to get it from
	the toplevel GimpDock (which does not exists if the tool options
	dialog does not exist). Fixes bug #159071.

	* app/tools/gimptexttool.c (gimp_text_tool_editor): pass the
	menu_factory.

	* app/dialogs/dialogs.c (dialogs_init): pass the global menu
	factory also when constructing the "toplevel" dialog factory so
	the above works.
2004-11-22 16:03:54 +00:00
Michael Natterer 20ac70e76f use g_strndup() instead of g_strdup() if a length was passed.
2004-11-22  Michael Natterer  <mitch@gimp.org>

	* libgimpbase/gimputils.c (gimp_any_to_utf8): use g_strndup()
	instead of g_strdup() if a length was passed.

	* app/dialogs/info-window.c: g_strndup() the comment parasite's
	data and pass -1 as length to gimp_any_to_utf8() so we don't
	encounter the questionable (buggy?) behavior of g_utf8_validate()
	to fail upon finding '\0' within the "length" passed.
	Fixes bug #159051.
2004-11-22 15:25:50 +00:00
Sven Neumann 52eea3d4ee changed border-size of GimpContainerEntry to 0.
2004-11-22  Sven Neumann  <sven@gimp.org>

	* app/dialogs/file-open-location-dialog.c: changed border-size of
	GimpContainerEntry to 0.
2004-11-21 23:36:59 +00:00
Hans Breuer 696663a611 [new file] app/dialogs/Makefile.am : added to EXTRA_DIST
2004-09-21  Hans Breuer  <hans@breuer.org>

	* app/dialogs/makefile.msc : [new file]
	  app/dialogs/Makefile.am : added to EXTRA_DIST

	* **/makefile.msc app/gimpcore.def : updated

	* app/gimp.rc : let wilber be first

	* app/widgets/gimppropwidgets.c : msvc6 can't cast uint64 either

	* libgimpbase/gimpwin32-io.h : make up recent loss of ftruncate in GLib

	* libgimpthumbnail/gimpthumbnail.c : <process.h> for getpid() on win32

	* plug-ins/helpbrowser/dialog.c : include gimpwin32-io.h

	* plug-ins/script-fu/siodwrapper.c plug-ins/script-fu/scrip-fu.c : there
	is no script-fu-server on win32
2004-11-21 14:22:45 +00:00
Michael Natterer ebf18dce39 tools/pdbgen/lib.pl added support for deprecated procedures without any
2004-11-19  Michael Natterer  <mitch@gimp.org>

	* tools/pdbgen/lib.pl
	* tools/pdbgen/stddefs.pdb: added support for deprecated procedures
	without any replacement.

	* app/plug-in/plug-in-message.c (plug_in_handle_proc_run): added
	a special warning for procedures without replacement.

	* tools/pdbgen/pdb/drawable.pdb: deprecated drawable_set_image()
	without any replacement and made it a nop (which fails if the
	passed image is different from the drawable's image). It's not
	needed any longer since 2.0 and moreover dangerous to use.

	* app/pdb/drawable_cmds.c
	* libgimp/gimpdrawable_pdb.[ch]: regenerated.

	* app/core/gimpitem.c (gimp_item_set_image): replaced assertion
	for gimp_item_is_floating() by !gimp_item_is_attached(). The
	former warned when adding a layer with already added mask to the
	image (which is a perfectly valid operation).
2004-11-19 12:38:34 +00:00
Sven Neumann 5c002d9b33 fixed check for number of return values.
2004-11-18  Sven Neumann  <sven@gimp.org>

	* app/file/file-open.c (file_open_thumbnail): fixed check for
	number of return values.
2004-11-18 21:31:20 +00:00
Sven Neumann 181c089a51 check the number of return values. Only retrieve width and height if the
2004-11-18  Sven Neumann  <sven@gimp.org>

	* app/file/file-open.c (file_open_thumbnail): check the number of
	return values. Only retrieve width and height if the thumbnail
	load procedure does actually provide such this information.

	* plug-ins/common/postscript.c: added a procedure to loads
	thumbnails.  For now it only renders the first page of the
	document at low resolution. It should be extended to load an
	embedded thumbnail if available.

	* plug-ins/common/jpeg.c
	* plug-ins/common/svg.c: no need to register a menu label for the
	thumbnail loaders. Allocate the return_vals array large enough to
	hold all return values.
2004-11-18 19:00:02 +00:00
Michael Natterer 567bb7b2db added boolean property "value-variable" which specifies if the
2004-11-18  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpenumaction.[ch]: added boolean property
	"value-variable" which specifies if the GimpEnumAction::selected()
	signal may be emitted with arbirtary values (value-variable = TRUE)
	or *only* with enum_action->value (value-variable = FALSE).

	* app/widgets/gimpactiongroup.[ch]: added "gboolean
	value_variable" to GimpEnumActionEntry and set it in
	gimp_action_group_add_enum_actions().

	* app/actions/channels-actions.c
	* app/actions/colormap-editor-actions.c
	* app/actions/context-actions.c
	* app/actions/drawable-actions.c
	* app/actions/edit-actions.c
	* app/actions/error-console-actions.c
	* app/actions/gradient-editor-actions.c
	* app/actions/image-actions.c
	* app/actions/layers-actions.c
	* app/actions/palette-editor-actions.c
	* app/actions/plug-in-actions.c
	* app/actions/vectors-actions.c
	* app/actions/view-actions.c: set "variable" to FALSE for all enum
	actions except those which are used with the GIMP_ACTION_SELECT_SET
	voodoo.

	* app/widgets/gimpcontrollers.c (gimp_controllers_event_mapped):
	fall back to gtk_action_activate() if the action specified in a
	GIMP_CONTROLLER_EVENT_VALUE mapping is not variable. Enables
	triggering of enum actions from GIMP_CONTROLLER_EVENT_VALUE events
	(like midi note-on and note-off).
2004-11-18 16:04:41 +00:00
Michael Natterer 30164f1be2 added back the .xcf.gz and .xcf.bz2 extensions because they are the only
2004-11-18  Michael Natterer  <mitch@gimp.org>

	* plug-ins/common/compressor.c (compressors): added back the
	.xcf.gz and .xcf.bz2 extensions because they are the only way
	to figure the special nature of this plug-in's extensions.

	* app/widgets/gimpfileprocview.[ch]: keep a list of "meta
	extensions" (extensions which have a '.' themselves).

	* app/widgets/gimpfiledialog.c (gimp_file_dialog_proc_changed):
	try to replace the whole extension if the last extension is one of
	the meta extensions kept by GimpFileProcView. Fixes bug #158377.
2004-11-18 11:50:25 +00:00
Michael Natterer b8344d519c The following fixes have no visible effect because nobody uses
2004-11-18  Michael Natterer  <mitch@gimp.org>

	The following fixes have no visible effect because nobody
	uses gimp_plugin_menu_register() on temp_procs yet:

	* app/actions/plug-in-actions.[ch]: added
	plug_in_actions_add_path() which just adds the actions needed for
	a given menu math, but not the procedure action itself.

	* app/gui/gui-vtable.c (gui_menus_create_entry): create the
	menu_path's actions using above function so adding of submenus to
	existing ui managers works.

	* tools/pdbgen/pdb/plug_in.pdb (plugin_menu_register_invoker):
	don't add a menu if "no_interface" is TRUE.

	* app/pdb/plug_in_cmds.c: regenerated.

	* plug-ins/script-fu/script-fu-scripts.c: pass untranslated
	menu_paths to the core, not translated ones. Don't store the
	scripts directly in the "script_list" tree but use a list of
	scripts per key because there can be identical keys for different
	scripts now. Fixed sorting of menu entries and menus.
2004-11-18 01:57:13 +00:00
Sven Neumann 9b01de6c28 added missing callbacks for the size entries. Needs some more work
2004-11-17  Sven Neumann  <sven@gimp.org>

	* app/dialogs/print-size-dialog.c: added missing callbacks for the
	size entries. Needs some more work though...
2004-11-17 21:07:10 +00:00
Michael Natterer d871be74bf Made plug-in menu registration work the same way for ordinary and
2004-11-17  Michael Natterer  <mitch@gimp.org>

	Made plug-in menu registration work the same way for ordinary and
	temporary procedures. Addresses bug #158117.

	* app/core/gimp-gui.[ch]: added "const gchar *menu_path" to
	gimp_menus_create_entry().

	* app/gui/gui-vtable.c (gui_menus_create_entry): if menu_path is
	NULL, behave as before and create an action and its menu entries
	for all the procedure's menu_paths. If it is non-NULL, skip action
	creation and create a menu entry just for that path.

	* app/plug-in/plug-ins.c (plug_ins_temp_proc_def_add): call
	gimp_menus_create_entry() with a NULL menu path and call it if
	proc_def->menu_paths *or* proc_def->menu_label is non-NULL, so
	it creates at least the procedure's action, even if it has
	no menu_path (yet).

	* tools/pdbgen/pdb/plug_in.pdb (plugin_menu_register): check both
	the list of procs and temp_procs when trying to register the
	entry.  Allow ordinary procedures and extensions to install stuff
	at query() and init() time and allow temp_procs to install stuff
	at any time.

	* app/pdb/plug_in_cmds.c: regenerated.
2004-11-17 14:51:50 +00:00
Manish Singh f12184a72e Hide SVG drop g_print under be_verbose.
2004-11-16  Manish Singh  <yosh@gimp.org>

        * app/widgets/gimpvectorstreeview.c: Hide SVG drop g_print under
        be_verbose.
2004-11-17 03:42:47 +00:00
Michael Natterer cd1960ad7d replaced the while(plug_in->temp_procs) "loop" which called
2004-11-17  Michael Natterer  <mitch@gimp.org>

	* app/plug-in/plug-in.c (plug_in_close): replaced the
	while(plug_in->temp_procs) "loop" which called
	plug_in_proc_frame_quit() by a real for()-loop iterating over the
	list of PlugInProcFrames, calling g_main_loop_quit() on each main
	loop. The old version did not unroll the stack but looped
	infinitely. Spotted by Yosh.
2004-11-17 01:38:07 +00:00
Michael Natterer fb87f44701 get rid of the gimp_fg_bg_editor_context_changed() callback and
2004-11-16  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpfgbgeditor.c: get rid of the
	gimp_fg_bg_editor_context_changed() callback and
	g_signal_connect_swapped() gtk_widget_queue_draw() directly.
2004-11-16 18:53:54 +00:00
Michael Natterer 1e4dc95ec2 implement GimpDockedInterface::set_context() and set the context of the
2004-11-16  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpchanneltreeview.c: implement
	GimpDockedInterface::set_context() and set the context of the
	embedded GimpComponentEditor. Fixes NULL-context crashes in
	action callbacks when invoked from the component editor.
	Spotted by Jimmac.

	Unrelated:

	* app/widgets/gimpitemtreeview.c: get rid of the
	gimp_item_tree_view_context_changed() callback and
	g_signal_connect_swapped() gimp_item_tree_view_set_image()
	directly.
2004-11-16 18:36:48 +00:00
Michael Natterer e856d58768 renamed the new drawable_foo_defaults() functions to
2004-11-16  Michael Natterer  <mitch@gimp.org>

	* tools/pdbgen/pdb/drawable_transform.pdb: renamed the new
	drawable_foo_defaults() functions to drawable_foo_default() to be
	consistent with paintbrush_default() and friends.

	* tools/pdbgen/pdb/transform_tools.pdb
	* libgimp/gimp.def: changed accordingly.

	* app/pdb/drawable_transform_cmds.c
	* app/pdb/transform_tools_cmds.c
	* libgimp/gimpdrawabletransform_pdb.[ch]
	* libgimp/gimptransformtools_pdb.c: regenerated.

	* plug-ins/script-fu/scripts/coolmetal-logo.scm
	* plug-ins/script-fu/scripts/image-structure.scm
	* plug-ins/script-fu/scripts/text-circle.scm: follow the API change.
2004-11-16 15:25:13 +00:00
Sven Neumann 01792f005f increased default tile-cache-size to 128MB.
2004-11-16  Sven Neumann  <sven@gimp.org>

	* app/config/gimpbaseconfig.c: increased default tile-cache-size
	to 128MB.

	* app/config/gimpcoreconfig.c: increased default undo size to 16MB.
2004-11-16 15:09:56 +00:00
Michael Natterer 4caf20c229 tools/pdbgen/pdb/image.pdb entirely removed the deprecated functions
2004-11-16  Michael Natterer  <mitch@gimp.org>

	* tools/pdbgen/pdb/image.pdb
	* tools/pdbgen/pdb/selection.pdb: entirely removed the deprecated
	functions "selection_clear", "image_set_cmap" and "image_get_cmap".

	* app/pdb/procedural_db.c: and added them to the compat hash table
	because they have undeprecated replacements with identical
	signature.

	* libgimp/gimpselection.[ch]: added gimp_selection_clear() here
	instead because we need the symbol in libgimp.

	* app/pdb/image_cmds.c
	* app/pdb/internal_procs.c
	* app/pdb/selection_cmds.c
	* libgimp/gimpselection_pdb.[ch]: regenerated.
2004-11-16 14:34:34 +00:00
Michael Natterer c0d9179492 removed redundant "gimage" parameter.
2004-11-16  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpitem-linked.[ch] (gimp_item_linked_get_list):
	removed redundant "gimage" parameter.

	* app/tools/gimpeditselectiontool.c: changed accordingly.
2004-11-16 13:52:04 +00:00
Michael Natterer 0d5df41904 app/core/gimpchannel-select.c app/core/gimpchannel.c
2004-11-16  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpchannel-select.c
	* app/core/gimpchannel.c
	* app/core/gimpdrawable-desaturate.c
	* app/core/gimpdrawable-equalize.c
	* app/core/gimpdrawable-histogram.c
	* app/core/gimpdrawable-invert.c
	* app/core/gimpdrawable-levels.c
	* app/core/gimpdrawable-offset.c
	* app/core/gimpdrawable-stroke.c
	* app/core/gimpdrawable-transform.c
	* app/core/gimpdrawable.c
	* app/core/gimpitem-linked.c
	* app/core/gimpitem.c
	* app/core/gimplayer.c
	* app/core/gimpselection.c
	* app/paint/gimppaintcore-stroke.c
	* app/text/gimptextlayer.c: in all functions which somehow
	(explicitely or implicitely) touch undo, either g_return_if_fail()
	on gimp_item_is_attached() or simply don't push an undo step if
	feasible (e.g. for simple stuff like layer opacity).

	* tools/pdbgen/pdb/color.pdb
	* tools/pdbgen/pdb/drawable.pdb
	* tools/pdbgen/pdb/image.pdb
	* tools/pdbgen/pdb/layer.pdb
	* tools/pdbgen/pdb/paint_tools.pdb: let PDB wrappers fail
	accordingly so they don't run into the assertions added above.

	* app/pdb/color_cmds.c
	* app/pdb/drawable_cmds.c
	* app/pdb/image_cmds.c
	* app/pdb/layer_cmds.c
	* app/pdb/paint_tools_cmds.c: regenerated.
2004-11-16 13:41:55 +00:00
Sven Neumann d4bf381c20 app/actions/file-commands.c app/dialogs/file-save-dialog.c
2004-11-16  Sven Neumann  <sven@gimp.org>

	* app/actions/file-commands.c
	* app/dialogs/file-save-dialog.c
	* app/file/file-save.[ch]
	* app/widgets/gimpfiledialog.[ch]: combined "set_uri_and_proc" and
	"set_image_clean" parameters into a single "save_a_copy"
	parameter.  When saving a copy, attach the used URI to the image and
	let the "Save a Copy" file chooser default to the last used value.
2004-11-16 13:37:36 +00:00
Sven Neumann c286aece5d limit the number of file extensions that are added to the file filter menu
2004-11-15  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpfiledialog.c (gimp_file_dialog_add_filters):
	limit the number of file extensions that are added to the file
	filter menu to keep the file dialog from growing too wide.
2004-11-15 19:33:24 +00:00
Philip Lafleur 04f7c55432 Further optimization of perspective tool preview - never calculate the
2004-11-15  Philip Lafleur  <plafleur@cvs.gnome.org>

	* app/display/gimpdisplayshell-preview.c: Further optimization of
	perspective tool preview - never calculate the same vertex more
	than once.
2004-11-15 15:22:45 +00:00
Sven Neumann fb0985a1c3 app/widgets/gimpfileprocview.c (gimp_file_proc_view_get_proc) better fix
2004-11-15  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpfileprocview.c (gimp_file_proc_view_get_proc)
	* app/widgets/gimpfiledialog.c (gimp_file_dialog_proc_changed):
	better fix for bug #158369.
2004-11-15 13:50:02 +00:00
Sven Neumann 562b1595f2 better fix for bug #158369.
2004-11-15  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpfiledialog.c (gimp_file_dialog_proc_changed):
	better fix for bug #158369.
2004-11-15 13:42:22 +00:00
Sven Neumann e196a77246 return early if gimp_file_proc_view_get_proc() didn't return a file
2004-11-15  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpfiledialog.c (gimp_file_dialog_proc_changed):
	return early if gimp_file_proc_view_get_proc() didn't return a file
	procedure. Should fix bug #158369.
2004-11-15 13:38:00 +00:00
Sven Neumann 869a1b680d started to redo this dialog without using a GimpSizeBox. The widgets
2004-11-15  Sven Neumann  <sven@gimp.org>

	* app/dialogs/print-size-dialog.c: started to redo this dialog
	without using a GimpSizeBox. The widgets aren't connected, so it
	isn't usable yet.

	* app/widgets/gimpprogressbox.c
	* app/widgets/gimpprogressdialog.c
	* app/widgets/gimpsizebox.c: trivial cleanups.

	* data/images/gimp-splash.png: splash for 2.2-pre2, done by Jimmac.
2004-11-14 23:51:46 +00:00
Sven Neumann 376b23f9d3 converted error messages that should never appear to warnings.
2004-11-14  Sven Neumann  <sven@gimp.org>

	* app/actions/image-commands.c: converted error messages that should
	never appear to warnings.
2004-11-14 22:01:13 +00:00
Sven Neumann c10b2c10b1 applied a (slightly modified) patch from Nickolay V. Shmyrev that changes
2004-11-14  Sven Neumann  <sven@gimp.org>

	* app/core/gimppalette-import.c: applied a (slightly modified)
	patch from Nickolay V. Shmyrev that changes the palette import
	function to not only read palettes in the RIFF format but also
	GIMP and Photoshop ACT palette files (bug #158297).
2004-11-14 20:15:05 +00:00
Sven Neumann 6e1ea086c9 added Karine Proot to contributors 2004-11-14 14:35:32 +00:00
Philip Lafleur 50833de419 Eliminated about 96 floating-point divides per frame in the persective
2004-11-14  Philip Lafleur  <plafleur@cvs.gnome.org>

	* app/display/gimpdisplayshell-preview.c: Eliminated about 96
	floating-point divides per frame in the persective preview.
2004-11-14 09:27:34 +00:00
Manish Singh 5d01581069 Fix a bunch of warnings from Sparse:
2004-11-13  Manish Singh  <yosh@gimp.org>

        Fix a bunch of warnings from Sparse:

        * app/actions/dockable-commands.c
        * app/actions/layers-actions.c
        * app/actions/view-commands.c
        * app/base/pixel-surround.c
        * app/config/gimpconfig-utils.c
        * app/config/gimpscanner.c
        * app/core/gimpbrushgenerated.c
        * app/core/gimpcontainer.c
        * app/core/gimpimage.c
        * app/dialogs/palette-import-dialog.c
        * app/file/gimprecentlist.c
        * app/plug-in/plug-in-params.c
        * app/text/gimptext-compat.c
        * app/text/gimptext-parasite.c
        * app/vectors/gimpbezierstroke.c
        * app/vectors/gimpstroke.c
        * app/widgets/gimpcellrendereraccel.c
        * app/widgets/gimpselectiondata.c
        * app/xcf/xcf.c
        * libgimp/gimp.c
        * libgimpthumb/gimpthumb-utils.c
        * libgimpthumb/gimpthumbnail.c
        * modules/cdisplay_proof.c
        * plug-ins/Lighting/lighting_ui.c
        * plug-ins/common/csource.c
        * plug-ins/common/glasstile.c
        * plug-ins/common/nova.c
        * plug-ins/common/pcx.c
        * plug-ins/common/pnm.c
        * plug-ins/common/randomize.c
        * plug-ins/common/screenshot.c
        * plug-ins/common/sel_gauss.c
        * plug-ins/common/spheredesigner.c
        * plug-ins/common/wind.c
        * plug-ins/gfig/gfig-dialog.c
        * plug-ins/gfig/gfig-dobject.c
        * plug-ins/gimpressionist/gimpressionist.c
        * plug-ins/ifscompose/ifscompose.c
        * plug-ins/print/gimp_main_window.c
        * plug-ins/print/print.c: Cleanup integer vs. pointer confusion.

        * app/base/temp-buf.c
        * app/dialogs/about-dialog.c
        * plug-ins/common/bumpmap.c
        * plug-ins/common/jigsaw.c
        * plug-ins/gfig/gfig-dobject.c: Cosmetic cleanups.

        * app/config/gimpconfig-deserialize.c
        * app/config/gimpconfig-path.c
        * app/config/gimpconfigwriter.c
        * app/core/gimpgradient.c
        * app/tools/gimpdrawtool.c
        * plug-ins/common/nlfilt.c
        * plug-ins/common/unsharp.c
        * plug-ins/common/zealouscrop.c: Define inline functions before they
        are used.

        * app/core/gimpdrawable-blend.c: PixelRegion definition was changed
        some time ago, but the initialization here didn't change. Fix it.

        * app/plug-in/plug-in-rc.c (plug_in_extra_deserialize): No need to
        assign token twice in a row.

        * libgimpbase/gimpdatafiles.c (gimp_datafiles_read_directories): No
        need to initialize file_data, since the code fills out all the fields.

        * plug-ins/common/CML_explorer.c
        * plug-ins/common/vpropagate.c: Declare function pointers fully.

        * plug-ins/common/grid.c (pix_composite): G_INLINE_FUNC isn't needed,
        we assume we can use the "inline" keyword always.

        * plug-ins/common/psd_save.c
        * plug-ins/common/vinvert.c
        * plug-ins/gfig/gfig-arc.c
        * plug-ins/gfig/gfig-bezier.c
        * plug-ins/gfig/gfig-circle.c
        * plug-ins/gfig/gfig-dialog.c
        * plug-ins/gfig/gfig-dobject.c
        * plug-ins/gfig/gfig-ellipse.c
        * plug-ins/gfig/gfig-line.c
        * plug-ins/gfig/gfig-poly.c
        * plug-ins/gfig/gfig-spiral.c
        * plug-ins/gfig/gfig-star.c
        * plug-ins/gfig/gfig.c
        * plug-ins/gimpressionist/orientmap.c
        * plug-ins/gimpressionist/placement.c
        * plug-ins/gimpressionist/sizemap.c
        * plug-ins/imagemap/imap_grid.c
        * plug-ins/imagemap/imap_main.c
        * plug-ins/imagemap/imap_preferences.c
        * plug-ins/imagemap/imap_settings.c
        * plug-ins/maze/maze.c
        * plug-ins/sel2path/curve.c
        * plug-ins/sel2path/fit.c
        * plug-ins/sel2path/pxl-outline.c
        * plug-ins/sel2path/spline.c
        * plug-ins/xjt/xjt.c: Functions with no args should be declared
        with (void).

        * plug-ins/common/retinex.c (MSRCR): Initialize max_preview to quiet
        the compiler.
2004-11-14 02:50:33 +00:00
Sven Neumann ec9ee41fe7 themes/Default/images/Makefile.am
2004-11-14  Sven Neumann  <sven@gimp.org>

	* themes/Default/images/Makefile.am
	* themes/Default/images/stock-center-16.png
	* themes/Default/images/stock-center-24.png
	* themes/Default/images/stock-print-resolution-16.png
	* themes/Default/images/stock-print-resolution-24.png: new icons
	drawn by Jimmac.

	* libgimpwidgets/gimpstock.[ch]: registered the new icons.

	* app/actions/image-actions.c
	* app/dialogs/print-size-dialog.c
	* app/dialogs/resize-dialog.c
	* plug-ins/ifscompose/ifscompose.c: use them.
2004-11-14 01:51:21 +00:00
Manish Singh c563a249b9 Adapted Sven's code into pdbgen so that gimp_image_set_filename()
2004-11-13  Manish Singh  <yosh@gimp.org>

        * tools/pdbgen/pdb/image.pdb: Adapted Sven's code into pdbgen so
        that gimp_image_set_filename() validates that it is called with
        a filename in the filesystem encoding which can safely be converted
        to UTF-8 and back. Fixes #153751.

        * app/pdb/image_cmds.c
        * libgimp/gimpimage_pdb.c: Regenerated.
2004-11-14 00:35:24 +00:00
Sven Neumann 9ac6ecef0a app/dialogs/Makefile.am new files for the Print Size dialog that is still
2004-11-13  Sven Neumann  <sven@gimp.org>

	* app/dialogs/Makefile.am
	* app/dialogs/print-size-dialog.[ch]: new files for the Print Size
	dialog that is still missing. Still work in progress...

	* app/actions/image-actions.c
	* app/actions/image-commands.[ch]
	* app/widgets/gimphelp-ids.h
	* menus/image-menu.xml.in: integrate the new dialog.
2004-11-13 22:27:39 +00:00
Sven Neumann ff654be7d6 deprecate gimp_selection_clear() in favor of gimp_selection_none(). Fixes
2004-11-13  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/pdb/selection.pdb: deprecate gimp_selection_clear()
	in favor of gimp_selection_none(). Fixes bug #156765.

	* app/pdb/selection_cmds.c
	* libgimp/gimpselection_pdb.[ch]: regenerated.
2004-11-13 21:01:12 +00:00
Sven Neumann 9a9a3ba3de document the fact that gimp_image_get_filename() returns the filename in
2004-11-13  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/pdb/image.pdb: document the fact that
	gimp_image_get_filename() returns the filename in the filesystem
	encoding. Fixed gimp_image_get_name() to actually return the name
	in UTF-8 encoding.

	* app/pdb/image_cmds.c
	* libgimp/gimpimage_pdb.c

	* app/vectors/gimpbezierstroke.h: formatting.
2004-11-13 20:34:43 +00:00
Sven Neumann 5a3b3fff70 app/core/gimpimagefile.[ch] app/file/file-open.c pass the MIME type from
2004-11-13  Sven Neumann  <sven@gimp.org>

	* app/core/gimpimagefile.[ch]
	* app/file/file-open.c
	* app/file/file-save.c: pass the MIME type from the save procedure
	to gimp_imagefile_save_thumbnail() so that it can be stored with
	the thumbnail.

	* tools/pdbgen/pdb/fileops.pdb
	* app/pdb/fileops_cmds.c: changed accordingly.
2004-11-13 17:13:21 +00:00
Sven Neumann b62ca985aa app/plug-in/plug-in-proc-def.[ch] app/plug-in/plug-in-rc.c allow to
2004-11-13  Sven Neumann  <sven@gimp.org>

	* app/plug-in/plug-in-proc-def.[ch]
	* app/plug-in/plug-in-rc.c
	* app/plug-in/plug-ins.[ch]: allow to associate a procedure for
	thumbnail loading with any file load procedure.

	* tools/pdbgen/pdb/fileops.pdb: export this functionality to the
	PDB as gimp_register_thumbnail_loader().

	* app/pdb/fileops_cmds.c
	* app/pdb/internal_procs.c
	* libgimp/gimpfileops_pdb.[ch]: regenerated.

	* app/core/gimpimagefile.c
	* app/file/file-open.[ch]: when creating a thumbnail for an image
	file, use a thumbnail load procedure if available.

	* plug-ins/common/svg.c: added "file_svg_load_thumb", a procedure
	that allows to load a small preview of the SVG image.
2004-11-13 17:06:06 +00:00
David Odin 4a0f6aa775 added back <control>H as a shortcut for "Anchor Layer". Spotted by Bruno
* app/actions/layers-actions.c: added back <control>H as a shortcut
  for "Anchor Layer".  Spotted by Bruno Ronzani.
2004-11-13 15:46:45 +00:00
Simon Budig 7945dc7a4b Return the active layer instead of the bottom layer when just merging down
2004-11-13  Simon Budig  <simon@gimp.org>

	* app/core/gimpimage-merge.c: Return the active layer instead of
	the bottom layer when just merging down a floating selection.
	Untabbified.

	Fixes bug #158130.
2004-11-13 01:59:16 +00:00
Sven Neumann a830d56f30 app/config/gimpconfig-dump.c better fix for bug #157971.
2004-11-12  Sven Neumann  <sven@gimp.org>

	* app/config/gimpconfig-dump.c better fix for bug #157971.

	* docs/gimprc.5.in: regenerated.
2004-11-12 22:49:23 +00:00
Michael Natterer b7e8659ac3 disallow non-attached items to be pushed to the undo stack.
2004-11-12  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpimage-undo-push.c: disallow non-attached items
	to be pushed to the undo stack.
2004-11-12 10:56:23 +00:00
Sven Neumann 1aa12291a2 added icons to the Previous/Next buttons (bug #158004).
2004-11-12  Sven Neumann  <sven@gimp.org>

	* app/dialogs/tips-dialog.c: added icons to the Previous/Next
	buttons (bug #158004).
2004-11-12 01:36:33 +00:00
Sven Neumann d29f9f7b23 Don't necessarily use black and white but a reasonably contrasted gray value. 2004-11-11 22:23:31 +00:00
Sven Neumann 8ce560f436 Choose black or white for the splash text color, based on the average
intensity of the lower 60 rows of the splash image.
2004-11-11 22:01:07 +00:00
Sven Neumann 4b292e6d33 lowered labels a few pixels.
2004-11-11  Sven Neumann  <sven@gimp.org>

	* app/gui/splash.c: lowered labels a few pixels.
2004-11-11 20:05:20 +00:00
Sven Neumann c8abfaf18b groff doesn't like lines to start with a single quote, we better escape
2004-11-11  Sven Neumann  <sven@gimp.org>

	* app/config/gimpconfig-dump.c: groff doesn't like lines to start
	with a single quote, we better escape it. Fixes bug #157971.

	* docs/gimprc.5.in: regenerated.
2004-11-11 17:07:58 +00:00
Michael Natterer f6e5ecb2e0 app/core/gimp-edit.c app/core/gimpdrawable-blend.c
2004-11-11  Michael Natterer  <mitch@gimp.org>

	* app/core/gimp-edit.c
	* app/core/gimpdrawable-blend.c
	* app/core/gimpdrawable-bucket-fill.c
	* app/core/gimpitem.c (gimp_item_stroke): added precondition
	checks for gimp_item_is_attached() and removed checks for
	gimp_item_get_image() to actually return an image (because it
	always returns an image).

	* tools/pdbgen/pdb/edit.pdb: let all wrappers fail if the drawable
	is not attached.

	* app/pdb/edit_cmds.c: regenerated.
2004-11-11 14:05:34 +00:00
Michael Natterer cd7972a8c2 call gimp_image_flush() after committing the image_map so the menus are
2004-11-11  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimpimagemaptool.c (gimp_image_map_tool_response):
	call gimp_image_flush() after committing the image_map so the
	menus are up-to-date. Fixes bug #157914.
2004-11-11 10:16:57 +00:00
Philip Lafleur c111576df2 Use the transform tool coordinates when creating subdivisions, not the
2004-11-11  Philip Lafleur  <plafleur@cvs.gnome.org>

	* app/display/gimpdisplayshell-preview.c: Use the transform
	tool coordinates when creating subdivisions, not the
	texture coordinates. Fixes breakage with layers that are not
	the image size.
2004-11-11 09:36:45 +00:00
Jay Cox e1a47b5232 Keep computed brush values from overflowing with large reduction factors.
2004-11-11  Jay Cox  <jaycox@gimp.org>

	* app/base/brush-scale.c: Keep computed brush values from
	overflowing with large reduction factors.  Fixes bug #76228.
2004-11-11 09:10:48 +00:00
Sven Neumann 7961719353 libgimpwidgets/gimpintstore.c please the overly pedantic IRIX MIPSpro
2004-11-11  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpintstore.c
	* app/vectors/gimpvectors-import.c: please the overly pedantic
	IRIX MIPSpro compiler and don't initialize structs with
	non-constant values.
2004-11-10 23:50:10 +00:00
Sven Neumann 0dc715748f add the image to the list of recently used documents. Fixes bug #157879.
2004-11-10  Sven Neumann  <sven@gimp.org>

	* app/file/file-open.c (file_open_layer): add the image to the
	list of recently used documents. Fixes bug #157879.
2004-11-10 21:48:17 +00:00
Michael Natterer a7037f9d26 if dot_for_dot is off, resolution change has the same effect as size
2004-11-10  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpdisplayshell-handlers.c
	(gimp_display_shell_resolution_changed_handler): if dot_for_dot is
	off, resolution change has the same effect as size change, so call
	gimp_display_shell_size_changed_handler(). Fixes display garbage.
2004-11-10 15:44:16 +00:00
Sven Neumann 4c70bd1254 set the padding-mode to custom color if a custom color is choosen. Fixes
2004-11-10  Sven Neumann  <sven@gimp.org>

	* app/dialogs/preferences-dialog.c: set the padding-mode to custom
	color if a custom color is choosen. Fixes bug #157844.
2004-11-10 13:44:14 +00:00
jaycox 5b5823ba4b Skip resources with unknown signatures instead of quiting. Fixes bug
* plug-ins/common/psd.c: Skip resources with unknown signatures
	instead of quiting.  Fixes bug #142468, and bug #152728

	* app/core/gimpdrawable.c: in functions gimp_drawable_mask_bounds,
	and gimp_drawable_mask_intersect: reinitialize the return values
	after calling gimp_channel_bounds because gimp_channel_bounds
	overwrites the values even when it returns false.  This fixes the
	bug where the gimp crashes when running color tools on layers
	smaller than the image, and processes only part of the image when
	the layer is larger than the image size.
2004-11-10 08:23:05 +00:00
Michael Natterer 04a7e8585b added new function gimp_statusbar_push_length(), which works exactly like
2004-11-10  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpstatusbar.[ch]: added new function
	gimp_statusbar_push_length(), which works exactly like
	push_coords() but takes only one value plus a GimpOrientationType
	for specifying the value's axis.

	* app/tools/gimptool.[ch]: added the corresponding
	gimp_tool_push_status_length().

	* app/tools/gimpmovetool.c: use gimp_tool_push_status_length()
	so the guide position is shown in the selected display unit.
	Cleaned up the status message code a bit.
2004-11-10 01:17:40 +00:00
Michael Natterer 6d9a69c0a6 pass (gint)-truncated coordinates instead of RINT()-rounded ones to
2004-11-09  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpdisplayshell-callbacks.c
	(gimp_display_shell_canvas_tool_events): pass (gint)-truncated
	coordinates instead of RINT()-rounded ones to
	gimp_display_shell_update_cursor(). Restores correct coordinates
	display for zoomed-in display and fixes bug #153534.

	* app/tools/gimpmovetool.c: added statusbar messages including the
	(rounded) guide coordinate. Keeps bug #141719 closed.
2004-11-09 13:03:07 +00:00
Michael Natterer 9ce333eb75 don't connect to "event" and don't connect any canvas event to
2004-11-09  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpdisplayshell.c (gimp_display_shell_new): don't
	connect to "event" and don't connect any canvas event to
	gimp_display_shell_events(). Connect all tool events separately
	(doesn't include "configure-event" and thus fixes bug #141543).

	* app/display/gimpdisplayshell-callbacks.c
	(gimp_display_shell_canvas_tool_events): call
	gimp_display_shell_events() manually before doing tool event
	processing.

	* app/display/gimpdisplayshell.c
	* app/display/gimpdisplayshell-callbacks.[ch]: connect to
	"size_allocate" of the canvas, not to "configure_event"
	(suggested by Owen in bug #141543).

	* app/display/gimpdisplayshell-callbacks.[ch]: removed
	gimp_display_shell_popup_menu().

	(gimp_display_shell_origin_button_press): emit "popup-menu" on the
	shell manually instead of calling above function.

	* app/display/gimpdisplayshell.c: added the whole menu popup code
	here.
2004-11-09 11:38:29 +00:00
Sven Neumann f717b25658 don't copy menurc, the format changed anyway.
2004-11-08  Sven Neumann  <sven@gimp.org>

	* app/dialogs/user-install-dialog.c (user_install_migrate_files):
	don't copy menurc, the format changed anyway.
2004-11-08 21:01:52 +00:00
Michael Natterer b68813254f applied modified patch from Geert Jordaens which adds the missing
2004-11-08  Michael Natterer  <mitch@gimp.org>

	* tools/pdbgen/pdb/layer.pdb: applied modified patch from Geert
	Jordaens which adds the missing gimp_layer_from_mask() API.
	Addresses bug #138662.

	* app/pdb/internal_procs.c
	* app/pdb/layer_cmds.c
	* libgimp/gimplayer_pdb.[ch]. regenerated.

	* libgimp/gimp.def: changed accordingly.
2004-11-08 16:58:43 +00:00
Michael Natterer 2c1fc59906 app/dialogs/resize-dialog.c (resize_dialog_response) replaced "case
2004-11-08  Michael Natterer  <mitch@gimp.org>

	* app/dialogs/resize-dialog.c (resize_dialog_response)
	* app/dialogs/scale-dialog.c (scale_dialog_response): replaced
	"case GTK_RESPONSE_CANCEL:" by "default:" so it also catches
	hitting the escape key or clicking the WM close button.
2004-11-08 11:22:24 +00:00
Sven Neumann 66de1a73dc initialize the return values before checking if the drawable is attached.
2004-11-08  Sven Neumann  <sven@gimp.org>

	* app/core/gimpdrawable.c (gimp_drawable_mask_bounds)
	(gimp_drawable_mask_intersect): initialize the return values before
	checking if the drawable is attached. Keeps GIMP from going mad if
	this assertion is ever triggered.
2004-11-07 23:17:39 +00:00
Sven Neumann 639dc4502f changed minimum brush radius from 1.0 to 0.1.
2004-11-06  Sven Neumann  <sven@gimp.org>

	* app/core/gimpbrushgenerated.c: changed minimum brush radius from
	1.0 to 0.1.
2004-11-06 19:12:52 +00:00
Sven Neumann 1fdcd8bee8 allow a smaller brush radius to be set in the brush editor. Fixes bug
2004-11-06  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpbrusheditor.c: allow a smaller brush radius to
	be set in the brush editor. Fixes bug #157508.
2004-11-06 18:55:06 +00:00
Sven Neumann babeb9afed same fix here.
2004-11-06  Sven Neumann  <sven@gimp.org>

	* app/dialogs/scale-dialog.c (scale_dialog_reset): same fix here.
2004-11-06 16:04:44 +00:00
Sven Neumann 1a409fed97 fixed typo (bug #157513).
2004-11-06  Sven Neumann  <sven@gimp.org>

	* app/dialogs/preferences-dialog.c: fixed typo (bug #157513).
2004-11-06 14:25:03 +00:00
Sven Neumann 01305d57bb removed trailing period from check button label. Fixes bug #157511.
2004-11-06  Sven Neumann  <sven@gimp.org>

	* app/dialogs/convert-dialog.c (convert_dialog_new): removed
	trailing period from check button label. Fixes bug #157511.
2004-11-06 12:48:38 +00:00
Sven Neumann ce7f034638 fixed most of the Reset functionality (bug #157495). The offset box is
2004-11-06  Sven Neumann  <sven@gimp.org>

	* app/dialogs/resize-dialog.c (resize_dialog_reset): fixed most of
	the Reset functionality (bug #157495). The offset box is still not
	working correctly.

	* app/widgets/gimpsizebox.c (gimp_size_box_update_resolution):
	check for availability of the size entry before accessing it.
2004-11-06 12:30:38 +00:00
Sven Neumann cfec9f597f New Win32 icons contributed by Jernej Simoncic:
2004-11-06  Sven Neumann  <sven@gimp.org>

	New Win32 icons contributed by Jernej Simoncic:

	* app/Makefile.am
	* app/makefile.msc
	* app/gimp.rc
	* app/fileicon.ico: added new file icon for the Win32 build.

	* app/wilber.ico: nicer application icon for the Win32 build.
2004-11-06 11:39:42 +00:00
Sven Neumann a24047788c be more tolerant and silently skip entries that the dialog factory doesn't
2004-11-04  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpsessioninfo.c: be more tolerant and silently
	skip entries that the dialog factory doesn't recognize.

	* app/widgets/gimpdialogfactory.c: minor cleanup.
2004-11-04 21:02:34 +00:00
Sven Neumann 17905c1b1e don't save the (empty) gimprc after migrating the user settings.
2004-11-04  Sven Neumann  <sven@gimp.org>

	* app/dialogs/user-install-dialog.c (user_install_response): don't
	save the (empty) gimprc after migrating the user settings.
2004-11-04 20:10:57 +00:00
Michael Natterer 5d7b121fd7 Don't use deprecated GtkToolbar API in GimpTextEditor:
2004-11-04  Michael Natterer  <mitch@gimp.org>

	Don't use deprecated GtkToolbar API in GimpTextEditor:

	* app/actions/Makefile.am
	* app/actions/actions.c
	* app/actions/text-editor-actions.[ch]
	* app/actions/text-editor-commands.[ch]: added acions and
	callbacks for the new "text-editor" action group.

	* app/menus/menus.c: register a "<TextEditor>" UI manager.

	* menus/Makefile.am
	* menus/text-editor-toolbar.xml: new file for the toolbar.

	* app/widgets/gimptexteditor.[ch]: use the toolbar created by the
	UI manager instead of constructing it using deprecated API.

	* app/tools/gimptextoptions.c: changed accordingly.

	* app/widgets/gimpwidgets-utils.[ch]: added gimp_text_buffer_load()
	(used by text-editor-commands.c).
2004-11-04 14:24:32 +00:00
Michael Natterer 40928bb578 use a GtkUIManager instead of a GtkItemFactory. Added virtual function
2004-11-04  Michael Natterer  <mitch@gimp.org>

	* libgimpwidgets/gimpcolorbutton.[ch]: use a GtkUIManager instead
	of a GtkItemFactory. Added virtual function ::get_action_type()
	and create the manager's actions manually using that action type
	instead of using gtk_action_group_add_actions().

	* app/widgets/gimpcolorpanel.c: override ::get_action_type() so it
	creates GimpActions (which can have a color attached) instead of
	GtkActions. Changed the menu item visibility and color preview
	code accordingly.

	* app/widgets/Makefile.am
	* app/widgets/gimpitemfactory.[ch]: finally removed.

	* configure.in: added -DGTK_DISABLE_DEPRECATED to CPPFLAGS again.
2004-11-04 12:15:49 +00:00
Michael Natterer ba92c24d79 app/dialogs/module-dialog.c plug-ins/dbbrowser/gimpprocbrowser.c use
2004-11-03  Michael Natterer  <mitch@gimp.org>

	* app/dialogs/module-dialog.c
	* plug-ins/dbbrowser/gimpprocbrowser.c
	* plug-ins/dbbrowser/plugin-browser.c: use
	gtk_tree_model_get_iter_first() instead of the deprecated
	_get_iter_root().

	* app/display/gimpdisplayshell-callbacks.c: don't include
	"widgets/gimpitemfactory.h".
2004-11-03 17:13:43 +00:00
Michael Natterer 2ae8d2135d use gtk_tree_model_get_iter_first() instead of the deprecated
2004-11-03  Michael Natterer  <mitch@gimp.org>

	* app/dialogs/module-dialog.c: use gtk_tree_model_get_iter_first()
	instead of the deprecated _get_iter_root().
2004-11-03 17:09:15 +00:00
Øyvind Kolås 88ed5c4b03 fixed misspelled parametername 2004-11-03 16:47:28 +00:00
Michael Natterer 29de307128 don't forget to g_free(editor->segments).
2004-11-03  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpdasheditor.c (gimp_dash_editor_finalize): don't
	forget to g_free(editor->segments).
2004-11-03 14:31:51 +00:00
Michael Natterer c568322c43 app/display/gimpscalecombobox.c (gimp_scale_combo_box_mru_remove_last)
2004-11-03  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpscalecombobox.c
	(gimp_scale_combo_box_mru_remove_last)
	* app/widgets/gimpeditor.c (gimp_editor_add_action_button)
	* app/xcf/xcf-load.c (xcf_load_old_path): plugged some small leaks.
2004-11-03 11:50:37 +00:00
Sven Neumann c70b12137b plugged a mem-leak.
2004-11-03  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpfiledialog.c (gimp_file_dialog_add_filters):
	plugged a mem-leak.

	* app/widgets/gimpviewrendererimagefile.c
	(gimp_view_renderer_imagefile_render): don't leak the pixbuf.

	* app/widgets/gimpviewrenderer-frame.c: added a comment.
2004-11-03 00:48:06 +00:00
Michael Natterer e2120e2c62 applied patch from Joao S. O. Bueno which moves assignments into an "else"
2004-11-03  Michael Natterer  <mitch@gimp.org>

	* app/paint-funcs/paint-funcs.c (combine_sub_region): applied
	patch from Joao S. O. Bueno which moves assignments into an "else"
	branch and thus optimizes the (common) "if" branch. Did some
	cosmetic cleanups.
2004-11-03 00:38:04 +00:00
Sven Neumann ab2e936b79 minor cleanup.
2004-11-02  Sven Neumann  <sven@gimp.org>

	* app/core/gimpimagefile.c (gimp_imagefile_save_thumb): minor
	cleanup.

	* libgimpthumb/gimpthumb-utils.c (_gimp_thumbs_delete_others): do
	the right thing. Used to do the wrong thing when called with a
	thumbnail size which is not from the GimpThumbSize enum.
2004-11-02 19:36:23 +00:00
Sven Neumann 3f7e196412 call image_new_dialog_set() unconditionally. Fixes bug #157096.
2004-11-02  Sven Neumann  <sven@gimp.org>

	* app/actions/image-commands.c (image_new_from_image_cmd_callback):
	call image_new_dialog_set() unconditionally. Fixes bug #157096.
2004-11-02 18:58:43 +00:00
Michael Natterer 9db5cd7ca1 factored out the "invoke" bodies to two utility functions, getting rid of
2004-11-02  Michael Natterer  <mitch@gimp.org>

	* tools/pdbgen/pdb/drawable_transform.pdb: factored out the
	"invoke" bodies to two utility functions, getting rid of *tons* of
	duplicated code.

	* app/pdb/drawable_transform_cmds.c: regenerated (only whitespace
	and comments changed).
2004-11-02 17:02:42 +00:00
Michael Natterer 9b3d956881 renamed parameter "interpolation" to "interpolate" as suggested by pippin.
2004-11-02  Michael Natterer  <mitch@gimp.org>

	* tools/pdbgen/pdb/drawable_transform.pdb (drawable_*_defaults):
	renamed parameter "interpolation" to "interpolate" as suggested by
	pippin.

	* app/pdb/drawable_transform_cmds.c
	* libgimp/gimpdrawabletransform_pdb.[ch]: regenerated.
2004-11-02 15:56:47 +00:00
Michael Natterer 92f0bbde30 don't copy pluginrc* and themerc*.
2004-11-02  Michael Natterer  <mitch@gimp.org>

	* app/dialogs/user-install-dialog.c (user_install_migrate_files):
	don't copy pluginrc* and themerc*.
2004-11-02 15:08:44 +00:00
Michael Natterer 8ba89c7746 deprecated all functions.
2004-11-02  Michael Natterer  <mitch@gimp.org>

	* tools/pdbgen/pdb/transform_tools.pdb: deprecated all functions.

	* app/pdb/transform_tools_cmds.c
	* libgimp/gimptransformtools_pdb.[ch]: regenerated.

	* plug-ins/common/tiff.c
	* plug-ins/script-fu/scripts/3dTruchet.scm
	* plug-ins/script-fu/scripts/coolmetal-logo.scm
	* plug-ins/script-fu/scripts/image-structure.scm
	* plug-ins/script-fu/scripts/perspective-shadow.scm
	* plug-ins/script-fu/scripts/text-circle.scm
	* plug-ins/script-fu/scripts/truchet.scm: use the new transform API.
2004-11-02 13:44:13 +00:00
Michael Natterer 2fef83bafb added _defaults() variants (flip_defaults, rotate_defaults, ...) for all
2004-11-02  Michael Natterer  <mitch@gimp.org>

	* tools/pdbgen/pdb/drawable_transform.pdb: added _defaults()
	variants (flip_defaults, rotate_defaults, ...) for all transform
	functions which finally call gimp_drawable_transform_affine().
	The _defaults() functions don't take the whole interpolation_type,
	supersample etc. parameter overkill, but only a "interpolation"
	boolean like the old PDB wrappers.

	* libgimp/gimp.def: changed accordingly.

	* app/pdb/drawable_transform_cmds.c
	* app/pdb/internal_procs.c
	* libgimp/gimpdrawabletransform_pdb.[ch]: regenerated.
2004-11-02 13:29:48 +00:00
Michael Natterer bde607ff99 renamed flip() and rotate() to flip_simple() and rotate_simple(). Renamed
2004-11-02  Michael Natterer  <mitch@gimp.org>

	* tools/pdbgen/pdb/drawable_transform.pdb: renamed flip() and
	rotate() to flip_simple() and rotate_simple(). Renamed flip_free()
	and rotate_free() to flip() and rotate() (the special cases should
	have a special suffix, not the general ones).

	* libgimp/gimp.def: changed accordingly.

	* app/pdb/drawable_transform_cmds.c
	* libgimp/gimpdrawabletransform_pdb.[ch]: regenerated.
2004-11-02 12:43:11 +00:00
Michael Natterer 998c895a67 More final API cleanup:
2004-11-02  Michael Natterer  <mitch@gimp.org>

	More final API cleanup:

	* tools/pdbgen/pdb/image.pdb: added gimp_image_set,get_colormap()
	and deprecated set,get_cmap().

	* libgimpwidgets/gimppreviewarea.[ch]: renamed
	gimp_preview_area_set_cmap() to set_colormap().

	* libgimp/gimp.def
	* libgimp/gimpdrawablepreview.c
	* libgimp/gimpexport.c
	* libgimp/gimpimage.[ch]
	* libgimpwidgets/gimpwidgets.def: changed accordingly.

	* app/pdb/image_cmds.c
	* app/pdb/internal_procs.c
	* libgimp/gimpimage_pdb.[ch]: regenerated.

	(undeprecation of plug-ins will follow...)
2004-11-02 11:30:49 +00:00
Michael Natterer ecc9fecfc9 added "gboolean recalc_highlight" and call
2004-11-02  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimpcroptool.c (crop_recalc): added "gboolean
	recalc_highlight" and call gimp_display_shell_set_highlight() only
	when it's TRUE. Pass TRUE from all places where the crop outline
	actually changed.

	(gimp_crop_tool_control): added back the call to crop_recalc() for
	the RESUME case so the outline gets updated on zoom/scroll, but pass
	recalc_highlight = FALSE because it has not changed.
	Fixes bug #157001.
2004-11-02 11:26:05 +00:00
Michael Natterer d0486a2eb9 renamed parameter "center" to "auto_center" and removed
2004-11-02  Michael Natterer  <mitch@gimp.org>

	* tools/pdbgen/pdb/drawable_transform.pdb (flip): renamed
	parameter "center" to "auto_center" and removed
	"transform_direction". Renamed rotate() to rotate_free() and
	added a "gboolean auto_center" parameter. Added new function
	rotate() which takes enum GimpRotationType instead of an
	arbiatrary angle so the flip and rotate APIs are symmetric.

	* libgimp/gimp.def: added the gimp_drawable_transform_* stuff.

	* app/pdb/drawable_transform_cmds.c
	* app/pdb/internal_procs.c
	* libgimp/gimpdrawabletransform_pdb.[ch]: regenerated.
2004-11-02 10:39:41 +00:00
Sven Neumann fabdf25d9b actually use the choosen interpolation type. Fixes bug #157102.
2004-11-02  Sven Neumann  <sven@gimp.org>

	* app/dialogs/image-scale-dialog.c (image_scale_callback): actually
	use the choosen interpolation type. Fixes bug #157102.
2004-11-02 08:39:42 +00:00
Øyvind Kolås 9c444166f2 discard loaded colormap for non indexed images 2004-11-01 18:33:09 +00:00
Michael Natterer 41e48fd8b5 renamed "center" to "auto_center".
2004-11-01  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpdrawable-transform.[ch]
	(gimp_drawable_transform_flip): renamed "center" to "auto_center".

	(gimp_drawable_transform_rotate): added missing parameters so it
	can be used for a to-be-added PDB wrapper offering a
	GimpRotationType based rotate API.

	Both functions: always clip when transforming a whole channel,
	since they must keep their size.

	(gimp_drawable_transform_affine): actually forward the passed
	"clip_result" to transform_tiles_affine() instead of always FALSE.
2004-11-01 17:21:55 +00:00
Øyvind Kolås 8c56b32696 sneaky post commit where the previous changelog is still valid 2004-11-01 16:24:59 +00:00
Øyvind Kolås 364c8e9a98 doing things that should have been done in previous commit 2004-11-01 16:20:47 +00:00
Øyvind Kolås c5c0a219d9 renamed *levels-auto to *levels-stretch 2004-11-01 16:05:19 +00:00
Sven Neumann caac418cb2 don't check for file_proc->menu_paths. Our load and save procedure don't
2004-11-01  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpfiledialog.c (gimp_file_dialog_add_filters):
	don't check for file_proc->menu_paths. Our load and save procedure
	don't necessarily register a menu path any longer.

	* app/plug-in/plug-ins.c: minor cleanup.

	* app/xcf/xcf.c (xcf_init): no need for adding menu paths for the
	XCF load and save procedures.

	* tools/pdbgen/pdb/fileops.pdb: fixed outdated documentation.

	* app/pdb/fileops_cmds.c
	* libgimp/gimpfileops_pdb.c: regenerated.
2004-11-01 15:44:57 +00:00
Michael Natterer a99e25b6ad added "clip_result" to the transform_options_args() utility function and
2004-11-01  Michael Natterer  <mitch@gimp.org>

	* tools/pdbgen/pdb/drawable_transform.pdb: added "clip_result" to
	the transform_options_args() utility function and changed all
	wrappers accordingly. Removed "interpolation", "supersample" and
	"recursion_level" args from drawable_transform_flip().

	* app/pdb/drawable_transform_cmds.c
	* libgimp/gimpdrawabletransform_pdb.[ch]: regenerated.
2004-11-01 15:27:40 +00:00
Michael Natterer 2ab62df91a trailing whitespace.
2004-11-01  Michael Natterer  <mitch@gimp.org>

	* app/actions/drawable-actions.c: trailing whitespace.

	* app/actions/drawable-commands.[ch]: partly revert alphabetical
	ordering. Instead, group them as in drawable-actions.c and order
	by alphabet inside the groups (different ordering in *-actions.c
	and *-commands.c is inconvenient for the usual workflow of editing
	both files at the same time).

	* app/core/gimpdrawable-levels.h: indentation.
2004-11-01 14:06:32 +00:00
Sven Neumann efea37992c when migrating the user settings, tolerate errors and create the tmp
2004-10-31  Sven Neumann  <sven@gimp.org>

	* app/dialogs/user-install-dialog.c: when migrating the user
	settings, tolerate errors and create the tmp directory that was
	explicitely not copied.
2004-10-31 18:32:26 +00:00
Sven Neumann bd3a5ed2c0 copy the file permissions also.
2004-10-31  Sven Neumann  <sven@gimp.org>

	* app/config/gimpconfig-utils.c (gimp_config_file_copy): copy the
	file permissions also.

	* app/dialogs/user-install-dialog.c: added code to migrate user
	settings from ~/.gimp-2.0. It copies all files (except GIMP swap
	files) and all subdirectories (except tmp) with all files. It
	doesn't recurse into subdirectories.
2004-10-31 17:51:00 +00:00
Sven Neumann 4a378440bb disabled the image area by default to reduce some clutter.
2004-10-31  Sven Neumann  <sven@gimp.org>

	* app/config/gimpguiconfig.c: disabled the image area by default
	to reduce some clutter.
2004-10-31 15:41:17 +00:00
Sven Neumann 858e80c682 fixed page logic for migration of user settings. Still missing code to
2004-10-31  Sven Neumann  <sven@gimp.org>

	* app/dialogs/user-install-dialog.c: fixed page logic for migration
	of user settings. Still missing code to actually copy the files.
2004-10-31 15:14:59 +00:00
Sven Neumann d254eaf3d5 set the active image. Fixes bug #156942.
2004-10-31  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpimageeditor.c (gimp_image_editor_set_context):
	set the active image. Fixes bug #156942.
2004-10-31 11:46:00 +00:00
Sven Neumann 1da778d0f9 started to work on migration of user settings (bug #156636). Not at all
2004-10-31  Sven Neumann  <sven@gimp.org>

	* app/dialogs/user-install-dialog.c: started to work on migration of
	user settings (bug #156636). Not at all functional yet.
2004-10-31 01:20:56 +00:00
Sven Neumann fcbe26d888 added a size entry to edit the resolution. This should close bug #151022.
2004-10-31  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpsizebox.c: added a size entry to edit the
	resolution. This should close bug #151022.
2004-10-30 23:55:34 +00:00
Sven Neumann 5c95659367 connect the offset controls.
2004-10-31  Sven Neumann  <sven@gimp.org>

	* app/dialogs/resize-dialog.c: connect the offset controls.
2004-10-30 23:16:19 +00:00
Sven Neumann 4f06153115 do nothing if the color has no saturation. Patch by Joao S. Bueno. Fixes
2004-10-30  Sven Neumann  <sven@gimp.org>

        * app/composite/gimp-composite-generic.c
        (gimp_composite_hue_any_any_any_generic): do nothing if the color
        has no saturation. Patch by Joao S. Bueno. Fixes bug #123296.
2004-10-30 18:42:09 +00:00
Sven Neumann b4f038427b destroy the scale dialog when the display is disconnected.
2004-10-30  Sven Neumann  <sven@gimp.org>

	* app/actions/image-commands.c (image_scale_cmd_callback): destroy
	the scale dialog when the display is disconnected.

	* app/dialogs/resize-dialog.c: fixed a couple of bugs related to
	the offset area. Still work in progress.
2004-10-30 18:11:16 +00:00
Sven Neumann 267676fa99 app/config/gimpguiconfig.[ch] app/config/gimprc-blurbs.h
2004-10-30  Sven Neumann  <sven@gimp.org>

	* app/config/gimpguiconfig.[ch]
	* app/config/gimprc-blurbs.h
	* app/dialogs/preferences-dialog.c
	* app/tools/gimpmoveoptions.[ch]
	* app/tools/gimpmovetool.[ch]: reverted changes for bug #156801.
	Instead added a gimprc option that allows to get the old behaviour
	back.
2004-10-30 15:02:39 +00:00
Sven Neumann e4a871c10b changed default value for new "change-active" property 2004-10-30 14:16:57 +00:00
Sven Neumann 9fd4ac8a6d app/tools/gimpmoveoptions.[ch] applied (cleaned up version of) a patch
2004-10-30  Sven Neumann  <sven@gimp.org>

	* app/tools/gimpmoveoptions.[ch]
	* app/tools/gimpmovetool.[ch]: applied (cleaned up version of) a
	patch from Joao S. O. Bueno that adds a tool-option to restore the
	old Move tool behaviour. Fixes bug #156801.
2004-10-30 13:52:20 +00:00
Øyvind Kolås ae30cacd28 addition of white balance in menus, and related code reorganization 2004-10-29 22:18:49 +00:00
Sven Neumann a27b0bff1c app/widgets/gimpuimanager.c (gimp_ui_manager_entry_load) only be verbose
2004-10-29  Sven Neumann  <sven@gimp.org>

        * app/widgets/gimpuimanager.c (gimp_ui_manager_entry_load)
        * app/widgets/gimpclipboard.c (gimp_clipboard_init): only be
        verbose on request.

        * app/plug-in/plug-in.c (plug_in_close): turned warnings into
        messages and respect gimp->be_verbose.
2004-10-29 21:54:32 +00:00
Øyvind Kolås 782aeab6f2 reordered to be alphabetical 2004-10-29 17:46:41 +00:00
Sven Neumann d001c17785 when the filename cannot be converted to UTF-8, warn and return the URI
2004-10-29  Sven Neumann  <sven@gimp.org>

	* app/file/file-utils.c (file_utils_uri_to_utf8_filename): when
	the filename cannot be converted to UTF-8, warn and return the URI
	instead. This is a workaround for the crash described in bug #153751.
2004-10-29 13:04:04 +00:00
Michael Natterer 4a4a1096d5 added foreign entries for the keyboard shortcut and the controller action
2004-10-29  Michael Natterer  <mitch@gimp.org>

	* app/dialogs/dialogs.c (toplevel_entries): added foreign entries
	for the keyboard shortcut and the controller action dialogs.

	* app/dialogs/preferences-dialog.c
	* app/widgets/gimpcontrollereditor.c: register the dialogs with
	the "toplevel" dialog factory so they remember their size and
	position.
2004-10-29 10:58:16 +00:00
Sven Neumann ea0331c53a mention gimp_drawable_fill() in the docs for gimp_edit_fill().
2004-10-29  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/pdb/edit.pdb: mention gimp_drawable_fill() in the
	docs for gimp_edit_fill().

	* app/pdb/edit_cmds.c
	* libgimp/gimpedit_pdb.c: regenerated.
2004-10-29 00:06:41 +00:00
Sven Neumann 1c2ad2bad1 *** empty log message *** 2004-10-28 18:27:04 +00:00
Sven Neumann 279d901051 do not set the "layers-mask-add" action insensitive if there's no alpha
2004-10-28  Sven Neumann  <sven@gimp.org>

	* app/actions/layers-actions.c (layers_actions_update): do not set
	the "layers-mask-add" action insensitive if there's no alpha channel.

	* app/actions/layers-commands.c (layers_add_mask_response): add an
	alpha channel if there isn't one already. Fixes bug #156676.
2004-10-28 10:53:44 +00:00
Øyvind Kolås e4b3616a00 improve approximation of perspective tool\'s preview 2004-10-28 06:06:58 +00:00
Philip Lafleur 0b45edb7f3 Really fixed all cases of the perspective tool preview breaking with
2004-10-27  Philip Lafleur <plafleur@cvs.gnome.org>

	* app/display/gimpdisplayshell-preview.c: Really fixed all cases
	of the perspective tool preview breaking with certain orientations by
	using triangles instead of quads.
2004-10-28 02:32:58 +00:00
Philip Lafleur 2f3073910c Hopefully fixed all cases of the perspective tool preview breaking with
2004-10-27  Philip Lafleur <plafleur@cvs.gnome.org>

	* app/display/gimpdisplayshell-preview.c: Hopefully fixed all cases
	of the perspective tool preview breaking with certain orientations.
2004-10-28 00:38:23 +00:00
Øyvind Kolås aba2a57c4e improve fixed point coordinate handling 2004-10-27 19:25:50 +00:00
Michael Schumacher e718a6817c fixed a typo in #include "libgimpbase/gimpwin32-io.h"
2004-10-27  Michael Schumacher <schumaml@gmx.de>

	* app/widgets/gimpwidgets-utils.c: fixed a typo in
	#include "libgimpbase/gimpwin32-io.h"
2004-10-27 19:02:04 +00:00
Michael Natterer d0ab9a7470 app/core/gimp-transform-utils.[ch]. switch from x1,y1,x2,y2 bounding boxes
2004-10-27  Michael Natterer  <mitch@gimp.org>

	* app/core/gimp-transform-utils.[ch]. switch from x1,y1,x2,y2
	bounding boxes to x,y,width,height ones. Added
	gimp_transform_matrix_flip_free(). Renamed some parameters to be
	consistent with others. Some internal cleanup.

	* app/tools/gimpperspectivetool.c
	* app/tools/gimpscaletool.c
	* app/tools/gimpsheartool.c
	* tools/pdbgen/pdb/drawable_transform.pdb
	* tools/pdbgen/pdb/transform_tools.pdb: changed accordingly.

	* tools/pdbgen/pdb/drawable_transform.pdb
	* tools/pdbgen/pdb/transform_tools.pdb: guard all transform
	wrappers with if(gimp_drawable_mask_intersect(...)), also the
	ones which don't need the returned bounding box.

	* tools/pdbgen/pdb/drawable_transform.pdb: renamed some parameters
	and added gimp_drawable_transform_matrix() which takes the 9
	coefficients of a 3x3 matrix for ultimate flexibility ;)

	* app/pdb/drawable_transform_cmds.c
	* app/pdb/internal_procs.c
	* app/pdb/transform_tools_cmds.c
	* libgimp/gimpdrawabletransform_pdb.[ch]: regenerated.
2004-10-27 17:56:02 +00:00
Sven Neumann 4349469e3c changed menu label from "Show Image Menu" to "Show Image Selection".
2004-10-27  Sven Neumann  <sven@gimp.org>

	* app/actions/dockable-actions.c (dockable_toggle_actions): changed
	menu label from "Show Image Menu" to "Show Image Selection".

	* app/widgets/gimpsizebox.c: unmarked a string for translation.

	* app/dialogs/scale-dialog.c: added back the message when scaling
	an indexed image.
2004-10-27 15:59:52 +00:00
Sven Neumann 52252cf0d6 started to redo the Resize dialog in the style of the new Scale dialog.
2004-10-27  Sven Neumann  <sven@gimp.org>

	* app/dialogs/resize-dialog.[ch]: started to redo the Resize
	dialog in the style of the new Scale dialog. Only halfway done but
	at least the new API is there.

	* app/actions/image-commands.c
	* app/actions/layers-commands.c: changed accordingly.

	* app/dialogs/image-scale-dialog.c: cosmetics.
2004-10-27 10:33:08 +00:00
Manish Singh 7c6a0026e4 removed abuse of init, called pdb_misc in all procedures.
2004-10-26  Manish Singh  <yosh@gimp.org>

        * tools/pdbgen/pdb/drawable_transform.pdb: removed abuse of init,
        called pdb_misc in all procedures.

        * app/pdb/transform_tools_cmds.c
        * libgimp/gimpdrawabletransform_pdb.c: regenerated.
2004-10-27 02:27:45 +00:00
Sven Neumann fffebe8ec2 app/dialogs/Makefile.am a wrapper around the scale dialog that takes care
2004-10-27  Sven Neumann  <sven@gimp.org>

	* app/dialogs/Makefile.am
	* app/dialogs/image-scale-dialog.[ch]: a wrapper around the scale
	dialog that takes care verifying the user input and optionally
	asking for confirmation. Most of this moved out of image-commands.c.

	* app/actions/image-commands.c: use the new image scale dialog
	even though it doesn't allow to edit the resolution yet. That's a
	temporary regression that will get fixed soon.

	* app/actions/layers-commands.c: cosmetics.

	* app/dialogs/scale-dialog.c (scale_dialog_reset): also reset the
	resolution.

	* app/widgets/gimpsizebox.c: fixed cut'n'paste error.
2004-10-27 01:20:07 +00:00
Sven Neumann b0330f95d4 added a resolution label similar to one in the template editor. Prepared
2004-10-27  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpsizebox.[ch]: added a resolution label similar
	to one in the template editor. Prepared for editable resolution,
	work in progress...

	* app/dialogs/scale-dialog.[ch]: added resolution and resolution
	unit parameters to ScaleDialogCallback.

	* app/actions/layers-commands.c: changed accordingly.
2004-10-26 23:31:34 +00:00
Sven Neumann 664b5a0a09 commented out the memory size label. The visual clutter of it's bold
2004-10-26  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimptemplateeditor.c: commented out the memory size
	label. The visual clutter of it's bold appearance was IMO not
	appropriate. I think the dialog is better without it.

	* app/widgets/gimpsizebox.c: added a pixel size label as in the
	Image New dialog.
2004-10-26 21:18:20 +00:00
Sven Neumann 57eec590ae Added new drawable transform API to the PDB. Largely based on patches from
2004-10-26  Sven Neumann  <sven@gimp.org>

	Added new drawable transform API to the PDB. Largely based on
	patches from Joao S. O. Bueno. Fixes bug #137053.

	* app/core/gimpdrawable-transform.[ch]: added missing parameters
	to gimp_drawable_transform_flip().

	* tools/pdbgen/pdb/transform_tools.pdb: changed accordinly.

	* app/base/base-enums.h
	* app/core/core-enums.h: removed pdp-skip for GimpInterpolationType
	and GimpTransformDirection enums.

	* libgimp/gimpenums.h
	* plug-ins/pygimp/gimpenums.py
	* tools/pdbgen/enums.pl
	* tools/pdbgen/groups.pl: regenerated.

	* tools/pdbgen/Makefile.am
	* tools/pdbgen/pdb/drawable_transform.pdb: added new file defining
	the new PDB calls.

	* app/pdb/Makefile.am
	* app/pdb/drawable_transform_cmds.c
	* app/pdb/internal_procs.c
	* app/pdb/transform_tools_cmds.c
	* libgimp/gimp_pdb.h
	* libgimp/gimpdrawabletransform_pdb.[ch]: regenerated.
2004-10-26 17:50:52 +00:00
Michael Natterer 2075f1e742 added parameter "const gchar *select_action" and preselect the passed
2004-10-26  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpactionview.[ch] (gimp_action_view_new): added
	parameter "const gchar *select_action" and preselect the passed
	action if non-NULL. Made the column enum public to users of this
	widget can get data from its tree store.

	* app/dialogs/preferences-dialog.c (prefs_keyboard_shortcuts_dialog):
	pass NULL because we don't want a preselected action here.

	* app/widgets/gimpcontrollereditor.[ch]: added "Edit" and "Delete"
	buttons to change the event -> action mapping. Implement a action
	chooser dialog using GimpActionView. Fixes bug #106920.
2004-10-26 15:10:00 +00:00
Sven Neumann cdea36c6ce removed unused variable 2004-10-26 15:07:10 +00:00
Sven Neumann 1ee62f771e app/actions/channels-commands.c app/core/gimpchannel-select.c
2004-10-26  Sven Neumann  <sven@gimp.org>

	* app/actions/channels-commands.c
	* app/core/gimpchannel-select.c
	* app/core/gimpimagefile.c
	* app/core/gimpundo.c
	* app/widgets/gimpcomponenteditor.c: use the new enum utility
	functions from libgimpbase instead of accessing enum_value->value_name.
2004-10-26 14:45:25 +00:00
Michael Natterer 9f0ae8d340 when changing the button's label to "Quit", also make it the default
2004-10-26  Michael Natterer  <mitch@gimp.org>

	* app/dialogs/quit-dialog.c (quit_dialog_container_changed): when
	changing the button's label to "Quit", also make it the default
	action.
2004-10-26 12:59:58 +00:00
Michael Natterer ea1b88f580 app/widgets/Makefile.am app/widgets/widgets-types.h new widget built from
2004-10-26  Michael Natterer  <mitch@gimp.org>

	* app/widgets/Makefile.am
	* app/widgets/widgets-types.h
	* app/widgets/gimpcontrollereditor.[ch]: new widget built from
	preliminary code from the prefs dialog. Prerequisite for finally
	fixing bug #106920.

	* app/dialogs/preferences-dialog.c: use the new widget.
2004-10-26 12:26:47 +00:00
Sven Neumann 46bdfd8b9a change the action button's label to "Quit" if there are no images with
2004-10-25  Sven Neumann  <sven@gimp.org>

	* app/dialogs/quit-dialog.c: change the action button's label to
	"Quit" if there are no images with unsaved changes.
2004-10-25 20:11:50 +00:00
Michael Natterer 6711646648 Don't store human readable and translatable enum/flag strings in
2004-10-25  Michael Natterer  <mitch@gimp.org>

	Don't store human readable and translatable enum/flag strings in
	GEnumValue's and GTypeValue's fields but attach them to their
	GType using separate structs and utility functions:

	* tools/gimp-mkenums: added params and perl voodoo to support
	generating a second array of values, which is used by the
	Makefiles below to create and register arrays of value
	descriptions.

	* libgimpbase/gimpbasetypes.[ch]: added API to attach/retreive
	arrays of translatable strings to/from enum and flags types. Added
	structs GimpEnumDesc and GimpFlagsDesc for that purpose.

	* libgimpbase/gimputils.[ch]: changed existing enum utility
	functions, added new ones and added a symmetric API for flags.

	* app/base/Makefile.am
	* app/core/Makefile.am
	* app/display/Makefile.am
	* app/paint/Makefile.am
	* app/text/Makefile.am
	* app/tools/Makefile.am
	* app/widgets/Makefile.am
	* libgimp/Makefile.am
	* libgimpbase/Makefile.am: changed *-enums.c generation rules
	accordingly.

	* app/base/base-enums.c
	* app/core/core-enums.c
	* app/display/display-enums.c
	* app/paint/paint-enums.c
	* app/text/text-enums.c
	* app/tools/tools-enums.c
	* app/widgets/widgets-enums.c
	* libgimpbase/gimpbaseenums.c: regenerated.

	* app/widgets/gimpenumstore.c
	* app/widgets/gimpenumwidgets.c
	* app/widgets/gimptemplateeditor.c
	* libgimpwidgets/gimppreviewarea.c: follow the enum utility
	function API changes.
2004-10-25 17:55:25 +00:00
Michael Natterer a61ed834be #include "libgimpbase/gimpbase.h", not just gimputils.h
2004-10-25  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpobject.c: #include "libgimpbase/gimpbase.h", not
	just gimputils.h
2004-10-25 15:36:55 +00:00
Simon Budig fdd150e310 Switch to design mode when Escape gets pressed. Untabbified.
2004-10-25  Simon Budig  <simon@gimp.org>

	* app/tools/gimpvectortool.c: Switch to design mode when
	Escape gets pressed. Untabbified.
2004-10-25 13:29:32 +00:00
Michael Natterer e88a663631 app/actions/gradient-editor-commands.c irrelevant coding style and spacing
2004-10-25  Michael Natterer  <mitch@gimp.org>

	* app/actions/gradient-editor-commands.c
	* app/display/gimpdisplayshell-preview.c: irrelevant coding style
	and spacing cleanups.

	* app/widgets/gimpimageeditor.c: removed utility function
	gimp_image_editor_context_changed() and connect
	gimp_image_editor_set_image() directly using
	g_signal_connect_swapped().
2004-10-25 12:42:23 +00:00
Sven Neumann 6108dc0212 configure.in app/Makefile.am bumped version to 2.2.0-pre1, set app version
2004-10-25  Sven Neumann  <sven@gimp.org>

	* configure.in
	* app/Makefile.am
	* tools/Makefile.am: bumped version to 2.2.0-pre1, set app version
	to 2.2, reset other versions to 2.0. Changed library versioning so
	we install with the same soname as gimp-2.0 again.
2004-10-24 22:55:36 +00:00
Sven Neumann 726821fef7 say "Click to create preview" if no preview is available.
2004-10-25  Sven Neumann  <sven@gimp.org>

	* app/core/gimpimagefile.c (gimp_imagefile_get_desc_string): say
	"Click to create preview" if no preview is available.
2004-10-24 22:30:52 +00:00
Michael Natterer df34354784 added gimp_text_buffer_save() which saves a GtkTextBuffer's contents to a
2004-10-25  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpwidgets-utils.[ch]: added gimp_text_buffer_save()
	which saves a GtkTextBuffer's contents to a file.

	* app/widgets/gimperrorconsole.c: use
	gimp_editor_add_action_button() and removed all "clicked"
	callbacks, including all file saving code.

	* app/actions/error-console-actions.c
	* app/actions/error-console-commands.[ch]: added the code removed
	above to the action callbacks. Use gimp_text_buffer_save().
2004-10-24 22:26:11 +00:00
Michael Natterer 714771d450 app/widgets/gimpgradienteditor.[ch] added public APIs for zooming the
2004-10-24  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpgradienteditor.[ch]
	* app/widgets/gimppaletteeditor.[ch]: added public APIs for
	zooming the editors. Use gimp_editor_add_action_button() to create
	all buttons. Removed all button callbacks and all duplicated
	button sensitivity logic.

	* app/widgets/gimpdataeditor.c (gimp_data_editor_set_data): update
	the editor's UI manager if it exists.

	* app/actions/gradient-editor-actions.c
	* app/actions/gradient-editor-commands.[ch]: added zoom actions
	and callback and call gimp_gradient_editor_zoom(). Fixed
	gradient_editor_actions_update() to actually set all items'
	sensitivity (it was possible to modify read-only gradients and
	even to crash GIMP).

	* app/actions/palette-editor-actions.c
	* app/actions/palette-editor-commands.[ch]: changed "new" and
	"zoom" actions to actually do their job instead of calling
	gtk_button_clicked(editor->foo_button).
2004-10-24 20:38:35 +00:00
Michael Natterer 8afbb733c7 removed the "Edit Color" dialog callbacks and use
2004-10-24  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpcolormapeditor.c: removed the "Edit Color"
	dialog callbacks and use gimp_editor_add_action_button() for
	the edit button. Removed button sensitivity logic. Hide the
	color dialog when the image's mode changes.

	* app/actions/colormap-editor-actions.c: added missing tooltip
	for the edit action.

	* app/actions/colormap-editor-commands.c: implement the dialog
	here.
2004-10-24 18:32:24 +00:00
David Odin bcfbc61e15 only return early if there's nothing to desaturate.
* app/core/gimpdrawable-desaturate.c: only return early if there's nothing
  to desaturate.
2004-10-24 16:25:26 +00:00
Michael Natterer ceaec00551 don't leak the filenames of the import and export dialogs.
2004-10-24  Michael Natterer  <mitch@gimp.org>

	* app/actions/vectors-commands.c: don't leak the filenames of the
	import and export dialogs.
2004-10-24 13:13:21 +00:00
Michael Natterer 86c108c5d3 app/dialogs/Makefile.am app/dialogs/vectors-export-dialog.[ch] new files.
2004-10-24  Michael Natterer  <mitch@gimp.org>

	* app/dialogs/Makefile.am
	* app/dialogs/vectors-export-dialog.[ch]
	* app/dialogs/vectors-import-dialog.[ch]: new files.

	* app/actions/vectors-commands.c: use the new dialogs and remember
	their last values.
2004-10-23 22:54:41 +00:00
Sven Neumann f21e575bc2 added missing controls to the path import and export dialogs.
2004-10-23  Sven Neumann  <sven@gimp.org>

	* app/actions/vectors-commands.c: added missing controls to the
	path import and export dialogs.
2004-10-23 21:49:46 +00:00
Michael Natterer fa79ae2844 don't g_return_if_fail() if there is no active drawable, just silently
2004-10-23  Michael Natterer  <mitch@gimp.org>

	* app/actions/file-commands.c (file_save_cmd_callback): don't
	g_return_if_fail() if there is no active drawable, just silently
	return.

	* app/actions/image-commands.c: remember the last merge_type of
	the "Merge Visible Layers" dialog.

	* app/actions/layers-commands.c: remeber the last values of the
	"Add Layer Mask" dialog.

	* app/actions/select-commands.c: renamed a bunch of static
	variables to be consistent with other variables used to remember
	dialog values.

	* app/actions/view-commands.c (view_fullscreen_cmd_callback): it's
	useless to update the "view-fullscreen" actions here because the
	"fullscreen" state of the shell changes asynchronously
2004-10-23 19:13:17 +00:00
Michael Natterer a01c6883f6 app/dialogs/image-merge-layers-dialog.c made them not resizable.
2004-10-23  Michael Natterer  <mitch@gimp.org>

	* app/dialogs/image-merge-layers-dialog.c
	* app/dialogs/layer-add-mask-dialog.c: made them not resizable.

	* app/dialogs/convert-dialog.c
	* app/dialogs/offset-dialog.c: renamed ugly variables.

	* app/dialogs/image-new-dialog.c
	* app/dialogs/stroke-dialog.c: irrelevant pedantic code reordering.
2004-10-23 19:01:26 +00:00
Michael Natterer f50d4763a8 app/dialogs/Makefile.am one more dialog split out of actions/.
2004-10-23  Michael Natterer  <mitch@gimp.org>

	* app/dialogs/Makefile.am
	* app/dialogs/image-merge-layers-dialog.[ch]: one more dialog split
	out of actions/.

	* app/actions/image-commands.c: removed it here. Some cleanup.
2004-10-23 16:42:37 +00:00
Sven Neumann ea273aadb9 libgimpthumb/gimpthumb-utils.[ch] libgimpthumb/gimpthumbnail.[ch] added
2004-10-23  Sven Neumann  <sven@gimp.org>

	* libgimpthumb/gimpthumb-utils.[ch]
	* libgimpthumb/gimpthumbnail.[ch]
	* libgimpthumb/gimpthumb.def: added missing API, mainly for deleting
	thumbnails.

	* app/core/gimpimagefile.[ch]: when saving a thumbnail, delete a
	failure thumbnail if one exists. Unless the thumbnail was created
	explicitely, remove all other thumbnails for this image.

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

	* app/file/file-open.c: only save a thumbnail if there isn't a
	valid thumbnail already.

	* app/widgets/gimpthumbbox.c: before attempting to create a new
	thumbnail, check if there's an uptodate failure thumbnail.
2004-10-23 15:30:39 +00:00
Michael Natterer cbaf441fb4 app/dialogs/Makefile.am one more dialog split out of actions/.
2004-10-23  Michael Natterer  <mitch@gimp.org>

	* app/dialogs/Makefile.am
	* app/dialogs/layer-add-mask-dialog.[ch]: one more dialog split
	out of actions/.

	* app/actions/layers-commands.c: removed it here. Some cleanup.
2004-10-23 14:02:53 +00:00
Michael Natterer 6e9d0cfa5d added labels ("_Stroke") to the SLEECTION_STROKE and PATH_STROKE stock
2004-10-23  Michael Natterer  <mitch@gimp.org>

	* libgimpwidgets/gimpstock.c: added labels ("_Stroke") to the
	SLEECTION_STROKE and PATH_STROKE stock items so they can be used
	in action areas.

	* app/widgets/gimpstrokeeditor.c: changed mnemonic to no clash
	with "_Stroke" and reordered some code.

	* app/dialogs/stroke-dialog.[ch]: use the passed stock_id instead
	of GTK_STOCK_OK. Added parameters to specify the dialog's title
	so it doesn't say "Stroke Options".

	* app/actions/select-commands.c
	* app/actions/vectors-commands.c
	* app/tools/gimpvectortool.c: pass "Stroke Selection" and "Stroke
	Path" as dialog titles.
2004-10-23 10:28:56 +00:00
Michael Natterer fd6d30fd30 When there are variants of actions with and without dialog, let the
2004-10-23  Michael Natterer  <mitch@gimp.org>

	When there are variants of actions with and without dialog, let
	the dialog-less actions try to use the values from the last dialog
	invocation:

	* app/actions/channels-actions.c
	* app/actions/channels-commands.[ch]
	* app/actions/layers-actions.c
	* app/actions/layers-commands.[ch]
	* app/actions/vectors-actions.c
	* app/actions/vectors-commands.[ch]: renamed the foo-new-defaults
	actions to foo-new-last-values and use the last values entered in
	the dialogs.

	* app/widgets/gimpchanneltreeview.c
	* app/widgets/gimpitemtreeview.c
	* app/widgets/gimplayertreeview.c
	* app/widgets/gimpvectorstreeview.c: changed accordingly. Show
	the dialog on clicking "New" and call the last-values action on
	<shift>+click.

	* app/actions/select-actions.c
	* app/actions/vectors-commands.c: renamed the foo-stroke-last-vals
	to -last-values.

	* app/widgets/gimpselectioneditor.c
	* app/widgets/gimpvectorstreeview.c: stroke with last values on
	<shift> clicking the stroke buttons.
2004-10-23 00:53:48 +00:00
Michael Natterer 5346f26bea app/dialogs/Makefile.am the new/edit layer dialog.
2004-10-23  Michael Natterer  <mitch@gimp.org>

	* app/dialogs/Makefile.am
	* app/dialogs/layer-options-dialog.[ch]: the new/edit layer dialog.

	* app/actions/layers-commands.c: use it here.
2004-10-22 22:28:45 +00:00
Sven Neumann 43a4629965 app/tools/gimpimagemaptool.[ch] app/tools/gimpcurvestool.c allow to
2004-10-22  Sven Neumann  <sven@gimp.org>

	* app/tools/gimpimagemaptool.[ch]
	* app/tools/gimpcurvestool.c
	* app/tools/gimplevelstool.c: allow to Shift-click the Load and
	Save buttons to skip the file chooser dialog and reuse the last
	used filename. Fixes bug #75558.
2004-10-22 19:44:03 +00:00
Michael Natterer d1ce0a16bd app/dialogs/Makefile.am the new/edit template dialog.
2004-10-22  Michael Natterer  <mitch@gimp.org>

	* app/dialogs/Makefile.am
	* app/dialogs/template-options-dialog.[ch]: the new/edit template
	dialog.

	* app/actions/templates-commands.c: removed the code here and use
	template_options_dialog_new(). Removed utility functions. Some
	cleanup.
2004-10-22 18:13:46 +00:00
Michael Natterer 59bd430526 make sure the button_box is always interted at the very bottom of the
2004-10-22  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpeditor.c (gimp_editor_ensure_button_box): make
	sure the button_box is always interted at the very bottom of the
	editor.

	* app/widgets/gimpviewabledialog.c: changed the "description"
	property from CONSTRUCT_ONLY to CONSTRUCT.

	* app/widgets/gimpcolormapeditor.c: show the index of the edited
	color in the color dialog and use the correct icon. Replaced label
	"Hex triplet" by "HTML notation" to be consistent with the color
	dialog. Removed wrong 2 pixel border around the table below the
	preview.
2004-10-22 15:41:03 +00:00
Sven Neumann 341b6da981 app/actions/colormap-editor-actions.c app/actions/dialogs-actions.c
2004-10-22  Sven Neumann  <sven@gimp.org>

	* app/actions/colormap-editor-actions.c
	* app/actions/dialogs-actions.c
	* app/core/gimpimage-colormap.c
	* app/dialogs/convert-dialog.c
	* app/dialogs/dialogs.c
	* app/widgets/gimpcolormapeditor.c: use the term "Colormap"
	instead of "Indexed Palette". Fixes bug #155829.
2004-10-22 14:43:43 +00:00
Michael Natterer 06447c00c2 added new enum GimpStrokeMethod which can be one of { LIBART, PAINT_CORE
2004-10-22  Michael Natterer  <mitch@gimp.org>

	* app/core/core-enums.[ch]: added new enum GimpStrokeMethod which
	can be one of { LIBART, PAINT_CORE }.

	* app/core/Makefile.am
	* app/core/core-types.h
	* app/core/gimpstrokedesc.[ch]: new object which encapsulates
	the params and setup logic for the different stroke methods.

	* app/core/gimpitem.[ch]: use it in GimpItem::stroke() and
	in the gimp_item_stroke() wrapper.

	* app/core/gimpchannel.c (gimp_channel_stroke)
	* app/core/gimpselection.c (gimp_selection_stroke)
	* app/vectors/gimpvectors.c (gimp_vectors_stroke): changed accprdingly.

	* app/actions/select-commands.c
	* app/actions/vectors-commands.c
	* app/dialogs/stroke-dialog.c
	* tools/pdbgen/pdb/edit.pdb
	* tools/pdbgen/pdb/paths.pdb: use GimpStrokeDesc. Simplifies the
	code quite a bit.

	* app/pdb/edit_cmds.c
	* app/pdb/paths_cmds.c: regenerated.
2004-10-22 12:32:31 +00:00
Michael Natterer 14a2a2aa09 remember the param_spec with each radio button instead of with the
2004-10-22  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimppropwidgets.c: remember the param_spec with each
	radio button instead of with the box/frame around them.
2004-10-22 02:15:14 +00:00
Michael Natterer ff02c7af99 app/actions/select-actions.c app/actions/select-commands.[ch]
2004-10-21  Michael Natterer  <mitch@gimp.org>

	* app/actions/select-actions.c
	* app/actions/select-commands.[ch]
	* app/actions/vectors-actions.c
	* app/actions/vectors-commands.[ch]: added actions and callbacks
	to stroke with the last values used without showing the stroke
	dialog. The actions have no menu entries but can be called via
	shortcuts. Fixes bug #135746.

	(Disclaimer: the uglyness of the callbacks shows the need for a
	stroke API overhaul).
2004-10-20 23:14:24 +00:00
Michael Natterer 7ab5fe2903 Replacing the call to gimp_channel_is_empty() by a simple
2004-10-20  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpdrawable-stroke.c
	(gimp_drawable_stroke_scan_convert): Replacing the call to
	gimp_channel_is_empty() by a simple gimp_drawable_mask_intersect()
	was wrong because gimp_channel_is_empty() makes sure that the
	selection doesn't mask itself while being stroked.
2004-10-20 22:06:00 +00:00
Michael Natterer 62ec8b3556 Fixed bug #155733 for libgimp:
2004-10-20  Michael Natterer  <mitch@gimp.org>

	Fixed bug #155733 for libgimp:

	* tools/pdbgen/pdb/drawable.pdb: export drawable_mask_intersect()
	to the PDB and improved documentation for drawable_mask_bounds().

	* app/pdb/drawable_cmds.c
	* app/pdb/internal_procs.c
	* libgimp/gimpdrawable_pdb.[ch]: regenerated.

	* libgimp/gimp.def: changed accordingly.
2004-10-19 23:32:01 +00:00
Michael Natterer cb48cef8be added gimp_drawable_mask_intersect() which returns the same bounding box
2004-10-20  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpdrawable.[ch]: added gimp_drawable_mask_intersect()
	which returns the same bounding box as gimp_drawable_mask_bounds(),
	but returns TRUE only if there is a non-empty intersection between
	the drawable and the selection, or no selection at all. It also
	returns the intersection as x,y,width,height instead of the
	eeky x1,y1,x2,y2.

	* app/core/gimp-edit.c
	* app/core/gimpdrawable-blend.c
	* app/core/gimpdrawable-bucket-fill.c
	* app/core/gimpdrawable-desaturate.c
	* app/core/gimpdrawable-equalize.c
	* app/core/gimpdrawable-histogram.c
	* app/core/gimpdrawable-invert.c
	* app/core/gimpdrawable-stroke.c
	* app/core/gimpimagemap.c
	* app/core/gimpselection.c
	* tools/pdbgen/pdb/color.pdb
	* tools/pdbgen/pdb/transform_tools.pdb: either switch from
	gimp_drawable_mask_bounds() to _intersect() or check the return
	values of _mask_bounds() manually to avoid operations on empty
	areas. Return successfully because it's a nop, not a failure.
	Fixes bug #155733 for the core.

	* app/pdb/color_cmds.c
	* app/pdb/transform_tools_cmds.c: regenerated.
2004-10-19 22:52:04 +00:00
Michael Natterer 5507c47c6d removed 3 mnemonics. No other tool options label has a mnemonic. Addresses
2004-10-19  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimptextoptions.c (gimp_text_options_gui): removed
	3 mnemonics. No other tool options label has a mnemonic.
	Addresses bug #155861.
2004-10-19 17:37:44 +00:00
Michael Natterer 00401dcfe7 app/dialogs/Makefile.am one more dialog split out of actions/.
2004-10-19  Michael Natterer  <mitch@gimp.org>

	* app/dialogs/Makefile.am
	* app/dialogs/vectors-options-dialog.[ch]: one more dialog split
	out of actions/.

	* app/actions/vectors-commands.c: removed it here. Merged more
	utility functions into their only callers.

	* app/actions/dockable-commands.c
	* app/actions/edit-commands.c
	* app/actions/file-commands.c
	* app/actions/palettes-commands.c
	* app/actions/tool-options-commands.c
	* app/actions/view-commands.c: renamed "qbox" and "query_box"
	variables to "dialog".
2004-10-19 14:08:44 +00:00
Michael Natterer 39294079b7 app/dialogs/Makefile.am new files implementing the channel options dialog
2004-10-19  Michael Natterer  <mitch@gimp.org>

	* app/dialogs/Makefile.am
	* app/dialogs/channel-options-dialog.[ch]: new files implementing
	the channel options dialog with a horrid number of 13 construction
	parameters. Still better than having the same code twice, only
	differing in strings used...

	* app/actions/channels-commands.c
	* app/actions/qmask-commands.c: removed the dialog code here and
	use channel_options_dialog_new().
2004-10-19 09:17:37 +00:00
Michael Natterer c49df22eef Action code review and pre-release consistency cleanup:
2004-10-18  Michael Natterer  <mitch@gimp.org>

	Action code review and pre-release consistency cleanup:

	* app/actions/*-actions.c: added some missing and resolved
	conflicting mnemonics, added missing help IDs. Cleaned up the
	*_actions_update() functions.

	* app/actions/channels-actions.c
	* app/actions/layers-actions.c
	* app/actions/vectors-actions.c (*_actions_update): simplified
	the code that figures the prev and next channel,layer,vectors.

	* app/actions/qmask-actions.c: use the same accelerator for
	"qmask-active" and "qmask-toggle". Fixed action sensitivity.

	* app/actions/channels-commands.c
	* app/actions/dockable-commands.c
	* app/actions/documents-commands.c
	* app/actions/gradients-commands.c
	* app/actions/layers-commands.c
	* app/actions/palettes-commands.c
	* app/actions/image-commands.c
	* app/actions/select-commands.c
	* app/actions/vectors-commands.c: folded tons of private utility
	functions into their only callers (they used to be public and
	called from outside before the switch to action based menus).
	Renamed functions and variables saying "query" or "qbox" to
	"dialog". Moved static functions to the end of the files. Misc
	minor cleanups.

	* app/actions/drawable-actions.c
	* app/actions/drawable-commands.c: made the "drawable-visible" and
	"drawable-linked" actions affect the layer if the active drawable
	is a layer mask.

	* app/actions/select-commands.c: added action to stroke with the
	last values used in an attempt to address bug #135746 but #if 0'ed
	it because the approach is too ugly.

	* app/tools/gimpiscissorstool.c: changed mnemonic from I to S.

	* menus/image-menu-xml.in: added more stuff to the (commented out)
	"context" menu.
2004-10-18 11:29:58 +00:00
Michael Natterer 9f6c4515bd should save before comitting... 2004-10-16 20:19:26 +00:00
Michael Natterer c84475c989 moved "item_type" and "signal_name" from GimpItemTreeView to
2004-10-16  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpitemtreeview.[ch]: moved "item_type" and
	"signal_name" from GimpItemTreeView to GimpItemTreeViewClass.
	Removed them from gimp_item_tree_view_new(). Require the view_type
	instead of item_type in gimp_item_tree_view_new().

	* app/widgets/gimpitemtreeview.c
	* app/widgets/gimpdrawabletreeview.c (get_type): made them
	abstract base classes.

	* app/widgets/gimpchanneltreeview.c
	* app/widgets/gimplayertreeview.c
	* app/widgets/gimpvectorstreeview.c (class_init): set the
	item_type and signal_name members if GimpItemTreeViewClass.

	* app/dialogs/dialogs-constructors.c: changed accordingly.
2004-10-16 20:17:30 +00:00
Michael Natterer ea1dc9ab9f added utility function gimp_ui_manager_get_action() which takes
2004-10-16  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpuimanager.[ch]: added utility function
	gimp_ui_manager_get_action() which takes "group_name" and
	"action_name".

	* app/display/gimpdisplayshell-close.c
	* app/widgets/gimpitemtreeview.c
	* app/widgets/gimptoolbox.c
	* app/widgets/gimptooloptionseditor.c: use it.
2004-10-16 17:29:42 +00:00
Michael Natterer f4d7260c64 app/actions/channels-actions.c app/actions/colormap-editor-actions.c
2004-10-16  Michael Natterer  <mitch@gimp.org>

	* app/actions/channels-actions.c
	* app/actions/colormap-editor-actions.c
	* app/actions/documents-actions.c
	* app/actions/tool-options-actions.c
	* app/actions/vectors-actions.c: added more tooltips for actions
	which are used as extended dialog button callbacks.

	* app/widgets/gimpeditor.c (gimp_editor_add_action_button): keep
	the list of extended actions in reverse order.

	* app/widgets/gimpchanneltreeview.c
	* app/widgets/gimpcolormapeditor.c
	* app/widgets/gimpdocumentview.c
	* app/widgets/gimpitemtreeview.c
	* app/widgets/gimplayertreeview.c
	* app/widgets/gimpselectioneditor.c
	* app/widgets/gimptooloptionseditor.c
	* app/widgets/gimpvectorstreeview.c: don't set the tooltips
	manually. Removes another bunch of insane translatable multiline
	format strings. Pass the extended actions in the right order
	to gimp_editor_add_action_button().
2004-10-16 17:10:04 +00:00
Michael Natterer 56ff88ba1b call gimp_item_set_linked(), not gimp_item_set_visible(). Fixes bug
2004-10-16  Michael Natterer  <mitch@gimp.org>

	* app/actions/vectors-commands.c (vectors_linked_cmd_callback):
	call gimp_item_set_linked(), not gimp_item_set_visible().
	Fixes bug #155578
2004-10-16 15:51:55 +00:00
Michael Natterer 8effb0cfaf Ported the layers, channels and paths dialogs from
2004-10-16  Michael Natterer  <mitch@gimp.org>

	Ported the layers, channels and paths dialogs from
	gimp_editor_add_button() to gimp_editor_add_action_button(),
	removing a massive amount of duplicated code, sensitivity logic
	and confusing utility functions.

	* app/actions/channels-actions.c
	* app/actions/channels-commands.[ch]
	* app/actions/layers-actions.c
	* app/actions/layers-commands.[ch]
	* app/actions/vectors-actions.c
	* app/actions/vectors-commands.[ch]: added "foo-new-default"
	actions and callbacks which create items without a dialog,
	optionally using default values from a passed template. Removed
	all public utility function that were passed as function pointers
	to widget construtors. Added tooltips to all actions which are now
	used for dialog buttons.

	* app/widgets/gimpeditor.c (gimp_editor_add_action_button):
	automatically create multi-line tooltips showing the modifiers for
	extended action buttons. Removes the need for lots of insane
	format strings that need to be translated correctly.

	* app/widgets/gimpitemtreeview.[ch] (struct GimpItemTreeViewClass):
	replaced tooltip and help_id strings by action names.

	(struct GimpItemTreeView)
	(gimp_item_tree_view_new): removed "edit", "new" and "activate"
	function pointers.

	(gimp_item_tree_view_constructor): create all buttons
	with gimp_editor_add_action_button(), using the action names
	from GimpItemTreeViewClass.

	Removed tons of "clicked" callbacks and all code which sets the
	buttons' sensitivity. They are not needed any longer.

	Require all subclasses to implement GimpItemTreeView::new_item(),
	a new virtual function which creates a plain new item without
	showing a dialog.

	* app/widgets/gimpdrawabletreeview.c
	* app/widgets/gimpchanneltreeview.c
	* app/widgets/gimplayertreeview.c
	* app/widgets/gimpvectorstreeview.c: fill in the action names and
	implement GimpItemTreeView::new_item(). Removed all button
	sensitivity logic.

	* app/dialogs/dialogs-constructors.c: changed accordingly. Doesn't
	include anything from actions/ any more.
2004-10-16 15:48:23 +00:00
Michael Natterer a89d595b8e fixed parameter descriptions for layer_add_mask() and layer_remove_mask().
2004-10-15  Michael Natterer  <mitch@gimp.org>

	* tools/pdbgen/pdb/layer.pdb: fixed parameter descriptions for
	layer_add_mask() and layer_remove_mask().

	* app/pdb/layer_cmds.c
	* libgimp/gimplayer_pdb.c: regenerated.
2004-10-15 16:10:16 +00:00
Michael Natterer ee66d409d7 app/actions/images-commands.[ch] made some public functions private or
2004-10-15  Michael Natterer  <mitch@gimp.org>

	* app/actions/images-commands.[ch]
	* app/actions/templates-commands.[ch]: made some public functions
	private or removed them entirely by folding their code into their
	callers. They used to be passed as function pointers to widgets in
	the pre action-based dialog buttons era.
2004-10-15 15:13:53 +00:00
Michael Natterer 1aaa68ee7d raise the image's displays on double-click in the dirty image list.
2004-10-15  Michael Natterer  <mitch@gimp.org>

	* app/dialogs/quit-dialog.c: raise the image's displays on
	double-click in the dirty image list.
2004-10-15 14:34:34 +00:00
Michael Natterer e2fd8ab534 Fixed bug #155328:
2004-10-15  Michael Natterer  <mitch@gimp.org>

	Fixed bug #155328:

	* app/actions/vectors-actions.c (vectors_actions_update): don't
	set the "selection to path" actions sensitive if there is no
	image.

	* app/widgets/gimpitemtreeview.c: update the UI manager after
	setting the view's image. Connect to GimpImage::flush() and
	update the UI manager in the callback, too.
2004-10-15 12:27:07 +00:00
Michael Natterer a8279417a1 removed duplicate "view-zoom-in" action (cut'n'paste error) and fixed the
2004-10-15  Michael Natterer  <mitch@gimp.org>

	* app/actions/view-actions.c (view_zoom_actions): removed
	duplicate "view-zoom-in" action (cut'n'paste error) and fixed the
	swapped "zoom in/out a lot" actions. Fixes bug #155446.
2004-10-15 11:55:39 +00:00
Sven Neumann 428a80a1ee removed the "Density" label. It wasn't helpful and caused the transform
2004-10-15  Sven Neumann  <sven@gimp.org>

	* app/tools/gimptransformoptions.c: removed the "Density" label.
	It wasn't helpful and caused the transform options to be wider than
	necessary.

	* app/tools/gimpblendoptions.c
	* app/tools/gimppaintoptions-gui.c
	* app/tools/gimptransformoptions.c: let combo boxes expand
	horizontally like we do in other (all ?) dialogs.

	* app/widgets/gimptemplateeditor.c
	(gimp_template_editor_aspect_callback): update the pixel size label.
2004-10-14 22:55:18 +00:00
Michael Natterer 27c2be7cea libgimpwidgets/gimpwidgets.c app/widgets/gimpenumwidgets.[ch]
2004-10-14  Michael Natterer  <mitch@gimp.org>

	* libgimpwidgets/gimpwidgets.c
	* app/widgets/gimpenumwidgets.[ch]
	* app/widgets/gimppropwidgets.c
	* app/actions/layers-commands.c
	* app/dialogs/convert-dialog.c
	* app/tools/gimpblendoptions.c
	* app/tools/gimpbucketfilloptions.c
	* app/tools/gimpcolorbalancetool.c
	* app/tools/gimpcolorizetool.c
	* app/tools/gimpcoloroptions.c
	* app/tools/gimpcurvestool.c
	* app/tools/gimphuesaturationtool.c
	* app/tools/gimpinkoptions-gui.c
	* app/tools/gimplevelstool.c
	* app/tools/gimppaintoptions-gui.c
	* app/tools/gimpselectionoptions.c
	* app/tools/gimptransformoptions.c: the child of a GimpFrame must
	not have any border width. Fixes many subtle misalignments.
2004-10-14 15:44:13 +00:00
Sven Neumann 0b6f4114d8 added "message" function to the GimpProgress interface. Call
2004-10-14  Sven Neumann  <sven@gimp.org>

	* app/core/gimpprogress.[ch]: added "message" function to the
	GimpProgress interface. Call gimp_message() if it is unimplemented.

	* app/plug-in/plug-in-progress.[ch]: added new function
	plug_in_progress_message() that passes the message to the current
	proc_frame's progress.

	* app/widgets/gimpthumbbox.c: implement GimpProgress::message.
	Just do nothing in the implementation. We don't want to see
	messages from file plug-ins that we use to create the thumbnails.

	* tools/pdbgen/pdb/message.pdb
	* app/pdb/message_cmds.c: if there's a current plug-in, dispatch
	the message by calling plug_in_progress_message().

	* app/display/gimpdisplayshell-close.c: fixed wrong types in
	function calls.
2004-10-14 15:15:03 +00:00
Michael Natterer 6030036fe2 use GIMP_HELP_COLOR_DIALOG as help_id.
2004-10-14  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpcolordialog.c (gimp_color_dialog_new): use
	GIMP_HELP_COLOR_DIALOG as help_id.
2004-10-14 14:34:01 +00:00
Michael Natterer 726d805872 purely cosmetic.
2004-10-14  Michael Natterer  <mitch@gimp.org>

	* app/actions/dialogs-commands.c: purely cosmetic.
2004-10-14 14:12:40 +00:00
Michael Natterer 1e4203e665 register GimpConvertPaletteType with the type system.
2004-10-14  Michael Natterer  <mitch@gimp.org>

	* app/core/core-enums.[ch]: register GimpConvertPaletteType with
	the type system.

	* app/widgets/gimpwidgets-utils.c (gimp_enum_radio_frame_add):
	fixed to insert the widget at the right place in the radio box.

	* app/dialogs/convert-dialog.c: use enum widgets and
	gimp_enum_radio_frame_add(), resulting in a much better looking
	dialog with much less lines of code.
2004-10-14 13:44:06 +00:00
Michael Natterer 73279e5de0 correct UTF-8 spelling of João S. O. Bueno Calligaris.
2004-10-14  Michael Natterer  <mitch@gimp.org>

	* tools/authorsgen/contributors: correct UTF-8 spelling of
	João S. O. Bueno Calligaris.

	* AUTHORS
	* app/dialogs/authors.h: regenerated.
2004-10-14 10:37:07 +00:00
Sven Neumann 11ad04b292 creata an UTF-8 filename from the image URI and display that instead of
2004-10-14  Sven Neumann  <sven@gimp.org>

	* app/actions/file-commands.c (file_revert_cmd_callback): creata
	an UTF-8 filename from the image URI and display that instead of
	the URI.

	* app/dialogs/convert-dialog.c (convert_dialog_new): removed the
	palette size warning for transparent images. The number of colors
	is already adjusted to 255. This text was IMO more frightening
	than helpful.
2004-10-13 23:03:12 +00:00
Kevin Cozens f92848d2ef Fixed a spelling error.
2004-10-13  Kevin Cozens  <kcozens@cvs.gimp.org>

    * app/widgets/gimpactionview.c: Fixed a spelling error.
2004-10-13 21:51:40 +00:00
Sven Neumann 479e65e388 improved handling of parent widget; probably just being paranoid here.
2004-10-13  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpmessagedialog.c: improved handling of parent
	widget; probably just being paranoid here.

	* app/actions/image-commands.c
	* app/dialogs/image-new-dialog.c: ported memory size confirmation
	dialogs to GimpMessageDialog.
2004-10-13 19:02:37 +00:00
Sven Neumann abc9110b30 app/actions/plug-in-commands.c app/actions/templates-commands.c ported
2004-10-13  Sven Neumann  <sven@gimp.org>

	* app/actions/plug-in-commands.c
	* app/actions/templates-commands.c
	* app/actions/tool-options-commands.c: ported more boolean queries
	to GimpMessageDialog.
2004-10-13 15:48:44 +00:00
Sven Neumann 2b2737f2ad handle parent widget not being a GtkWindow by calling
2004-10-13  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpmessagedialog.c: handle parent widget not being
	a GtkWindow by calling gtk_widget_get_toplevel().

	* app/actions/data-commands.c
	* app/actions/edit-commands.c
	* app/actions/file-commands.c: ported more boolean queries to
	GimpMessageDialog.
2004-10-13 15:27:00 +00:00
Sven Neumann 8300c550e3 app/widgets/Makefile.am app/widgets/widgets-types.h added a simple message
2004-10-13  Sven Neumann  <sven@gimp.org>

	* app/widgets/Makefile.am
	* app/widgets/widgets-types.h
	* app/widgets/gimpmessagedialog.[ch]: added a simple message
	dialog to avoid code duplication.

	* app/widgets/gimpmessagebox.c: set the border width to 12 pixels.

	* app/dialogs/file-save-dialog.c
	* app/dialogs/quit-dialog.c
	* app/display/gimpdisplayshell-close.c
	* app/widgets/gimperrordialog.c
	* app/widgets/gimphelp.c
	* app/widgets/gimpactionview.c: use the new GimpMessageDialog.
2004-10-13 14:35:28 +00:00
Michael Natterer c85906af87 app/actions/image-actions.c added menu branch "<Image>/Image/Guides".
2004-10-13  Michael Natterer  <mitch@gimp.org>

	* app/actions/image-actions.c
	* menus/image-menu.xml.in: added menu branch "<Image>/Image/Guides".

	* plug-ins/script-fu/scripts/Makefile.am
	* plug-ins/script-fu/scripts/guides-from-selection.scm
	* plug-ins/script-fu/scripts/guides-new-percent.scm
	* plug-ins/script-fu/scripts/guides-new.scm
	* plug-ins/script-fu/scripts/guides-remove-all.scm: added new
	scripts from Alan Horkan. Fixes bug #119667.
2004-10-13 12:58:51 +00:00
Sven Neumann 8a5502f89e changed the description for GIMP_HELP_BROWSER_GIMP.
2004-10-13  Sven Neumann  <sven@gimp.org>

	* app/widgets/widgets-enums.[ch]: changed the description for
	GIMP_HELP_BROWSER_GIMP.

	* app/dialogs/file-save-dialog.c:
	* app/widgets/gimphelp.c: use a GimpDialog embedding a
	GimpMessageBox instead of gimp_query_boolean_box which looks
	somewhat old fashioned.
2004-10-13 11:57:07 +00:00
Sven Neumann 6b489baaeb improved error messages on missing help browser plug-in.
2004-10-13  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimphelp.c: improved error messages on missing help
	browser plug-in.

	* libgimpthumb/gimpthumb-utils.c
	* libgimpthumb/gimpthumbnail.c: improved documentation.
2004-10-13 10:34:02 +00:00
Sven Neumann be8240bc53 changed button label.
2004-10-13  Sven Neumann  <sven@gimp.org>

	* app/display/gimpdisplayshell-close.c
	(gimp_display_shell_close_dialog): changed button label.
2004-10-13 02:29:41 +00:00
Sven Neumann 64e4c06340 changed rounding.
2004-10-13  Sven Neumann  <sven@gimp.org>

	* app/display/gimpdisplayshell-close.c: changed rounding.
2004-10-13 01:56:06 +00:00
Michael Natterer 1c6a1ca10a don't forget to reset the template combo on RESPONSE_RESET.
2004-10-13  Michael Natterer  <mitch@gimp.org>

	* app/dialogs/image-new-dialog.c (image_new_response): don't
	forget to reset the template combo on RESPONSE_RESET.
2004-10-13 01:52:48 +00:00
Michael Natterer 12280a31a1 keep the container of dirty images up to date.
2004-10-13  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpdisplay-foreach.c: keep the container of dirty
	images up to date.

	* app/dialogs/quit-dialog.c: fixed model/view behavior here, too.

	(both are still far from perfect)
2004-10-13 01:39:57 +00:00
Sven Neumann e5fe5e7221 keep the time uptodate.
2004-10-13  Sven Neumann  <sven@gimp.org>

	* app/display/gimpdisplayshell-close.c
	(gimp_display_shell_close_dialog): keep the time uptodate.
2004-10-13 01:04:27 +00:00
Sven Neumann 280a497f48 ref the imagefile while creating the thumbnail.
2004-10-13  Sven Neumann  <sven@gimp.org>

	* app/core/gimpimagefile.c (gimp_imagefile_create_thumbnail): ref
	the imagefile while creating the thumbnail.

	* app/core/gimpimagefile.[ch]
	* app/widgets/gimpthumbbox.c (gimp_thumb_box_auto_thumbnail): moved
	the tricky part about thumbnail creation into the new function
	gimp_imagefile_create_thumbnail_weak().
2004-10-12 23:25:19 +00:00
Michael Natterer fed327d630 added missing and resolved conflicting mnemonics.
2004-10-13  Michael Natterer  <mitch@gimp.org>

	* app/dialogs/preferences-dialog.c (prefs_dialog_new): added
	missing and resolved conflicting mnemonics.
2004-10-12 22:57:15 +00:00
Sven Neumann ab6c609ce1 renamed struct member "unit" to "resolution_unit".
2004-10-12  Sven Neumann  <sven@gimp.org>

	* app/core/gimpimage.[ch]: renamed struct member "unit" to
	"resolution_unit".

	* app/actions/image-commands.c
	* app/core/gimp-edit.c
	* app/core/gimpimage-duplicate.c
	* app/core/gimpimage-undo-push.c
	* app/dialogs/info-window.c
	* app/vectors/gimpvectors-export.c
	* app/widgets/gimptoolbox-dnd.c:
	* app/xcf/xcf-load.c
	* app/xcf/xcf-save.c: changed accordingly. Use gimp_image_get_unit()
	where appropriate.

	* app/core/gimptemplate.c (gimp_template_set_from_image): fixed
	unit handling. Don't touch the template unit, it is used as the
	initial display unit. This will need further changes...
2004-10-12 21:28:53 +00:00
Michael Natterer fcc342b00b need to pack the widget expanding. Fixes pattern container entries.
2004-10-12  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpwidgets-utils.c (gimp_enum_radio_frame_add):
	need to pack the widget expanding. Fixes pattern container
	entries.
2004-10-12 20:37:50 +00:00
Sven Neumann 92e7af4061 fixed unit handling. Right-align the labels displaying the cursor
2004-10-12  Sven Neumann  <sven@gimp.org>

	* app/dialogs/info-window.[ch]: fixed unit handling. Right-align
	the labels displaying the cursor position. Renamed the "Extended"
	tab to "Cursor". Renamed the API accordingly.

	* app/display/gimpdisplayshell-cursor.c: changed accordingly.
2004-10-12 20:14:25 +00:00
Michael Natterer fd6b06675e if the drawable is a channel, pass clip_result as FALSE. Need to do this
2004-10-12  Michael Natterer  <mitch@gimp.org>

	* app/actions/drawable-commands.c (drawable_rotate_cmd_callback):
	if the drawable is a channel, pass clip_result as FALSE. Need to
	do this here for rotating only because it can't be decided
	generically in GimpChannel. Fixes crash when rotating channels
	or layer masks.

	Use the undo_desc from GimpItemClass instead of passing "Flip
	Layer" and "Rotate Layer".
2004-10-12 19:59:37 +00:00
Sven Neumann f398bbfec6 minor cleanup.
2004-10-12  Sven Neumann  <sven@gimp.org>

	* app/file/file-open.c: minor cleanup.

	* app/file/file-save.c (file_save_as): no need to fiddle with the
	image name, the URI is taken from the imagefile anyway.
2004-10-12 19:04:03 +00:00
Sven Neumann 1fca86a66d set "layers-crop" insensitive if the selection is empty.
2004-10-12  Sven Neumann  <sven@gimp.org>

	* app/actions/layers-actions.c (layers_actions_update): set
	"layers-crop" insensitive if the selection is empty.

	* plug-ins/script-fu/scripts/alien-glow-button.scm
	* plug-ins/script-fu/scripts/alien-glow-logo.scm
	* plug-ins/script-fu/scripts/basic2-logo.scm
	* plug-ins/script-fu/scripts/gradient-bevel-logo.scm: use "Sans
	Bold" instead of "Futura_Poster". The underscore in the font name
	used to confuse intltool (bug #137029) and the freefont package
	isn't that widely used any longer anyway.
2004-10-12 15:51:43 +00:00
Sven Neumann 22a1384b5a app/widgets/Makefile.am app/widgets/widgets-types.h added new widget
2004-10-12  Sven Neumann  <sven@gimp.org>

	* app/widgets/Makefile.am
	* app/widgets/widgets-types.h
	* app/widgets/gimpsizebox.[ch]: added new widget GimpSizeBox.

	* app/widgets/gimppropwidgets.c: the order of setting the X and Y
	properties does matter.

	* app/dialogs/Makefile.am
	* app/dialogs/scale-dialog.[ch]: added first version of a new
	Scale dialog in an attempt to address bug #151022.

	* app/actions/layers-commands.c: use the new scale dialog.
2004-10-12 14:59:14 +00:00
Sven Neumann 5ae3d5952b added mnemonics for the size entries.
2004-10-12  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimptemplateeditor.c: added mnemonics for the size
	entries.
2004-10-12 14:14:16 +00:00
Michael Natterer eb8ef9fe90 removed the recently added utility functions again.
2004-10-12  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimptooloptions-gui.[ch]: removed the recently added
	utility functions again.

	* app/widgets/Makefile.am
	* app/widgets/gimpviewablebox.[ch]
	* app/widgets/gimpwidgets-utils.[ch]: and added cleaned up
	versions here.

	* app/tools/gimpbucketfilloptions.c
	* app/tools/gimpclonetool.c
	* app/tools/gimppaintoptions-gui.c
	* app/tools/gimptextoptions.c: changed accordingly.

	* app/dialogs/convert-dialog.c: use gimp_palette_box_new() instead
	of reinventing the wheel.
2004-10-12 12:06:50 +00:00
Sven Neumann b09225b1a1 use a larger icon size for GimpImagefile views.
2004-10-12  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpaction.c (gimp_action_set_proxy): use a larger
	icon size for GimpImagefile views.

	* themes/Default/images/stock-frame-64.png: removed the 1 pixel
	wide empty border around the frame.

	* app/widgets/gimpviewrenderer-frame.c: adjusted the hardcoded values.
2004-10-12 10:37:11 +00:00
Sven Neumann 9adf514e7d tweaked table spacings to get the Height label aligned with the entry
2004-10-12  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimptemplateeditor.c: tweaked table spacings to get
	the Height label aligned with the entry again.
2004-10-12 00:12:31 +00:00
Sven Neumann 3a81bf7314 set the "skip_taskbar_hint" and "skip_pager_hint" properties on the
2004-10-12  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpprogressdialog.c (gimp_progress_dialog_new): set
	the "skip_taskbar_hint" and "skip_pager_hint" properties on the
	progress window.
2004-10-11 23:29:32 +00:00
Michael Natterer 70644583d7 removed ColorDialog typedef.
2004-10-11  Michael Natterer  <mitch@gimp.org>

	* app/dialogs/dialogs-types.h: removed ColorDialog typedef.
2004-10-11 15:02:12 +00:00
Michael Natterer 08bab5b31d added utility functions which create a
2004-10-11  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimptooloptions-gui.[ch]: added utility functions
	which create a GimpViewableButton+GimpContainerEntry combo for
	brushes, patterns, gradients and fonts and a very ugly utility
	function which packs one of these combos into a GtkFrame returned
	by gimp_prop_enum_radio_frame_new(). This stuff does not really
	belong here but is too ugly to be moved to a more general place.

	* app/tools/gimpbucketfilloptions.c
	* app/tools/gimppaintoptions-gui.c
	* app/tools/gimptextoptions.c: use the new utility functions. Moved
	the pattern previews into the radio frame where using the pattern
	is selected. Make them insensitive if using the pattern is not
	selected.
2004-10-11 13:27:42 +00:00
Sven Neumann 95e578b806 tweaked the thumbnail related blurbs.
2004-10-11  Sven Neumann  <sven@gimp.org>

	* app/config/gimprc-blurbs.h: tweaked the thumbnail related blurbs.

	* app/dialogs/preferences-dialog.c: group the thumbnail related
	controls together. Could probably still be improved...
2004-10-11 12:43:59 +00:00
Sven Neumann c52bcc6dd4 when recreating the thumbnail, delete old thumbnails and create it in the
2004-10-11  Sven Neumann  <sven@gimp.org>

	* app/actions/documents-commands.c
	(documents_recreate_preview_cmd_callback): when recreating the
	thumbnail, delete old thumbnails and create it in the configured
	thumbnail size instead of the container view preview size.

	* libgimpthumb/gimpthumbnail.c (gimp_thumbnail_update_thumb):
	reset the image info when the thumbnail state changes.
2004-10-11 12:28:58 +00:00
Sven Neumann 5460383b57 construct a case-insensitive glob pattern to use when filtering for file
2004-10-11  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpfiledialog.c: construct a case-insensitive glob
	pattern to use when filtering for file extensions.
2004-10-11 11:57:32 +00:00
Michael Natterer 1db1a19574 user-visible counting starts at 1, not 0.
2004-10-11  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpthumbbox.c (gimp_thumb_box_create_thumbnails):
	user-visible counting starts at 1, not 0.
2004-10-11 11:27:26 +00:00
Michael Natterer 422122665e added missing contributors. Thanks to Kevin Cozens for going through
2004-10-11  Michael Natterer  <mitch@gimp.org>

	* tools/authorsgen/contributors: added missing contributors.
	Thanks to Kevin Cozens for going through ChangeLog and making a list.

	* AUTHORS
	* app/dialogs/authors.h: regenerated.
2004-10-11 10:40:43 +00:00
Sven Neumann 85866db449 clarified.
2004-10-11  Sven Neumann  <sven@gimp.org>

	* app/batch.c: clarified.
2004-10-11 00:23:27 +00:00
Sven Neumann 9203906065 libgimpthumb/gimpthumb-utils.[ch] added an API to delete thumbnails.
2004-10-11  Sven Neumann  <sven@gimp.org>

	* libgimpthumb/gimpthumb-utils.[ch]
	* libgimpthumb/gimpthumb.def: added an API to delete thumbnails.

	* app/widgets/gimpthumbbox.c (gimp_thumb_box_create_thumbnail):
	when recreating a thumbnail on user request, delete all existing
	thumbnails for it.

	* plug-ins/common/AlienMap2.c: removed unused variable.
2004-10-10 23:02:34 +00:00
Sven Neumann bfeb12d2bb handle NULL as viewable parameter as a workaround for bug #149906.
2004-10-10  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpcontainerview.c (gimp_container_view_lookup):
	handle NULL as viewable parameter as a workaround for bug #149906.

	* app/widgets/gimpthumbbox.c (gimp_thumb_box_auto_thumbnail): made
	the code more robust.

	* app/xcf/xcf-private.h
	* app/xcf/xcf.c: added a const qualifier.
2004-10-10 14:33:01 +00:00
David Odin 450dc157ab fixed a typo in the double-inclusion guard.
* app/dialogs/dialogs.h: fixed a typo in the double-inclusion guard.
2004-10-09 21:47:26 +00:00
Sven Neumann b9143899d3 AUTHORS regenerated. Someone should look into updating the list of
2004-10-09  Sven Neumann  <sven@gimp.org>

	* AUTHORS
	* app/dialogs/authors.h: regenerated. Someone should look into
	updating the list of contributors for the 2.2 release ...
2004-10-09 10:59:23 +00:00
Sven Neumann dc539fda18 tweaked the text shown while updating the preview so that the dialog
2004-10-08  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpthumbbox.c: tweaked the text shown while
	updating the preview so that the dialog doesn't need to resize.
2004-10-08 22:33:07 +00:00