Commit Graph

7786 Commits

Author SHA1 Message Date
Sven Neumann 3682b8e9e0 warn if a plug-in attempts to register a menu path for a procedure that it
2006-01-11  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/pdb/plug_in.pdb (plugin_menu_register): warn if a
	plug-in attempts to register a menu path for a procedure that it
	didn't install.

	* app/pdb/plug_in_cmds.c: regenerated.
2006-01-11 17:30:46 +00:00
Michael Natterer 55cc42339b implement GtkWidget::hide() and set the the focus widget to NULL, so a
2006-01-07  Michael Natterer  <mitch@gimp.org>

	* libgimpwidgets/gimpdialog.c: implement GtkWidget::hide() and set
	the the focus widget to NULL, so a focussed entry emits focus_out
	and its callbacks are invoked immediately (before the call to
	gtk_widget_hide() returns). Fixes crashes and warnings in tool
	dialogs when hitting escape while a spinbutton is being edited.

	* app/tools/gimptransformtool.c
	(gimp_transform_tool_force_expose_preview): return silently
	instead of warning when being called while the draw tool is not
	active (same scenario as above).
2006-01-07 17:47:24 +00:00
Sven Neumann c2b2573550 applied patch from Tobias Lenz that plugs a memleak and yields another
2006-01-07  Sven Neumann  <sven@gimp.org>

	* app/base/siox.c: applied patch from Tobias Lenz that plugs a
	memleak and yields another small speedup.
2006-01-07 17:06:05 +00:00
Michael Natterer d8fbc7d2df depend on gtk+ >= 2.8.8 also at runtime. We don't want to debug
2006-01-05  Michael Natterer  <mitch@gimp.org>

	* app/gui/gui.c (gui_sanity_check): depend on gtk+ >= 2.8.8 also
	at runtime. We don't want to debug everybody's gtk problems...
2006-01-05 17:05:33 +00:00
Sven Neumann 656e782c63 allow to change the spacing of brushes the user doesn't have write access
2006-01-05  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/pdb/brush.pdb (gimp-brush-set-spacing): allow to
	change the spacing of brushes the user doesn't have write access
	to. The user interface allows to do that as well.

	* app/pdb/brush_cmds.c: regenerated.
2006-01-05 08:37:17 +00:00
Michael Natterer 999f58b86f fixed docs for gimp-context-push/pop.
2006-01-04  Michael Natterer  <mitch@gimp.org>

	* tools/pdbgen/pdb/context.pdb: fixed docs for gimp-context-push/pop.

	* app/pdb/context_cmds.c
	* libgimp/gimpcontext_pdb.c: regenerated.
2006-01-04 22:31:45 +00:00
Sven Neumann a779cd5e09 added missing space (bug #325617).
2006-01-03  Sven Neumann  <sven@gimp.org>

	* app/config/gimprc-blurbs.h (SWAP_PATH_BLURB): added missing space
	(bug #325617).
2006-01-03 14:49:59 +00:00
Michael Natterer d78aaac8bf tools/pdbgen/pdb/context.pdb added gimp-context-get/set-paint-method which
2006-01-02  Michael Natterer  <mitch@gimp.org>

	* tools/pdbgen/pdb/context.pdb
	* libgimp/gimp.def: added gimp-context-get/set-paint-method which
	get/set the context's paint-info by name. Use these functions to
	stroke with any paint method (still only with its default paint
	options).

	* app/pdb/context_cmds.c
	* app/pdb/internal_procs.c
	* libgimp/gimpcontext_pdb.[ch]: regenerated.
2006-01-02 17:21:42 +00:00
Sven Neumann 6f1f9c1d46 app/core/gimpimage-convert-data.h applied patch by Adam D. Moss that
2006-01-02  Sven Neumann  <sven@gimp.org>

	* app/core/gimpimage-convert-data.h
	* app/core/gimpimage-convert.c: applied patch by Adam D. Moss that
	replaces the default dither matrix by a 32x32 Bayer pattern (see
	bug #136604).
2006-01-02 14:53:34 +00:00
Sven Neumann ca648066d0 set "inline-completion" and unset "popup-set-width" properties.
2005-12-30  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpcontainerentry.c (gimp_container_entry_init):
	set "inline-completion" and unset "popup-set-width" properties.
2005-12-30 01:56:37 +00:00
Sven Neumann 5bae6a5647 app/actions/image-actions.c app/actions/view-actions.c use new stock icons
2005-12-30  Sven Neumann  <sven@gimp.org>

	* app/actions/image-actions.c
	* app/actions/view-actions.c
	* app/dialogs/image-properties-dialog.c: use new stock icons from
	GTK+ 2.8.
2005-12-30 01:45:40 +00:00
Michael Natterer a52ad9d3c4 #define GIMP_DOCKABLE_DRAG_OFFSET publically.
2005-12-30  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpdockable.[ch]: #define GIMP_DOCKABLE_DRAG_OFFSET
	publically.

	* app/widgets/gimpdockbook.c (gimp_dockbook_tab_drag_end): use the
	define to reset the dockable's drag offsets.
2005-12-30 01:37:35 +00:00
Michael Natterer a66bf70163 clean up treeview/model code.
2005-12-30  Michael Natterer  <mitch@gimp.org>

	* app/dialogs/preferences-dialog.c
	(prefs_tree_select_callback)
	(prefs_notebook_page_callback): clean up treeview/model code.
2005-12-30 00:38:38 +00:00
Sven Neumann 46644a68bb typo.
2005-12-30  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpgradienteditor.c (view_events): typo.
2005-12-30 00:00:21 +00:00
Sven Neumann a896bd1534 commented out gravity setting. While it's nice with
2005-12-29  Sven Neumann  <sven@gimp.org>

	* app/display/gimpdisplayshell.c (gimp_display_shell_new):
	commented out gravity setting. While it's nice with
	"resize-windows-on-zoom", it doesn't yield satisfying behaviour in
	most cases.
2005-12-29 22:23:29 +00:00
Sven Neumann 06d21f93a4 set the current notebook page to the dockable that was just added.
2005-12-29  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpdockbook.c (gimp_dockbook_dockable_added): set
	the current notebook page to the dockable that was just added.
2005-12-29 22:07:38 +00:00
Sven Neumann 047770d011 added missing cast 2005-12-29 22:05:12 +00:00
Sven Neumann b07cbb500f fiddle with the "focus-on-map" window hint to prevent the dialogs from
2005-12-29  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpdialogfactory.c (gimp_dialog_factories_show_foreach):
	fiddle with the "focus-on-map" window hint to prevent the dialogs
	from grabbing the focus away from the image window. Fixes bug #167762
	for window managers supporting this hint.

	* app/display/gimpdisplayshell-callbacks.c: removed redundant call
	to gdk_window_focus() that wasn't having the desired effect anyway.
2005-12-29 21:32:46 +00:00
Simon Budig 0f0a0f4b63 new function: image_add_vectors
2005-12-29  Simon Budig  <simon@gimp.org>

	* tools/pdbgen/pdb/image.pdb: new function:
	    image_add_vectors

	* tools/pdbgen/pdb/vectors.pdb: new functions:
	    vectors_get_strokes
	    vectors_stroke_get_point_at_dist
	    vectors_stroke_close

	removed nonfunctional undo code (that does not belong here anyways)
	and fixed a bug in [...]_cubicto.

	* app/pdb/image_cmds.c
	* app/pdb/internal_procs.c
	* app/pdb/vectors_cmds.c
	* libgimp/gimpimage_pdb.[ch]
	* libgimp/gimpvectors_pdb.[ch]: regenerated.
2005-12-29 20:55:07 +00:00
Sven Neumann 8fec4cd8c1 split gimp_dialog_factories_toggle() into two functions. Turned the
2005-12-29  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpdialogfactory.[ch]: split
	gimp_dialog_factories_toggle() into two functions. Turned the
	tri-state into a simple boolean state. Dialogs are now either
	shown or not, without treating the toolbox any special.

	* app/actions/dialogs-commands.c
	* app/display/gimpdisplayshell-callbacks.c: changed accordingly.
2005-12-29 20:47:29 +00:00
Sven Neumann e341b0e319 added --license command-line option.
2005-12-29  Sven Neumann  <sven@gimp.org>

	* app/main.c: added --license command-line option.

	* docs/gimp.1.in: documented the new option.
2005-12-29 18:39:03 +00:00
Sven Neumann aa590be77a set the source dockable insensitive during the drag operation.
2005-12-29  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpdockbook.c: set the source dockable insensitive
	during the drag operation.
2005-12-29 16:42:45 +00:00
Simon Budig 3c257b69ba extended gimp_bezier_stroke_new_ellipse() with an "angle" parameter.
2005-12-29  Simon Budig  <simon@gimp.org>

	* app/vectors/gimpbezierstroke.[ch]: extended
	gimp_bezier_stroke_new_ellipse() with an "angle" parameter.
	* app/vectors/gimpvectors-import.c: changed accordingly, untabbified.

	* tools/pdbgen/pdb/vectors.pdb: added PDB-wrappers for
	      vectors_bezier_stroke_new_moveto
	      vectors_bezier_stroke_lineto
	      vectors_bezier_stroke_conicto
	      vectors_bezier_stroke_cubicto
	      vectors_bezier_stroke_new_ellipse

	Undo does not work properly yet.

	* app/pdb/internal_procs.c
	* app/pdb/vectors_cmds.c
	* libgimp/gimpvectors_pdb.[ch]: regenerated.
2005-12-29 16:05:31 +00:00
Sven Neumann 278b498e41 moved some code to an internal helper function.
2005-12-29  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpdockable.c (gimp_dockable_expose_event): moved
	some code to an internal helper function.
2005-12-29 16:00:28 +00:00
Sven Neumann 850e7af79e only set the horizontal offset from the button press location 2005-12-29 04:45:41 +00:00
Sven Neumann 405c0e1234 invalidate stored coordinates on button release.
2005-12-29  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpdockable.[ch]: invalidate stored coordinates on
	button release.
2005-12-29 04:28:41 +00:00
Sven Neumann 9c6dbc4719 let the drag icon mimic the appearance of a notebook tab.
2005-12-29  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpdockbook.c: let the drag icon mimic the
	appearance of a notebook tab.
2005-12-29 04:05:50 +00:00
Sven Neumann 7ab05fddea use the width of the source widget as the minimum width of the drag icon.
2005-12-29  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpdockbook.c (gimp_dockbook_tab_drag_begin): use
	the width of the source widget as the minimum width of the drag
	icon.
2005-12-29 03:48:35 +00:00
Sven Neumann 2723c2e790 store coordinates of last button press event.
2005-12-29  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpdockable.[ch]: store coordinates of last button
	press event.

	* app/widgets/gimpdockbook.c (gimp_dockbook_tab_drag_begin): set
	the drag hotspot to the mouse position that started the drag.
2005-12-29 03:12:26 +00:00
Sven Neumann 59fa7c4e25 draw the standalone dockable like a notebook tab to indicate that it can
2005-12-29  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpdockable.c (gimp_dockable_expose_event): draw the
	standalone dockable like a notebook tab to indicate that it can be
	dragged.
2005-12-29 02:27:32 +00:00
Sven Neumann 99d8fa90d0 allow to unset the tooltip by passing NULL.
2005-12-29  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimphelpui.c (gimp_help_set_help_data): allow to
	unset the tooltip by passing NULL.

	* app/widgets/gimpdockseparator.c: unset the tooltip while the same
	text is being shown as a label.
2005-12-29 01:33:38 +00:00
Michael Natterer a0d231b33c renamed GIMP_PDB_PATH to GIMP_PDB_VECTORS and add the former as an alias
2005-12-29  Michael Natterer  <mitch@gimp.org>

	* libgimpbase/gimpbaseenums.[ch] (enum GimpPDBArgType): renamed
	GIMP_PDB_PATH to GIMP_PDB_VECTORS and add the former as an alias
	for the latter.

	* libgimp/gimp.h (union _GimpParamData): added back d_path member
	to maintian source compatibility.

	* tools/pdbgen/pdb.pl
	* libgimp/gimp.c
	* app/pdb/procedural_db.c
	* app/plug-in/plug-in-params.c
	* libgimpbase/gimpprotocol.[ch]
	* plug-ins/pygimp/pygimp-pdb.c
	* plug-ins/script-fu/siod-wrapper.c: s/GIMP_PDB_PATH/GIMP_PDB_VECTORS/

	* app/pdb/image_cmds.c
	* app/pdb/procedural_db_cmds.c
	* app/pdb/vectors_cmds.c
	* libgimp/gimpimage_pdb.c
	* libgimp/gimpvectors_pdb.c
	* tools/pdbgen/enums.pl: regenerated.
2005-12-29 01:07:02 +00:00
Simon Budig 949fa77a46 gimp_vectors_[gs]et_locked renamed to _linked for consistency.
2005-12-29  Simon Budig  <simon@gimp.org>

	* tools/pdbgen/pdb/vectors.pdb:
	   gimp_vectors_[gs]et_locked  renamed to _linked for consistency.

	   gimp_vectors_[gs]et_tattoo, gimp_vectors_get_image: new.

	* app/pdb/internal_procs.c
	* app/pdb/vectors_cmds.c
	* libgimp/gimpvectors_pdb.[ch]: regenerated
2005-12-29 00:33:14 +00:00
Sven Neumann e59ece7cab code cleanup, use alloca in gimp_colormap_editor_clear().
2005-12-29  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpcolormapeditor.c: code cleanup, use alloca in
	gimp_colormap_editor_clear().
2005-12-29 00:11:09 +00:00
Sven Neumann 8798be7157 another small code cleanup 2005-12-28 23:51:39 +00:00
Sven Neumann 6af4b9b317 make sure the title area is cleared when the timeout is cancelled.
2005-12-29  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpdockable.c: make sure the title area is cleared
	when the timeout is cancelled.
2005-12-28 23:43:53 +00:00
Sven Neumann 8e9b20e55c HACKING document the changed dependencies.
2005-12-28  Sven Neumann  <sven@gimp.org>

	* HACKING
	* INSTALL: document the changed dependencies.

	* configure.in
	* app/sanity.c: check for glib >= 2.8.2 at compile and run-time.

	* app/plug-in/plug-in.c: removed workaround for glib < 2.8.2.
2005-12-28 21:36:03 +00:00
Simon Budig cbea67912b tools/pdbgen/pdb/image.pdb Added new functions for the vectors PDB API.
2005-12-28  Simon Budig  <simon@gimp.org>

	* tools/pdbgen/pdb/image.pdb
	* tools/pdbgen/pdb/vectors.pdb: Added new functions for the vectors
	PDB API. Minor cleanups. Please try to use them and test:

	  gimp_image_get_active_vectors
	  gimp_image_set_active_vectors
	  gimp_image_get_vectors_by_tattoo
	  gimp_image_lower_vectors
	  gimp_image_lower_vectors_to_bottom
	  gimp_image_raise_vectors
	  gimp_image_raise_vectors_to_top
	  gimp_image_remove_vectors

	  gimp_vectors_get_locked
	  gimp_vectors_set_locked
	  gimp_vectors_get_name
	  gimp_vectors_set_name
	  gimp_vectors_get_visible
	  gimp_vectors_set_visible
	  gimp_vectors_stroke_get_length
	  gimp_vectors_stroke_remove
	  gimp_vectors_stroke_scale

	* libgimp/gimp.[ch]: renamed the unused d_path to d_vectors and
	use it. Untabbified.

	* devel-docs/libgimp/tmpl/gimpvectors.sgml
	* app/pdb/image_cmds.c
	* app/pdb/internal_procs.c
	* app/pdb/vectors_cmds.c
	* libgimp/gimpimage_pdb.[ch]
	* libgimp/gimpvectors_pdb.[ch]: Regenerated

	* app/vectors/gimpstroke.h: minor cleanup.
2005-12-28 21:24:12 +00:00
Sven Neumann f7e62345ea app/Makefile.am new file collecting some strings about the app.
2005-12-28  Sven Neumann  <sven@gimp.org>

	* app/Makefile.am
	* app/about.h: new file collecting some strings about the app.

	* app/main.c
	* app/dialogs/about-dialog.c
	* app/dialogs/user-install-dialog.c: use the defines from about.h.
2005-12-28 20:45:52 +00:00
Michael Natterer e397c0ef0a set the new "do-overwrite-confirmation" property on GtkFileChooser.
2005-12-28  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpfiledialog.[ch]: set the new
	"do-overwrite-confirmation" property on GtkFileChooser. Removed
	gimp_file_overwrite_dialog().

	* app/dialogs/file-save-dialog.c (file_save_dialog_check_uri):
	removed broken code which tried to figure if a file exists.
	Fixes bug #309729.

	* app/widgets/gimpdnd-xds.c: added gimp_file_overwrite_dialog()
	here as private utility function.
2005-12-28 20:02:54 +00:00
Michael Natterer 338c785181 set the new "wrap-license" property on GtkAboutDialog and remove the
2005-12-28  Michael Natterer  <mitch@gimp.org>

	* app/dialogs/about-dialog.c: set the new "wrap-license" property
	on GtkAboutDialog and remove the explicit newlines from the string
	holding the GPL.
2005-12-28 19:53:46 +00:00
Michael Natterer a01d0f7e88 removed gimp_action_get_accel_closure().
2005-12-28  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpwidgets-utils.[ch]: removed
	gimp_action_get_accel_closure().

	* app/widgets/gimpactionview.c (gimp_action_view_new): use
	gtk_action_get_accel_closure() instead.
2005-12-28 19:50:08 +00:00
Michael Natterer bbdfa25de9 bump version to 2.3.7, require GTK+ >= 2.8.0 and pango >= 2.10.0.
2005-12-28  Michael Natterer  <mitch@gimp.org>

	* configure.in: bump version to 2.3.7,
	require GTK+ >= 2.8.0 and pango >= 2.10.0.

	* app/gui/gui.c (gui_sanity_check): changed accordingly.
2005-12-28 19:47:07 +00:00
Michael Natterer fcc8df3210 follow paint-info renaming.
2005-12-28  Michael Natterer  <mitch@gimp.org>

	* tools/pdbgen/pdb/paint_tools.pdb: follow paint-info renaming.

	* app/pdb/paint_tools_cmds.c: regenerated.
2005-12-28 16:42:29 +00:00
Michael Natterer fed433607d app/paint/gimpconvolve.c (gimp_convolve_register) fixed stock IDs.
2005-12-27  Michael Natterer  <mitch@gimp.org>

	* app/paint/gimpconvolve.c (gimp_convolve_register)
	* app/paint/gimpdodgeburn.c (gimp_dodge_burn_register): fixed
	stock IDs.
2005-12-27 20:51:24 +00:00
Michael Natterer ef9b04c535 Fixed incomplete core/ui separation of paint tools and paint methods:
2005-12-27  Michael Natterer  <mitch@gimp.org>

	Fixed incomplete core/ui separation of paint tools and paint
	methods:

	* app/core/core-enums.h
	* app/core/gimpcontext.[ch]: added a "paint-info" property and API
	so the current paint method can be selected without the need for
	an active tool.

	(gimp_context_real_set_tool): set the paint-info to
	tool_info->paint_info so the paint method follows the active tool
	just as the active image follows the active display.

	* app/core/gimp.h (struct Gimp)
	* app/core/gimppaintinfo.[ch]: added "standard_paint_info" API
	and stuff to be consistent with other context object properties.

	* app/paint/gimp-paint.c: set the paintbrush as
	standard_paint_info.

	* app/core/gimpstrokedesc.c (gimp_stroke_desc_new): removed the
	hack of falling back to the paintbrush when there is no active
	tool and use the active paint method instead. Fall back to the
	standard paint method if there is no active one.
	(nothing in the core uses the active tool any more now).

	* app/widgets/gimpdeviceinfo.h: add the paint info to the
	properties which are saved in devicerc.

	Added identifiers (names) and stock-ids to GimpPaintInfo:

	* app/core/gimppaintinfo.[ch] (gimp_paint_info_new): added
	identifier and stock-id parameters.

	* app/core/gimptoolinfo.c (gimp_tool_info_new): removed the hack
	of setting the paint-info stock-id from the tool-info stock-id.

	* app/paint/paint-types.h
	* app/paint/gimp-paint.c: changed GimpPaintRegisterCallback
	accordingly.

	* app/tools/gimp-tools.c (gimp_tools_register): changed paint
	info names accordingly.

	* app/paint/*.c (gimp_*_register): pass identifier and stock-id
	accordingly.
2005-12-27 18:57:01 +00:00
Michael Natterer 54c86f97f7 app/core/gimpchannel.c app/core/gimpdrawable.c app/core/gimplayer.c
2005-12-23  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpchannel.c
	* app/core/gimpdrawable.c
	* app/core/gimplayer.c
	* app/core/gimplayermask.c
	* app/text/gimptextlayer.c
	* app/vectors/gimpvectors.c: moved variables to local scopes in
	implementations of GimpItem::duplicate()
2005-12-23 01:15:19 +00:00
Simon Budig 14d43a50d2 app/vectors/gimpbezierstroke.c shuffled some g_return*_if_fail around as
2005-12-23  Simon Budig  <simon@gimp.org>

	* app/vectors/gimpbezierstroke.c
	* app/vectors/gimpstroke.c: shuffled some g_return*_if_fail
	around as suggested by mitch.
2005-12-23 00:37:42 +00:00
Sven Neumann 04024004bd removed icons from GimpFileProcView. It turned out that the Wilber icon is
2005-12-21  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpfileprocview.c: removed icons from
	GimpFileProcView.  It turned out that the Wilber icon is commonly
	mistaken as an indicator for the selected file-type.
2005-12-21 13:25:08 +00:00
Michael Natterer 5a8b082a8e revert accidential commit. 2005-12-19 22:44:39 +00:00
Michael Natterer 61df53ec54 port to G_DEFINE_TYPE() and friends. Some related cleanup.
2005-12-19  Michael Natterer  <mitch@gimp.org>

	* app/widgets/*.c: port to G_DEFINE_TYPE() and friends. Some
	related cleanup.
2005-12-19 22:37:49 +00:00
Sven Neumann 6a0267b65e changed description of GIMP_CLONE_ALIGN_NO enum value.
2005-12-16  Sven Neumann  <sven@gimp.org>

	* app/paint/paint-enums.[ch]: changed description of
	GIMP_CLONE_ALIGN_NO enum value.

	* app/tools/gimpclonetool.c (gimp_clone_options_gui): use a combo
	box for the align mode.
2005-12-16 14:44:25 +00:00
Sven Neumann 4467e1cd4b let the private wire methods live in the GIMP namespace. Declare internal
2005-12-13  Sven Neumann  <sven@gimp.org>

        * libgimpbase/gimpwire.[ch]: let the private wire methods live in
        the GIMP namespace. Declare internal functions as such and prefix
        them with an underscore.

        * libgimp/gimp.c
        * libgimp/gimptile.c
        * libgimpbase/gimpbase.def
        * libgimpbase/gimpprotocol.c
        * app/plug-in/plug-in-message.[ch]
        * app/plug-in/plug-in-run.c
        * app/plug-in/plug-in.c: changed accordingly.
2005-12-13 14:11:56 +00:00
Michael Natterer 8b8c784a5b port to G_DEFINE_TYPE() and friends. Some related cleanup.
2005-12-13  Michael Natterer  <mitch@gimp.org>

	* app/tools/*.c: port to G_DEFINE_TYPE() and friends. Some related
	cleanup.
2005-12-13 09:13:50 +00:00
Michael Natterer cf49cb3c5c fall back to the paintbrush if we can't get the paint method from the
2005-12-11  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpstrokedesc.c (gimp_stroke_desc_new): fall back to
	the paintbrush if we can't get the paint method from the active
	tool (because there is no active tool). Fixes bug #323778.
2005-12-11 15:31:11 +00:00
Michael Natterer 0d4a10fee4 app/config/*.c app/core/*.c app/display/*.c app/text/*.c port to
2005-12-10  Michael Natterer  <mitch@gimp.org>

	* app/config/*.c
	* app/core/*.c
	* app/display/*.c
	* app/text/*.c
	* app/vectors/*.c: port to G_DEFINE_TYPE() and friends. Some related
	core reordering and cleanup.
2005-12-10 19:24:36 +00:00
Michael Natterer c86deaa853 In fixed mode, paint incremental so the individual brushes are properly
2005-12-07  Michael Natterer  <mitch@gimp.org>

	* app/paint/gimpclone.c (gimp_clone_motion): In fixed mode, paint
	incremental so the individual brushes are properly applied on top
	of each other. Fixes bug #322791.
2005-12-07 21:17:12 +00:00
Michael Natterer 684fe95ce3 use G_DEFINE_TYPE().
2005-12-07  Michael Natterer  <mitch@gimp.org>

	* app/paint/*: use G_DEFINE_TYPE().
2005-12-07 21:11:53 +00:00
Michael Schumacher 432f10821c app/paint/gimpclone.c app/paint/paint-enums.c added alignment mode for
2005-12-07  Michael Schumacher  <schumaml@cvs.gnome.org>

	* app/paint/gimpclone.c
	* app/paint/paint-enums.c
	* app/paint/paint-enums.h: added alignment mode for cloning from a
	fixed location source as suggested in bug #322791.
2005-12-07 20:25:00 +00:00
William Skaggs 72a3574bba Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/tools/gimprectangletool.c: handle fixed_width,
	fixed_height, and fixed_aspect in a reasonable way.
	Also don't crash when user modifies aspect of a
	nonexistent rectangle, and disconnect notify
	handler in dispose.
2005-11-29 23:32:55 +00:00
Michael Natterer 534fd971c4 set the "use-stock" property on the created buttons so changes of the
2005-11-30  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpeditor.c (gimp_editor_add_button)
	(gimp_editor_add_action_button): set the "use-stock" property on
	the created buttons so changes of the underlying action's name
	don't affect change the button's icon to a string.
2005-11-29 23:02:20 +00:00
William Skaggs 7a316db9e5 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/tools/gimprectangletool.c: don't crash when
	user modifies width/height of nonexistent rectangle, and
	make sure to disconnect option notify handlers in dispose.
	Should fix bug #322396.
2005-11-28 22:30:24 +00:00
Michael Natterer 84fed8962d added GdkDisplay member since there is no way fo figure the display a
2005-11-27  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpdeviceinfo.[ch]: added GdkDisplay member since
	there is no way fo figure the display a GdkDevice exists on.
	Minor cleanups.

	* app/widgets/gimpdevices.[ch]: connect to the GdkDeviceManager
	and add input devices when displays are opened. Added API to get
	the GimpContainer of devices.

	* app/widgets/gimpdevicestatus.[ch]: don't just show the devices
	of the default display. Instead get the device container from the
	new API above and update the GUI when devices are added/removed.
	Cleaned up the whole file quite a bit.
2005-11-27 17:20:40 +00:00
Michael Natterer 7bbcc69815 use gtk_accelerator_name() instead of serializing the accelerator
2005-11-27  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpdeviceinfo.c (gimp_device_info_get_property):
	use gtk_accelerator_name() instead of serializing the accelerator
	manually.
2005-11-27 14:10:19 +00:00
Michael Natterer 6fd3b17609 Apparently, there was a reason for implementing the window actions
2005-11-27  Michael Natterer  <mitch@gimp.org>

	Apparently, there was a reason for implementing the window actions
	separately for views and docks, fixed the bugs resulting from the
	merge:

	* app/actions/dock-actions.c (dock_actions_update): only update
	the dock actions if the update function is called in the context
	of a dock (not in the context of an image window). Fixes docks
	jumping to other screens on any action on an image window on that
	screen.

	* app/actions/view-actions.c (view_actions_setup): add the window
	actions only to action groups that live in an image window or
	global popup ui manager (not to action groups that belong to a
	dock or dockable). Prevents bugs similar to the one above.
2005-11-27 12:16:48 +00:00
Michael Natterer e5f046c33e don't crash if gdk_display_get_name() returns NULL.
2005-11-26  Michael Natterer  <mitch@gimp.org>

	* app/menus/window-menu.c (window_menu_display_opened,closed):
	don't crash if gdk_display_get_name() returns NULL.
2005-11-26 23:03:40 +00:00
Michael Natterer 2a2e74161d new function which destroys the GCs kept by the shell and unrealizes the
2005-11-26  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpdisplayshell.c (gimp_display_shell_unrealize):
	new function which destroys the GCs kept by the shell and
	unrealizes the navigation popup.
2005-11-26 22:02:11 +00:00
Sven Neumann 842e33862a reverted previous change.
2005-11-24  Sven Neumann  <sven@gimp.org>

	* app/gui/gui-vtable.c (gui_message): reverted previous change.
2005-11-24 15:46:30 +00:00
Sven Neumann 3896910856 only show the error console but don't move the keyboard focus to it. Fixes
2005-11-24  Sven Neumann  <sven@gimp.org>

	* app/gui/gui-vtable.c (gui_message): only show the error console
	but don't move the keyboard focus to it. Fixes bug #322210.
2005-11-24 15:33:42 +00:00
Michael Natterer 8b2c6a2ce6 app/actions/dock-actions.c app/actions/view-actions.c
2005-11-24  Michael Natterer  <mitch@gimp.org>

	* app/actions/dock-actions.c
	* app/actions/view-actions.c
	* app/actions/window-actions.c
	* app/actions/window-commands.[ch]
	* menus/dockable-menu.xml.in
	* menus/image-menu.xml.in: added "Open Display" dialog for
	debugging purposes.
2005-11-24 00:39:12 +00:00
Michael Natterer 855c4efe30 cleaned up and reordered instance struct and functions. Renamed functions
2005-11-23  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimptoolcontrol.[ch]: cleaned up and reordered
	instance struct and functions. Renamed functions so getters and
	setters actually have "get" and "set" in their names.

	* app/display/gimpdisplayshell-autoscroll.c
	* app/display/gimpdisplayshell-callbacks.c
	* app/tools/gimpaligntool.c
	* app/tools/gimpconvolvetool.c
	* app/tools/gimpdodgeburntool.c
	* app/tools/gimperasertool.c
	* app/tools/gimpfliptool.c
	* app/tools/gimpforegroundselecttool.c
	* app/tools/gimpmagnifytool.c
	* app/tools/gimpmeasuretool.c
	* app/tools/gimpmovetool.c
	* app/tools/gimpvectortool.c
	* app/tools/tool_manager.c: changed accordingly.
2005-11-23 19:14:05 +00:00
Sven Neumann fa8ae5807e return successfully when stroking an empty path. Fixes bug #322067.
2005-11-22  Sven Neumann  <sven@gimp.org>

	* app/vectors/gimpvectors.c (gimp_vectors_stroke): return
	successfully when stroking an empty path. Fixes bug #322067.
2005-11-22 17:54:32 +00:00
Sven Neumann 655b517c58 app/tools/gimpforegroundselectoptions.[ch] renamed "discontiguous" to
2005-11-21  Sven Neumann  <sven@gimp.org>

	* app/tools/gimpforegroundselectoptions.[ch]
	* app/tools/gimpforegroundselecttool.c: renamed "discontiguous" to
	"continuous", both in the UI and as a variable.
2005-11-21 16:35:53 +00:00
Sven Neumann bc18fdfadf added default keyboard shortcuts for changing the brush radius as
2005-11-21  Sven Neumann  <sven@gimp.org>

	* app/actions/context-actions.c (context_brush_radius_actions):
	added default keyboard shortcuts for changing the brush radius
	as suggested in bug #322028.
2005-11-21 16:08:13 +00:00
Michael Natterer fb3dcfc932 app/tools/gimppaintoptions-gui.c code cleanup.
2005-11-19  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimppaintoptions-gui.c
	* app/tools/gimpselectionoptions.c: code cleanup.
2005-11-19 22:19:14 +00:00
Michael Natterer 68cecb38ff app/tools/gimpaligntool.c app/tools/gimpcolortool.c
2005-11-19  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimpaligntool.c
	* app/tools/gimpcolortool.c
	* app/tools/gimpfliptool.c
	* app/tools/gimpmagnifytool.c
	* app/tools/gimpmovetool.c
	* app/tools/gimptransformtool.c
	* app/tools/gimpvectortool.c: started to get rid of all stock GDK
	cursors in preparation of fixing bug #158407.
2005-11-19 22:16:34 +00:00
Michael Natterer 0ec0514ba2 changed wheel scrolling to be HIG-compliant (control zooms). Also handle
2005-11-18  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpgradienteditor.c (view_events):
	* app/widgets/gimpnavigationview.c (gimp_navigation_view_scroll):
	changed wheel scrolling to be HIG-compliant (control zooms). Also
	handle GDK_SCROLL_LEFT/RIGHT correctly and made shift switch the
	scroll axis. The widgets behave as the image window now.
2005-11-18 20:00:02 +00:00
Michael Natterer a8f0162fe8 implement GtkWidget::unrealize() and destroy the control pixmap. fixes
2005-11-17  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpgradienteditor.c: implement GtkWidget::unrealize()
	and destroy the control pixmap. fixes crash when moving the dialog
	to another display.

	* menus/dockable-menu.xml.in: added a separator before the
	"Move to Screen" submenu.
2005-11-17 20:39:23 +00:00
Michael Natterer 8b6b8f413e connect to GdkDisplayManager and automatically add/remove move-to-screen
2005-11-17  Michael Natterer  <mitch@gimp.org>

	* app/actions/window-actions.[ch]: connect to GdkDisplayManager
	and automatically add/remove move-to-screen actions when
	displays are opened/closed.

	* app/menus/window-menu.c: added similar code here to add/remove
	menu items for the above actions.

	* app/actions/Makefile.am
	* app/actions/window-commands.[ch]: new files containing window
	close and move-to-screen callbacks. There is no need to implement
	these twice for GimpDock and GimpDisplay.

	* app/actions/dock-commands.[ch]
	* app/actions/view-commands.[ch]: remove the callbacks here.

	* app/actions/dock-actions.c
	* app/actions/view-actions.c: changed accordingly.
2005-11-17 20:16:07 +00:00
Sven Neumann c5237bac92 libgimpbase/gimpenv.c (gimp_toplevel_directory) plugged memory leaks.
2005-11-16  Sven Neumann  <sven@gimp.org>

	* libgimpbase/gimpenv.c (gimp_toplevel_directory)
	* app/widgets/gimpcolormapeditor.c (gimp_colormap_editor_draw_cell):
	plugged memory leaks.
2005-11-16 18:07:44 +00:00
Michael Natterer 218c03c796 gimp_layer_transform_color() wants the destination image passed, not the
2005-11-16  Michael Natterer  <mitch@gimp.org>

	* app/core/gimplayer.c (gimp_layer_convert):
	gimp_layer_transform_color() wants the destination image passed,
	not the source image.
2005-11-16 17:59:50 +00:00
Michael Natterer db0713eccd Allow to construct a group of radio actions in multiple chunks. (not used
2005-11-15  Michael Natterer  <mitch@gimp.org>

	Allow to construct a group of radio actions in multiple chunks.
	(not used yet).

	* app/widgets/gimpactiongroup.[ch]
	(gimp_action_group_add_radio_actions): added "GSList *radio_group"
	parameter and return value.

	* app/actions/dockable-actions.c
	* app/actions/gradient-editor-actions.c
	* app/actions/quick-mask-actions.c
	* app/actions/text-editor-actions.c
	* app/actions/view-actions.c
	* app/actions/window-actions.c: pass NULL as radio_group.
2005-11-15 20:24:50 +00:00
Michael Natterer d5751a7792 implement GtkWidget::unrealize() and unrealize all GimpViewRenderers.
2005-11-15  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpcontainercombobox.c: implement
	GtkWidget::unrealize() and unrealize all GimpViewRenderers.
	Fixes BadMatch with the renderers' GCs on display change.
2005-11-15 19:14:00 +00:00
Karine Delvare 167a9f3481 better looking rectangle boundary.
2005-11-14  Karine Delvare  <kdelvare@nerim.net>

  * app/tools/gimprectangletool.c: better looking rectangle boundary.
2005-11-14 22:18:29 +00:00
Michael Natterer 978c464b32 return TRUE only if the selection intersects with the viewport, as
2005-11-14  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpdisplayshell.c (gimp_display_shell_mask_bounds):
	return TRUE only if the selection intersects with the viewport, as
	expected by gimp_display_shell_selection_invis(), which is the
	only caller of this function. Fixes bug #319029.
2005-11-13 23:35:33 +00:00
Sven Neumann 1b9f28f0e2 do not return a value from a void function. Fixes bug #321333.
2005-11-13  Sven Neumann  <sven@gimp.org>

	* app/core/gimpdatafactory.c (gimp_data_factory_data_free): do not
	return a value from a void function. Fixes bug #321333.
2005-11-13 17:10:22 +00:00
Sven Neumann fa649f749c fixed compilation of experimental threaded tile-swapper. Fixes bug
2005-11-11  Sven Neumann  <sven@gimp.org>

	* app/base/tile-swap.c (tile_swap_default_in): fixed compilation
	of experimental threaded tile-swapper. Fixes bug #320977.
2005-11-11 14:28:30 +00:00
Karine Delvare 9408287c6d better fixed-aspect behavior.
2005-11-09  Karine Delvare  <kdelvare@nerim.net>

  * app/tools/gimprectangletool.c: better fixed-aspect behavior.
2005-11-09 20:47:57 +00:00
Michael Natterer 0e835efb4e app/paint-funcs/paint-funcs-generic.h reverted patch which makes alpha=255
2005-11-09  Michael Natterer  <mitch@gimp.org>

	* app/paint-funcs/paint-funcs-generic.h
	* app/paint-funcs/paint-funcs.c: reverted patch which makes
	alpha=255 when turned off because these functions are not only
	used for display projection. Re-opens bug #143315.
	Fixes bug #307213.
2005-11-09 09:55:45 +00:00
Michael Natterer 5f90c4cddb app/core/gimp-modules.c more output on --verbose
2005-11-07  Michael Natterer  <mitch@gimp.org>

	* app/core/gimp-modules.c
	* app/menus/menus.c: more output on --verbose
2005-11-07 09:39:06 +00:00
Michael Natterer 5982aac7e5 when picking FG or BG color from an indexed layer, select its index in the
2005-11-06  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimpcolorpickertool.c (gimp_color_picker_tool_picked):
	when picking FG or BG color from an indexed layer, select its
	index in the colormap editor. Fixes bug #320660.
2005-11-06 22:08:22 +00:00
Michael Natterer aa80506d6d app/core/gimp-contexts.c app/core/gimp-documents.c
2005-11-06  Michael Natterer  <mitch@gimp.org>

	* app/core/gimp-contexts.c
	* app/core/gimp-documents.c
	* app/core/gimp-parasites.c
	* app/core/gimp-templates.c
	* app/core/gimp-units.c
	* app/core/gimpdatafactory.c
	* app/core/gimptooloptions.c
	* app/gui/color-history.[ch]
	* app/gui/gui.c
	* app/gui/session.c
	* app/plug-in/plug-ins.c
	* app/text/gimp-fonts.c
	* app/tools/gimp-tools.c
	* app/widgets/gimpcontrollers.c
	* app/widgets/gimpdevices.c: when running --verbose, print the
	name of each config file parsed or written.
2005-11-06 22:01:25 +00:00
Sven Neumann 39e866d9c0 Added support for binary relocation by means of binreloc, largely based on
2005-11-06  Sven Neumann  <sven@gimp.org>

	Added support for binary relocation by means of binreloc, largely
	based on a patch by Hongli Lai:

	* m4macros/Makefile.am
	* m4macros/binreloc.m4: new file providing a macro to check for
	binreloc support.

	* acinclude.m4
	* configure.in: use the macro.

	* libgimpbase/Makefile.am
	* libgimpbase/gimpreloc.[ch]: new files providing binreloc support
	on Linux.

	* libgimpbase/gimpenv.[ch]: use binreloc, provide a function to
	initialize the environment machinery.

	* libgimpbase/gimpbase.def: updated.

	* app/Makefile.am: fiddle with the LDFLAGS for binreloc.

	* app/main.c (main): gimp_env_init(FALSE).

	* libgimp/gimp.c (gimp_main): gimp_env_init(TRUE).
2005-11-06 01:06:41 +00:00
Sven Neumann 334b900bd3 removed unused variable scriptdata.
2005-11-05  Sven Neumann  <sven@gimp.org>

	* app/Makefile.am: removed unused variable scriptdata.

	* app/plug-in/plug-ins.c (plug_ins_init): Fixed progress value for
	plug-in query and initialization.

	* plug-ins/common/uniteditor.c (new_unit_dialog): use a
	GtkMessageDialog instead of g_message(). Some string changes.
2005-11-05 21:56:33 +00:00
Sven Neumann 6b2c01cc80 fine-tuning.
2005-11-05  Sven Neumann  <sven@gimp.org>

	* app/plug-in/plug-ins.c (plug_ins_init): fine-tuning.
2005-11-05 15:00:35 +00:00
Sven Neumann 5997c7dd97 removed calls to the splash update function during initialization of
2005-11-05  Sven Neumann  <sven@gimp.org>

        * tools/pdbgen/app.pl: removed calls to the splash update function
        during initialization of internal procedures. This only takes time
        and doesn't provide useful information.

        * app/pdb/internal_procs.[ch]: regenerated.

        * app/pdb/procedural_db.[ch]: changed accordingly.

        * core/gimp.c: call the splash update function from here.
2005-11-05 13:00:04 +00:00
Sven Neumann 20a653a542 added some commented-out debug output that can be used to get an idea of
2005-11-05  Sven Neumann  <sven@gimp.org>

	* app/gui/splash.c: added some commented-out debug output that can
	be used to get an idea of where the startup time is being spent.

	* app/core/gimp.c
	* app/pdb/internal_procs.c
	* app/pdb/procedural_db.c
	* app/plug-in/plug-ins.c
	* tools/pdbgen/app.pl: cosmetic changes.
2005-11-05 12:18:56 +00:00
Sven Neumann bff081e6cb set the clip region instead of just the clip rectangle.
2005-11-05  Sven Neumann  <sven@gimp.org>

	* app/gui/splash.c (splash_area_expose): set the clip region
	instead of just the clip rectangle.

	* configure.in: bumped version to 2.3.6.
2005-11-05 11:05:56 +00:00
Manish Singh 919a0e9f5b remove now unused "expanded" variable.
2005-11-04  Manish Singh  <yosh@gimp.org>

        * app/core/gimpenvirontable.c (gimp_environ_table_load_env_file):
        remove now unused "expanded" variable.
2005-11-04 23:59:56 +00:00
Michael Natterer 17287bcf3f set the widget's spacing to 12 pixels.
2005-11-04  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpcontrollereditor.c (gimp_controller_editor_init):
	set the widget's spacing to 12 pixels.
2005-11-04 22:01:47 +00:00
Sven Neumann 043f3ad047 fixed typo.
2005-11-04  Sven Neumann  <sven@gimp.org>

	* app/actions/Makefile.am (libappactions_a_SOURCES): fixed typo.
2005-11-04 21:01:08 +00:00
Sven Neumann 79ac6c0279 fixed buglet in siox code and renamed functions
* it.po: corrected translation that broke the gimp.desktop file.
2005-11-04 20:38:35 +00:00
Sven Neumann 2fb4908c40 applied a patch by Gerald Friedland that changes the code to clear the
2005-11-04  Sven Neumann  <sven@gimp.org>

	* app/base/siox.c: applied a patch by Gerald Friedland that
	changes the code to clear the cache selectively instead of dumping
	it completely if the foreground or background area is changed.
2005-11-04 20:00:38 +00:00
Sven Neumann a241bbc2b9 gimp_config_path_expand() only ever returns NULL if called with a NULL
2005-11-04  Sven Neumann  <sven@gimp.org>

	* app/core/gimpenvirontable.c (gimp_environ_table_load_env_file):
	gimp_config_path_expand() only ever returns NULL if called with a
	NULL path argument.
2005-11-04 15:51:15 +00:00
Sven Neumann 469d062c0a fixed typo.
2005-11-04  Sven Neumann  <sven@gimp.org>

	* app/config/gimpconfig-dump.c: fixed typo.
2005-11-04 15:17:44 +00:00
Sven Neumann 9079bcadec app/errors.c s/The GIMP/GIMP/
2005-11-04  Sven Neumann  <sven@gimp.org>

	* app/errors.c
	* app/sanity.c: s/The GIMP/GIMP/
2005-11-04 11:08:02 +00:00
Sven Neumann 6200046753 set the splash image as back pixmap.
2005-11-03  Sven Neumann  <sven@gimp.org>

	* app/gui/splash.c: set the splash image as back pixmap.
2005-11-02 23:27:00 +00:00
Michael Natterer f2a4df4e93 app/widgets/gimpaction.c app/widgets/gimpcoloreditor.c
2005-11-02  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpaction.c
	* app/widgets/gimpcoloreditor.c
	* app/widgets/gimpcontainerbox.c
	* app/widgets/gimpcontrollerlist.c
	* app/widgets/gimpmenudock.c
	* app/widgets/gimppluginaction.c
	* app/widgets/gimptooloptionseditor.c
	* app/widgets/gimpwidgets-utils.c
	* libgimpwidgets/gimpcellrenderercolor.c: use gtk_widget_get_settings()
	instead of gtk_settings_get_for_screen(gtk_widget_get_screen())
2005-11-02 20:18:13 +00:00
Michael Natterer 82282ea86c added g_return_if_fail (GIMP_IS_GIMP (gimp)).
2005-11-02  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpclipboard.c (gimp_clipboard_set_text): added
	g_return_if_fail (GIMP_IS_GIMP (gimp)).
2005-11-02 19:52:47 +00:00
Michael Natterer 0c46cef04d code cleanup, untabified.
2005-11-02  Michael Natterer  <mitch@gimp.org>

	* app/text/gimptext.c: code cleanup, untabified.
2005-11-02 19:41:29 +00:00
Michael Natterer c9c4e92647 app/actions/data-commands.c #include "gimp.h" instead of "gimp-gui.h"
2005-11-02  Michael Natterer  <mitch@gimp.org>

	* app/actions/data-commands.c
	* app/core/gimpprogress.c: #include "gimp.h" instead of "gimp-gui.h"
2005-11-02 19:39:54 +00:00
William Skaggs 65663f28d4 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/actions/data-commands.c: add missing include file.
2005-11-02 16:17:35 +00:00
Sven Neumann bdf1580d6c app/core/gimpimagefile.c app/widgets/gimpimagepropview.c
2005-11-02  Sven Neumann  <sven@gimp.org>

	* app/core/gimpimagefile.c
	* app/widgets/gimpimagepropview.c
	* app/widgets/gimpsizebox.c
	* app/widgets/gimptemplateeditor.c: use ngettext() for plural forms.
2005-11-02 16:07:07 +00:00
Sven Neumann 81de4303e8 rephrased error message for consistency and to avoid another plural form.
2005-11-02  Sven Neumann  <sven@gimp.org>

	* app/core/gimppattern.c: rephrased error message for consistency
	and to avoid another plural form.
2005-11-02 15:10:41 +00:00
Sven Neumann afde82bb8f clear the GIMP clipboard. Suppress debug output unless gimp is started
2005-11-02  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpclipboard.[ch] (gimp_clipboard_set_text): clear
	the GIMP clipboard. Suppress debug output unless gimp is started
	with the --verbose command-line option.

	* app/actions/data-commands.c
	* app/actions/documents-commands.c: adapt to clipboard API change.
2005-11-02 12:03:37 +00:00
Michael Natterer 67ee237bd8 added a GtkSizeGroup member and put all labels into the group.
2005-11-02  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpsizebox.[ch]: added a GtkSizeGroup member and put
	all labels into the group.

	* app/dialogs/scale-dialog.c: put the "Interpolation:" label into
	the same size box.
2005-11-02 09:27:15 +00:00
Sven Neumann 275c9b4d3e fixed compiler warning.
2005-11-01  Sven Neumann  <sven@gimp.org>

	* app/core/gimpbrushgenerated.c: fixed compiler warning.

	* app/core/gimpobject.c: turned "name" into a construct property.
2005-11-01 14:41:41 +00:00
Sven Neumann a6bb2b5751 use gimp_brush_generated_new() to create the brush object. Removed
2005-11-01  Sven Neumann  <sven@gimp.org>

	* app/core/gimpbrushgenerated.c (gimp_brush_generated_load): use
	gimp_brush_generated_new() to create the brush object. Removed
	redundant calls to gimp_data_dirty().

	* app/core/gimpdata.c: freeze the data object during construction.
2005-11-01 13:04:09 +00:00
Sven Neumann 6ad8c74080 app/actions/data-commands.c app/actions/documents-commands.c moved text
2005-11-01  Sven Neumann  <sven@gimp.org>

	* app/actions/data-commands.c
	* app/actions/documents-commands.c
	* app/widgets/gimpclipboard.[ch]: moved text clipboard handling to
	utility function to avoid code duplication.
2005-11-01 11:01:44 +00:00
Sven Neumann c4e37430e2 formatting.
2005-11-01  Sven Neumann  <sven@gimp.org>

	* app/plug-in/plug-ins.c: formatting.
2005-11-01 10:20:38 +00:00
Sven Neumann 2ba7c49b8d formatting 2005-11-01 09:34:38 +00:00
Michael Natterer 1f71121b90 Applied modified patch from Luis de Bethencourt Guimera which adds a "Save
2005-10-31  Michael Natterer  <mitch@gimp.org>

	Applied modified patch from Luis de Bethencourt Guimera which adds
	a "Save document history" prefs option. Fixes bug #140001.

	* app/config/gimprc-blurbs.h
	* app/config/gimpcoreconfig.[ch]: added boolean property
	"save-document-hitory".

	* app/core/gimp.c
	* app/file/file-open.c
	* app/file/file-save.c: don't save the document history and don't
	add files to the desktop-wide list of recently used files if the
	option is FALSE.

	* app/dialogs/preferences-dialog.c: added its toggle to the
	"Environment" page.
2005-10-31 20:57:03 +00:00
Sven Neumann f266bf8eb7 reverted the change for bug #302400; it caused bug #319962 to be opened.
2005-10-31  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpmessagebox.c (gimp_message_box_init): reverted
	the change for bug #302400; it caused bug #319962 to be opened.
	Instead unset the focus chain for the message box.
2005-10-31 17:08:12 +00:00
Sven Neumann c052ef9998 only call the status callback for plug-ins that are actually queried or
2005-10-31  Sven Neumann  <sven@gimp.org>

	* app/plug-in/plug-ins.c (plug_ins_init): only call the status
	callback for plug-ins that are actually queried or initialized.
2005-10-31 14:30:29 +00:00
Sven Neumann fb28e0bec6 added new action command data_copy_location_cmd_callback().
2005-10-31  Sven Neumann  <sven@gimp.org>

	* app/actions/data-commands.[ch]: added new action command
	data_copy_location_cmd_callback().

	* app/actions/brushes-actions.c
	* app/actions/gradients-actions.c
	* app/actions/palettes-actions.c
	* app/actions/patterns-actions.c
	* app/widgets/gimphelp-ids.h
	* menus/brushes-menu.xml
	* menus/gradients-menu.xml
	* menus/palettes-menu.xml
	* menus/patterns-menu.xml: added Copy Location menu entries to all
	data views. Allows to retrieve the file location for data files.
2005-10-31 12:00:25 +00:00
Sven Neumann c00173ccd0 app/core/gimpdata.[ch] applied a heavily modified version of the patch
2005-10-31  Sven Neumann  <sven@gimp.org>

	* app/core/gimpdata.[ch]
	* app/core/gimpdatafactory.c: applied a heavily modified version
	of the patch provided by Shlomi Fish in bug #311740. Introduces a
	cache to speed up reloading of data files.

	* app/actions/data-commands.c: set gimp busy while refreshing data
	factories.

	* app/widgets/gimpwidgets-utils.c (gimp_widget_accel_changed):
	free the return value of gimp_get_accel_string().
2005-10-31 11:29:01 +00:00
Michael Natterer 2b6a5f453a add GimpViewType parameter.
2005-10-31  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpviewablebutton.[ch] (gimp_viewable_button_new):
	add GimpViewType parameter.

	* app/widgets/gimptemplateeditor.c
	* app/widgets/gimpviewablebox.c: pass view types, using grid view
	for brushes and patterns ass suggested in bug #315443.
2005-10-31 02:12:40 +00:00
Michael Natterer e3e53dca27 Fixed bug #316395:
2005-10-30  Michael Natterer  <mitch@gimp.org>

	Fixed bug #316395:

	* app/actions/dialogs-actions.c (dialogs_dockable_actions)
	* app/actions/quick-mask-actions.c (quick_mask_toggle_actions):
	added tooltips to action entries.

	* app/display/gimpdisplayshell.c (gimp_display_shell_new): use
	gimp_widget_set_accel_help() to set the tooltip so it contains
	the accelerator.

	* app/dialogs/dialogs-constructors.c (dialogs_dockable_constructor):
	attach the dialog's identifier to the dockable widget (hack).

	* app/widgets/gimpdockbook.c (gimp_dockbook_get_tab_widget): use
	the attached identifier to find the action for this dockable in
	the dock's UI manager (HACK HACK). Use the found action to set
	a tooltip with accelerator.

	* app/widgets/gimpwidgets-utils.c (gimp_widget_set_accel_help):
	fixed bug in fallback code what should never be used.
2005-10-30 18:41:18 +00:00
Michael Natterer 86888a6a76 removed shift+ctrl+t accelerator from dialogs-tool-options because it's
2005-10-30  Michael Natterer  <mitch@gimp.org>

	* app/actions/dialogs-actions.c (dialogs_dockable_actions): removed
	shift+ctrl+t accelerator from dialogs-tool-options because it's
	already taken by view-show-guides. Fixes bug #320196.
2005-10-30 14:10:18 +00:00
Michael Natterer 27a2c5b04b added global "oldgimp_major" an "oldgimp_minor" variables.
2005-10-29  Michael Natterer  <mitch@gimp.org>

	* app/dialogs/user-install-dialog.c: added global "oldgimp_major"
	an "oldgimp_minor" variables.

	(user_install_dialog_run): set them to the version of the gimp
	directory that should be migrated.

	(user_install_migrate_files): skip "menurc" only when migrating
	from 2.0. Fixes bug #317170.
2005-10-29 16:41:51 +00:00
Michael Natterer dea7c48254 Fix bug #145492:
2005-10-29  Michael Natterer  <mitch@gimp.org>

	 Fix bug #145492:

	* app/actions/file-commands.c (file_save_cmd_callback)
	* app/dialogs/file-save-dialog.c (file_save_dialog_save_image):
	set the "file-quit" action insensitive while the image is being
	saved to prevent data loss.

	* app/widgets/gimptoolbox.c (gimp_toolbox_delete_event): activate
	the "file-quit" action instead of calling gimp_exit() directly so
	trying to close the toolbox while saving is impossible too.
2005-10-29 01:43:14 +00:00
Michael Natterer 77697d70cf allocate both oversize buffers with the right size, instead of one twice
2005-10-29  Michael Natterer  <mitch@gimp.org>

	* app/paint/gimpconvolve.c (gimp_convolve_motion): allocate both
	oversize buffers with the right size, instead of one twice with
	the wrong size. Was broken since porting to pixel_region_init_data().
	Spotted by Seth Burgess. Fixes bug #317340.
2005-10-29 00:57:58 +00:00
Michael Natterer be8215efca improved documentation of gimp-image-clean-all and gimp-image-is-dirty.
2005-10-29  Michael Natterer  <mitch@gimp.org>

	* tools/pdbgen/pdb/image.pdb: improved documentation of
	gimp-image-clean-all and gimp-image-is-dirty. Fixes bug #318075.

	* app/pdb/image_cmds.c
	* libgimp/gimpimage_pdb.c: regenerated.
2005-10-29 00:23:14 +00:00
Michael Natterer bc3bd4d63f removed "colors-transform-menu".
2005-10-28  Michael Natterer  <mitch@gimp.org>

	* app/actions/image-actions.c: removed "colors-transform-menu".

	* menus/image-menu.xml.in: revamped again: Moved desaturate and
	the invert items to the toplevel, into a separator-enclosed group.
	Changed Modify to a placeholder again. Things that have no useful
	category can't go to a sub-menu, so please don't invent one just
	for the sake of it.

	* plug-ins/common/channel_mixer.c: -> Colors/Components
	* plug-ins/common/vinvert.c: -> Colors/Invert
2005-10-28 21:51:41 +00:00
Carol Spears f956fd857b Changed colors-modify-menu to colors-transform-menu moved Desaturate and
* app/actions/image-actions.c: Changed colors-modify-menu to colors-transform-menu
* menus/image-menu.xml.in: moved Desaturate and Invert into the tools section of the colors-menu.
2005-10-28 20:02:27 +00:00
Sven Neumann d5d9640f23 applied a patch by Tobias Lenz that makes use of the state that was added
2005-10-28  Sven Neumann  <sven@gimp.org>

	* app/base/siox.c: applied a patch by Tobias Lenz that makes use
	of the state that was added to SIOX in order to speed up the tool.
2005-10-28 16:11:40 +00:00
Sven Neumann 572f255c5b INSTALL handle gimpprint just like other libraries. It doesn't make sense
2005-10-28  Sven Neumann  <sven@gimp.org>

	* INSTALL
	* configure.in: handle gimpprint just like other libraries. It
	doesn't make sense any longer to require it.

	* app/paint/gimpink-blob.c: commented out unused code.
2005-10-28 13:21:19 +00:00
Manish Singh 58a93cc101 declare component_pixels, combine_mask_and_alpha_channel_{stipple,stroke}.
2005-10-27  Manish Singh  <yosh@gimp.org>

        * app/paint-funcs/paint-funcs.h: declare component_pixels,
        combine_mask_and_alpha_channel_{stipple,stroke}. Fixes bug #319811.
2005-10-27 19:13:57 +00:00
Carol Spears ccf87313f3 added colors-info-menu and colors-modify-menu as children of colors-menu
* app/actions/image-actions.c: added colors-info-menu and colors-modify-menu as children of colors-menu
* menus/image-menu.xml.in: changed Modify placeholder to colors-modify-menu menuaction and added color-info-menu action to colors-menu
* plug-ins/common/colortoalpha.c: moved to Colors/Modify in the registration part.
2005-10-26 19:02:12 +00:00
Michael Natterer 27b7645137 Fixed bug #313547:
2005-10-26  Michael Natterer  <mitch@gimp.org>

	Fixed bug #313547:

	* app/widgets/gimpdataeditor.c
	(gimp_data_editor_set_aux_info)
	(gimp_data_editor_get_aux_info): store the state of edit_active
	in sessionrc.

	(gimp_data_editor_constructor): enable edit_active by default.
2005-10-25 22:05:20 +00:00
Michael Natterer f546e1e701 Let the data editors optionally follow the active brush, palette and
2005-10-25  Michael Natterer  <mitch@gimp.org>

	Let the data editors optionally follow the active brush, palette
	and gradient. Still needs to be saved in sessionrc and probably
	be enabled by default. Addresses bug #313547.

	* app/widgets/gimpdataeditor.[ch]: added new functions
	gimp_data_editor_set,get_edit_active().

	Make it configurable from the palette and gradient editor menus:

	* app/actions/gradient-editor-actions.c
	* app/actions/palette-editor-actions.c: added actions...

	* app/actions/data-editor-commands.[ch]: ...and callbacks...
	(new file).

	* app/widgets/gimphelp-ids.h: ...help IDs...

	* menus/gradient-editor-menu.xml
	* menus/palette-editor-menu.xml: ...and menu items.

	Add menu to the brush editor and make it configurable there too:

	* app/actions/Makefile.am
	* app/actions/actions.c
	* app/actions/brush-editor-actions.[ch]
	* app/menus/menus.c
	* menus/Makefile.am
	* menus/brush-editor-menu.xml: added all the bits needed for
	the new menu.

	* app/widgets/gimpbrusheditor.[ch]: use the menu. Added menu_factory
	paramater to the contstructor.

	* app/dialogs/dialogs-constructors.c: changed accordingly.
2005-10-25 21:38:00 +00:00
Michael Natterer 3af60ead59 app/display/gimpdisplayshell-close.c app/widgets/gimpactionview.c
2005-10-25  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpdisplayshell-close.c
	* app/widgets/gimpactionview.c
	* modules/controller_midi.c: g_source_unref() GSources after
	attaching them.
2005-10-25 21:07:03 +00:00
David Odin 0fe6fad47f correctly pass the region offset to pixel_region_get_row().
* app/paint-funcs/scale-funcs.c (subsample_region): correctly pass
  the region offset to pixel_region_get_row().
2005-10-25 18:16:42 +00:00
William Skaggs 9a6085b2f3 Bill skaggs <weskaggs@primate.ucdavis.edu>
* app/tools/gimppaintoptions-gui.c (jitter_options_gui):
	Use a scale entry instead of spinbutton for jitter amount,
	as discussed in bug #163049.
2005-10-25 16:38:16 +00:00
Michael Natterer c218c4be0c the color samples are always RGB or RGBA, so always compare 3 or 4 bytes
2005-10-25  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpimage-contiguous-region.c
	(struct ContinuousRegionData)
	(gimp_image_contiguous_region_by_color)
	(contiguous_region_by_color): the color samples are always RGB or
	RGBA, so always compare 3 or 4 bytes of pixel data, and not just
	the number of bytes of the drawable/projection. Fixes "select by
	color" on GRAYA (bug #319683).
2005-10-25 16:18:41 +00:00
Sven Neumann a0fa08c138 added getter and setter for path visibility (bug #319617).
2005-10-25  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/pdb/paths.pdb: added getter and setter for path
	visibility (bug #319617).

	* app/pdb/internal_procs.c
	* app/pdb/paths_cmds.c
	* libgimp/gimppaths_pdb.[ch]: regenerated.

	* libgimp/gimp.def: updated.
2005-10-25 10:17:28 +00:00
Michael Natterer 04221fde4e create the title window as GDK_WINDOW_CHILD, not GDK_WINDOW_TEMP.
2005-10-24  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpdockable.c (gimp_dockable_realize): create the
	title window as GDK_WINDOW_CHILD, not GDK_WINDOW_TEMP.
2005-10-24 08:50:14 +00:00
William Skaggs 2eed91bfc7 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/tools/gimprectangletool.c: add "notify" callbacks for changes
	of width, height, or aspect entries in the tool options.
2005-10-21 20:17:19 +00:00
William Skaggs 1792475747 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/tools/gimprectangletool.c:
	* app/tools/gimpnewrectselecttool.c Make clicking inside an existing
	selection create rect matching the marching ants.
2005-10-20 21:33:40 +00:00
William Skaggs 8c4233f29a Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/tools/gimprectangleoptions.c: remove fixed-center stuff
	from options gui in order to simplify it.
2005-10-20 16:53:54 +00:00