Commit Graph

17342 Commits

Author SHA1 Message Date
Sven Neumann a4d698792a removed lots of outdated information directed at developers and only kept
2008-09-03  Sven Neumann  <sven@gimp.org>

	* README.i18n: removed lots of outdated information directed at
	developers and only kept the most important hints for translators.


svn path=/trunk/; revision=26840
2008-09-03 10:06:24 +00:00
Sven Neumann 2552aa2b37 if INVALID_FILE_HANDLE is undefined, define it as the constant that we
2008-09-02  Sven Neumann  <sven@gimp.org>

	* app/plug-in/gimppluginshm.c: if INVALID_FILE_HANDLE is 
undefined,
	define it as the constant that we used to use here.


svn path=/trunk/; revision=26839
2008-09-02 20:52:25 +00:00
Aurimas Juška 1aed48f1b0 fixed GimpZoomPreview to handle layers with offsets and display
2008-09-02  Aurimas Juška  <aurisj@svn.gnome.org>

	* libgimp/gimpzoompreview.c (gimp_zoom_preview_draw_buffer),
	(gimp_zoom_preview_set_drawable): fixed GimpZoomPreview to handle
	layers with offsets and display intersection of layer and selection
	in the preview. (bug #156905)


svn path=/trunk/; revision=26838
2008-09-02 17:56:48 +00:00
Michael Natterer 9d18f2aa9e use gtk_widget_get_style() instead of widget->style.
2008-09-02  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpstatusbar.c: use gtk_widget_get_style() instead
	of widget->style.


svn path=/trunk/; revision=26837
2008-09-02 12:55:46 +00:00
Michael Natterer 975f6d0a1a use gtk_widget_get_style() instead of widget->style. Reduce indentation by
2008-09-02  Michael Natterer  <mitch@gimp.org>

	* libgimpwidgets/gimpruler.c: use gtk_widget_get_style() instead
	of widget->style. Reduce indentation by one level in
	gimp_ruler_draw_pos().


svn path=/trunk/; revision=26836
2008-09-02 12:30:53 +00:00
Michael Natterer 017e5ef73a no need to set strlen(sting)+1 bytes on the GtkSelectionData because
2008-09-02  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpselectiondata.c: no need to set strlen(sting)+1
	bytes on the GtkSelectionData because gtk_selection_data_set()
	zero-terminates all data anyway.


svn path=/trunk/; revision=26835
2008-09-02 12:00:07 +00:00
Michael Natterer 641dbb6593 return a const string, no need to strdup it since it's only used
2008-09-02  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpselectiondata.c (gimp_selection_data_get_name):
	return a const string, no need to strdup it since it's only used
	temporarily in this file.

	(gimp_selection_data_get_image)
	(gimp_selection_data_get_component)
	(gimp_selection_data_get_item)
	(gimp_selection_data_get_object): changed accordingly. Move
	variables to local scopes and simplify.


svn path=/trunk/; revision=26834
2008-09-02 11:30:28 +00:00
Sven Neumann 4c11c35826 clarified ChangeLog entry
svn path=/trunk/; revision=26832
2008-09-02 07:20:01 +00:00
Sven Neumann 8794cd7677 removed ALL_LINGUAS.
2008-09-02  Sven Neumann  <sven@gimp.org>

	* configure.in: removed ALL_LINGUAS.

	* po*/LINGUAS: introduced LINGUAS file instead. This allows to
	keep individual lists of languages for each translation domain 
and
	it makes it easier for translators to add a new language.


svn path=/trunk/; revision=26828
2008-09-01 22:12:58 +00:00
Sven Neumann 5ed7a372ee use the constant INVALID_FILE_HANDLE instead of 0xFFFFFFFF. Fixes shared
2008-09-01  Sven Neumann  <sven@gimp.org>

	* app/plug-in/gimppluginshm.c (gimp_plug_in_shm_new): use the
	constant INVALID_FILE_HANDLE instead of 0xFFFFFFFF. Fixes shared
	memory tile transport on 64bit Windows systems.


svn path=/trunk/; revision=26827
2008-09-01 20:55:31 +00:00
Sven Neumann a5f8345609 added clear_region().
2008-09-01  Sven Neumann  <sven@gimp.org>

	* app/paint-funcs/paint-funcs.[ch]: added clear_region().

	* app/base/tile-manager-crop.c
	* app/core/gimpchannel.c
	* app/core/gimpimage-merge.c
	* app/core/gimpmaskundo.c
	* app/core/gimpprojection-construct.c: use it instead of calling
	color_region() with a zero color.



svn path=/trunk/; revision=26826
2008-09-01 20:44:00 +00:00
Sven Neumann 88955a3118 also need to initialize the projection if the layer mask could introduce
2008-09-01  Sven Neumann  <sven@gimp.org>

	* app/core/gimpprojection-construct.c 
(gimp_projection_initialize):
	also need to initialize the projection if the layer mask could
	introduce transparency. Fixes bug #550024.


svn path=/trunk/; revision=26824
2008-09-01 20:24:59 +00:00
Martin Nordholts 1d7e141c2d We need to set the scale before using it. Fixes at least
2008-08-31  Martin Nordholts  <martinn@svn.gnome.org>

	* app/display/gimpdisplayshell-scale.c
	(gimp_display_shell_set_initial_scale): We need to set the scale
	before using it. Fixes at least gimp_display_shell_fill() and
	Image -> Duplicate giving weird initial scales.

svn path=/trunk/; revision=26823
2008-08-31 09:12:55 +00:00
Michael Natterer b12a891952 fix length calculation (in fact, no calculation is needed at all).
2008-08-30  Michael Natterer  <mitch@gimp.org>

	* tools/test-clipboard.c (test_clipboard_paste): fix length
	calculation (in fact, no calculation is needed at all).


svn path=/trunk/; revision=26822
2008-08-30 12:15:50 +00:00
Sven Neumann 74b56b3e2c fixed role of Aurore Derriennic.
2008-08-29  Sven Neumann  <sven@gimp.org>

	* authors.xml: fixed role of Aurore Derriennic.

	* AUTHORS: regenerated.


svn path=/trunk/; revision=26820
2008-08-29 19:56:19 +00:00
Michael Natterer b700d22606 remove g_return_val_if_fail(), this is not a public function.
2008-08-29  Michael Natterer  <mitch@gimp.org>

	* libgimpwidgets/gimppreviewarea.c (gimp_preview_area_expose):
	remove g_return_val_if_fail(), this is not a public function.


svn path=/trunk/; revision=26816
2008-08-29 15:55:07 +00:00
Michael Natterer d9bc8db7a3 app/widgets/gimplayertreeview.c libgimpwidgets/gimpcolorscales.c
2008-08-29  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimplayertreeview.c
	* libgimpwidgets/gimpcolorscales.c
	* libgimpwidgets/gimppropwidgets.c
	* libgimpwidgets/gimpscaleentry.c
	* libgimpwidgets/gimpwidgets.c: use gtk_adjustment_get_value()
	instead of adjustment->value.


svn path=/trunk/; revision=26815
2008-08-29 15:54:10 +00:00
Lars-Peter Clausen aa318cd08b plug-ins/pygimp/gimpui.defs Readded wrapper for the new GimpRuler.
2008-08-29  Lars-Peter Clausen  <lars@metafoo.de>
	
	* plug-ins/pygimp/gimpui.defs
	* plug-ins/pygimp/gimpui.override:
	Readded wrapper for the new GimpRuler.


svn path=/trunk/; revision=26814
2008-08-29 11:09:35 +00:00
Sven Neumann 8a374be95f fixed gtk-doc comment.
2008-08-29  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpruler.c (gimp_ruler_new): fixed gtk-doc 
comment.


svn path=/trunk/; revision=26812
2008-08-29 10:43:21 +00:00
Michael Natterer edcd1e7810 libgimpwidgets/Makefile.am libgimpwidgets/gimpwidgets.h
2008-08-29  Michael Natterer  <mitch@gimp.org>

	* libgimpwidgets/Makefile.am
	* libgimpwidgets/gimpwidgets.h
	* libgimpwidgets/gimphruler.[ch]
	* libgimpwidgets/gimpvruler.[ch]: remove separate H/VRuler classes.

	* libgimpwidgets/gimpruler.[ch]: add an "orientation" property
	instead. Add gimp_ruler_new().

	* libgimpwidgets/gimpwidgets.def: changed accordingly.

	* app/dialogs/resolution-calibrate-dialog.c
	* app/display/gimpdisplayshell.c
	* plug-ins/gfig/gfig-preview.c
	* plug-ins/imagemap/imap_preview.c: ditto.


svn path=/trunk/; revision=26810
2008-08-29 10:25:29 +00:00
Lars-Peter Clausen ee9d10f70a plug-ins/pygimp/gimpui.defs Removed wrappers for GimpRuler, GimpHRuler,
2008-08-29  Lars-Peter Clausen  <lars@metafoo.de>

	* plug-ins/pygimp/gimpui.defs
	* plug-ins/pygimp/gimpui.override:
	Removed wrappers for GimpRuler, GimpHRuler, GimpVRuler, as those
	are going to be removed from libgimpwidgets.


svn path=/trunk/; revision=26809
2008-08-29 09:41:16 +00:00
Michael Natterer a2bf2da39b #include "gimpwidgets-utils.h", not "gimpwidgets-utils.c" (eek).
2008-08-29  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimphelp.c: #include "gimpwidgets-utils.h", not
	"gimpwidgets-utils.c" (eek).


svn path=/trunk/; revision=26808
2008-08-29 09:05:49 +00:00
Lars-Peter Clausen 0d97703b65 plug-ins/pygimp/gimpui.defs Wrapped GimpRuler, GimpHRuler and GimpVRuler
2008-08-28  Lars-Peter Clausen  <lars@metafoo.de>

	* plug-ins/pygimp/gimpui.defs
	* plug-ins/pygimp/gimpui.override:
	Wrapped GimpRuler, GimpHRuler and GimpVRuler widgets.


svn path=/trunk/; revision=26807
2008-08-28 20:49:07 +00:00
Lars-Peter Clausen 3de0fab74a plug-ins/pygimp/gimpui.defs Merged gimpui.{defs,override} from pygimp GSoC
2008-08-28  Lars-Peter Clausen  <lars@metafoo.de>

	* plug-ins/pygimp/gimpui.defs
	* plug-ins/pygimp/gimpui.override:
	Merged gimpui.{defs,override} from pygimp GSoC project.
	Updates gimpui module to have bindings for most widgets functions.


svn path=/trunk/; revision=26806
2008-08-28 19:51:02 +00:00
Martin Nordholts 3cfd2a33c0 Canonically calculate scale to use for zoom-focus calculations so that it
2008-08-28  Martin Nordholts  <martinn@svn.gnome.org>

	* app/display/gimpdisplayshell-scale.c
	(gimp_display_shell_scale_to): Canonically calculate scale to use
	for zoom-focus calculations so that it also works when not in Dot
	by dot-mode.

svn path=/trunk/; revision=26805
2008-08-28 19:35:14 +00:00
Martin Nordholts 2975f815a8 Make the size-changed-detailed signal also contain previous image size.
2008-08-28  Martin Nordholts  <martinn@svn.gnome.org>

	* app/core/gimpimage.[ch]: Make the size-changed-detailed signal
	also contain previous image size.

	* app/display/gimpdisplayshell-handlers.c
	(gimp_display_shell_size_changed_detailed_handler): Take the
	previous image size into account and center the image if it starts
	to fit (axis indepentently) in the viewport due to the resize.

	* app/core/gimpundo.h
	* app/core/gimpimage-undo.c
	* app/core/gimpimageundo.[ch]
	* app/core/gimpimage-undo-push.[ch]: Manage the
	previous-size-information.

	* app/core/gimpimage-crop.c
	* app/core/gimpimage-scale.c
	* app/core/gimpimage-rotate.c
	* app/core/gimpimage-resize.c: Propagate previous size to the
	size-changed-detailed signal emission and the undo-system.

svn path=/trunk/; revision=26804
2008-08-28 19:12:03 +00:00
Sven Neumann 176fb24579 allow to disable the Wilber image shown at the top of the toolbox.
2008-08-28  Sven Neumann  <sven@gimp.org>

        * app/config/gimpguiconfig.[ch]: allow to disable the Wilber 
image
        shown at the top of the toolbox.

        * app/widgets/gimptoolbox.c: honor the new gimprc option.

        * app/config/gimprc-blurbs.h: document the old and new toolbox
        preferences.


svn path=/trunk/; revision=26800
2008-08-28 14:30:47 +00:00
Michael Natterer b19d4b85c3 some tiny formatting fixes.
2008-08-28  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimprectangletool.c: some tiny formatting fixes.


svn path=/trunk/; revision=26799
2008-08-28 12:54:14 +00:00
Sven Neumann a75532cb48 use echo, not $echo in the Win32-specific code that sets up the Python
2008-08-28  Sven Neumann  <sven@gimp.org>

	* configure.in: use echo, not $echo in the Win32-specific code
	that sets up the Python build variables.


svn path=/trunk/; revision=26798
2008-08-28 12:32:48 +00:00
Sven Neumann c9c3329441 fixed shift direction.
2008-08-28  Sven Neumann  <sven@gimp.org>

	* app/paint-funcs/scale-region.c (scale_determine_progress):
	(scale_region_tile): fixed shift direction.


svn path=/trunk/; revision=26797
2008-08-28 08:46:08 +00:00
Michael Natterer 808ddd311b try the find_widget_under_pointer() hack only if the menu item's parent is
2008-08-27  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpuimanager.c (gimp_ui_manager_item_key_press):
	try the find_widget_under_pointer() hack only if the menu item's
	parent is really a GtkMenu (not a GtkMenuBar). Fixes crash spotted
	by rubikcube.


svn path=/trunk/; revision=26796
2008-08-27 19:36:41 +00:00
Lars-Peter Clausen 8ff73b4c2d Removed some unnecessary g_new/g_free and improved range checking.
2008-08-27  Lars-Peter Clausen  <lars@metafoo.de>

	* plug-ins/pygimp/pygimp-tile.c
	(pr_subscript): Removed some unnecessary g_new/g_free and improved 
	range checking.
	(pr_ass_sub): Improved range checking.
	(pygimp_pixel_rgn_new): Clamp pixel region size to the drawable's size.


svn path=/trunk/; revision=26791
2008-08-27 15:46:28 +00:00
Sven Neumann 6a3e8b4cca sprinkled more const qualifiers.
2008-08-27  Sven Neumann  <sven@gimp.org>

	* app/core/gimp-transform-region.c: sprinkled more const 
qualifiers.

	* app/paint-funcs/scale-region.c: call the progress callback 
less
	often.


svn path=/trunk/; revision=26790
2008-08-27 10:19:15 +00:00
Sven Neumann 26645c5549 moved hiding the dialog from gimp_transform_tool_real_transform() to
2008-08-27  Sven Neumann  <sven@gimp.org>

	* app/tools/gimptransformtool.c: moved hiding the dialog from 
	gimp_transform_tool_real_transform() to 
gimp_transform_tool_doit().
	Delay undrawing the preview in doit() until the transformation 
is
	done. This removes the annoying flicker at the end.


svn path=/trunk/; revision=26789
2008-08-27 09:56:46 +00:00
Sven Neumann 28cdc4d9a0 hide the tool dialog before starting to perform the transformation.
2008-08-27  Sven Neumann  <sven@gimp.org>

	* app/tools/gimptransformtool.c 
(gimp_transform_tool_real_transform):
	hide the tool dialog before starting to perform the 
transformation.


svn path=/trunk/; revision=26787
2008-08-27 07:42:28 +00:00
Sven Neumann a8fd690b17 also use PixelSurround for the linear interpolation. Sprinkled some const
2008-08-27  Sven Neumann  <sven@gimp.org>

        * app/core/gimp-transform-region.c: also use PixelSurround for 
the
        linear interpolation. Sprinkled some const qualifiers.


svn path=/trunk/; revision=26786
2008-08-27 06:52:08 +00:00
Lars-Peter Clausen 22d7a536c2 Don't set tp_new for PyGimpTile_Type and PyGimpPixelRgn_Type as both don't
2008-08-26  Lars-Peter Clausen  <lars@metafoo.de>

	* plug-ins/pygimp/gimpmodule.c:
	Don't set tp_new for PyGimpTile_Type and PyGimpPixelRgn_Type as both
	don't have init functions.


svn path=/trunk/; revision=26785
2008-08-26 22:06:00 +00:00
Lars-Peter Clausen 4d4ef1a8cf Ensure that the python drawables gimp drawable is set. (pf_dealloc): Don't
2008-08-26  Lars-Peter Clausen  <lars@metafoo.de>

	* plug-ins/pygimp/pygimp-tile.c
	(pf_init): Ensure that the python drawables gimp drawable is set.
	(pf_dealloc): Don't crash if the pixel fetchers init function failed.


svn path=/trunk/; revision=26784
2008-08-26 21:59:21 +00:00
Sven Neumann 6e764915d5 updated documentation.
2008-08-26  Sven Neumann  <sven@gimp.org>

	* app/base/pixel-surround.c: updated documentation.


svn path=/trunk/; revision=26783
2008-08-26 21:06:09 +00:00
Sven Neumann ad4eb2f528 further simplified the code path that is executed when a brush is scaled
2008-08-26  Sven Neumann  <sven@gimp.org>

	* app/paint-funcs/scale-region.c: further simplified the code 
path
	that is executed when a brush is scaled up. We don't need to 
scale
	in several steps here.


svn path=/trunk/; revision=26780
2008-08-26 19:52:35 +00:00
Sven Neumann 8499f5e247 removed some unused parameters from the code that is used for brush
2008-08-26  Sven Neumann  <sven@gimp.org>

	* app/paint-funcs/scale-region.c: removed some unused parameters
	from the code that is used for brush scaling. Added sanity 
checks.


svn path=/trunk/; revision=26779
2008-08-26 19:43:00 +00:00
Martin Nordholts b5b51b475f libgimpwidgets/gimpwidgets.c
2008-08-26  Martin Nordholts  <martinn@svn.gnome.org>

	* libgimpwidgets/gimpwidgets.c

	* plug-ins/common/file-xbm.c
	* plug-ins/common/file-wmf.c
	* plug-ins/common/file-svg.c
	* plug-ins/common/file-gih.c
	* plug-ins/common/blur-motion.c
	* plug-ins/file-jpeg/jpeg-save.c
	* plug-ins/lighting/lighting-ui.c
	* plug-ins/map-object/map-object-ui.c

	* app/tools/gimpsheartool.c
	* app/tools/gimpaligntool.c
	* app/tools/gimprotatetool.c
	* app/tools/gimplevelstool.c
	* app/dialogs/resize-dialog.c
	* app/dialogs/offset-dialog.c
	* app/widgets/gimppaletteeditor.c
	* app/widgets/gimpcolormapeditor.c
	* app/dialogs/layer-options-dialog.c
	* app/display/gimpdisplayshell-scale-dialog.c: Pass page_size = 0
	to gimp_spin_button_new() to adapt to new and correct value
	clamping in GTK+.

svn path=/trunk/; revision=26778
2008-08-26 19:32:14 +00:00
Martin Nordholts d9e5942ec6 Fix stupid slip-up in my last commit
svn path=/trunk/; revision=26777
2008-08-26 18:59:23 +00:00
Sven Neumann 3792d638a2 added missing call to colorize_init().
2008-08-26  Sven Neumann  <sven@gimp.org>

	* app/core/gimpdrawable-colorize.c (gimp_drawable_colorize): 
	added missing call to colorize_init().


svn path=/trunk/; revision=26776
2008-08-26 18:58:23 +00:00
Martin Nordholts dd672dde70 New function.
2008-08-26  Martin Nordholts  <martinn@svn.gnome.org>

	* app/display/gimpdisplayshell-scroll.c
	(gimp_display_shell_scroll_unoverscrollify): New function.

	* app/display/gimpdisplayshell-autoscroll.c
	(gimp_display_shell_autoscroll_timeout): Make sure the autoscroll
	does not result in overscroll. This more or less finalizes the
	implementation of the enhancement request in bug #362915.

svn path=/trunk/; revision=26775
2008-08-26 18:50:54 +00:00
Martin Nordholts ad693bbf9e If no scroll should be applied we can return early.
2008-08-26  Martin Nordholts  <martinn@svn.gnome.org>

	* app/display/gimpdisplayshell-scroll.c
	(gimp_display_shell_scroll): If no scroll should be applied we can
	return early.

svn path=/trunk/; revision=26774
2008-08-26 17:53:54 +00:00
Martin Nordholts fb56170667 Pass the scroll amount in variables that we can modify as we please before
2008-08-26  Martin Nordholts  <martinn@svn.gnome.org>

	* app/display/gimpdisplayshell-autoscroll.c
	(gimp_display_shell_autoscroll_timeout): Pass the scroll amount in
	variables that we can modify as we please before they actually
	reach gimp_display_shell_scroll().

svn path=/trunk/; revision=26773
2008-08-26 17:47:30 +00:00
Michael Natterer 92cbcd03b2 don't hardcode the attach coords for the fixed containing the dynamics
2008-08-26  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimppaintoptions-gui.c (gimp_paint_options_gui): don't
	hardcode the attach coords for the fixed containing the dynamics
	labels but use the table's real width instead. Fixes broken table
	layout in the airbrush options.


svn path=/trunk/; revision=26771
2008-08-26 14:50:05 +00:00
Sven Neumann 281cefc12d attempt to fix the newly introduced smear edge mode.
2008-08-26  Sven Neumann  <sven@gimp.org>

	* app/base/pixel-surround.c: attempt to fix the newly introduced
	smear edge mode.


svn path=/trunk/; revision=26769
2008-08-26 07:24:55 +00:00
Sven Neumann 4fe29ba110 use PixelSurround to access the source pixels in a more efficient way.
2008-08-25  Sven Neumann  <sven@gimp.org>

	* app/paint-funcs/scale-region.c: use PixelSurround to access 
the
	source pixels in a more efficient way.


svn path=/trunk/; revision=26768
2008-08-25 23:12:14 +00:00
Sven Neumann 972309fe48 changed to silently return in case of out-of-bounds access. There's code
2008-08-25  Sven Neumann  <sven@gimp.org>

	* app/base/tile-manager.c (read_pixel_data_1): changed to 
silently
	return in case of out-of-bounds access. There's code that relies
	on this.

	* app/base/pixel-surround.[ch]: added SMEAR as another edge
	strategy for the PixelSurround helper.

	* core/gimp-transform-region.c: changed accordingly.


svn path=/trunk/; revision=26767
2008-08-25 20:38:52 +00:00
Sven Neumann 9584208543 reverted last change; it was bogus.
2008-08-25  Sven Neumann  <sven@gimp.org>

	* app/paint-funcs/scale-region.c: reverted last change; it was 
bogus.


svn path=/trunk/; revision=26761
2008-08-25 17:26:32 +00:00
Sven Neumann df292234f2 don't scale in several steps if interpolation is GIMP_INTERPOLATION_NONE.
2008-08-25  Sven Neumann  <sven@gimp.org>

	* app/paint-funcs/scale-region.c: don't scale in several steps 
if
	interpolation is GIMP_INTERPOLATION_NONE.


svn path=/trunk/; revision=26760
2008-08-25 16:30:37 +00:00
Sven Neumann 6fb1940834 implemented uses integer arithmetic. (pixel_average): reduced rounding
2008-08-25  Sven Neumann  <sven@gimp.org>

	* app/paint-funcs/scale-region.c (gaussian_decimate)
	(gaussian_lanczos2): implemented uses integer arithmetic.
	(pixel_average): reduced rounding errors.


svn path=/trunk/; revision=26759
2008-08-25 16:20:59 +00:00
Sven Neumann e607d2ce0a fixed rounding errors in color conversion.
2008-08-25  Sven Neumann  <sven@gimp.org>

	* app/core/gimpgradient.c (gimp_gradient_get_new_preview): fixed
	rounding errors in color conversion.


svn path=/trunk/; revision=26758
2008-08-25 13:20:07 +00:00
Sven Neumann 3e5d269e59 provide a macro version of tile_data_pointer().
2008-08-25  Sven Neumann  <sven@gimp.org>

	* app/base/tile-private.h: provide a macro version of
	tile_data_pointer().

	* app/base/tile.c (tile_data_pointer): turned into a wrapper
	around the TILE_DATA_POINTER() macro.

	* app/base/tile-manager.c (read_pixel_data) (read_pixel_data_1)
	(write_pixel_data) (write_pixel_data_1): access tile struct
	members directly and use the new macro to access the tile data.


svn path=/trunk/; revision=26757
2008-08-25 13:00:28 +00:00
Sven Neumann 35980b2291 formatting.
2008-08-25  Sven Neumann  <sven@gimp.org>

	* app/display/gimpdisplayshell-render.c 
(render_image_tile_fault):
	formatting.


svn path=/trunk/; revision=26756
2008-08-25 12:40:46 +00:00
Sven Neumann 47afc75282 removed redundant check that is already performed by
2008-08-25  Sven Neumann  <sven@gimp.org>

	* app/base/tile-manager.c (read_pixel_data_1): removed redundant
	check that is already performed by tile_manager_get_tile_num().
	Warn if an out-of-bounds read is requested, instead of silently
	doing nothing.



svn path=/trunk/; revision=26755
2008-08-25 12:00:58 +00:00
Sven Neumann e34e1b5918 hide the Scale dialog before starting to perform the scale operation.
2008-08-25  Sven Neumann  <sven@gimp.org>

	* app/dialogs/image-scale-dialog.c: hide the Scale dialog before
	starting to perform the scale operation.


svn path=/trunk/; revision=26753
2008-08-25 11:41:03 +00:00
Sven Neumann c206db2c2a fixed progress feedback.
2008-08-25  Sven Neumann  <sven@gimp.org>

	* app/paint-funcs/scale-region.c: fixed progress feedback.


svn path=/trunk/; revision=26751
2008-08-25 08:03:44 +00:00
Sven Neumann 46ee36089c improved progress bar calculations. Still buggy though.
2008-08-25  Sven Neumann  <sven@gimp.org>

	* app/paint-funcs/scale-region.c: improved progress bar
	calculations. Still buggy though.


svn path=/trunk/; revision=26750
2008-08-25 07:42:49 +00:00
Sven Neumann aa5cca0002 some more cleanups.
2008-08-25  Sven Neumann  <sven@gimp.org>

	* app/paint-funcs/scale-region.c: some more cleanups.


svn path=/trunk/; revision=26748
2008-08-25 06:46:26 +00:00
Lars-Peter Clausen 141e7eb460 Moved execution into global namespace. Fixes import statements inside of
2008-08-24  Lars-Peter Clausen  <lars@metafoo.de>

	* plug-ins/pygimp/plug-ins/python-fu-eval.py: Moved execution into
	global namespace. Fixes import statements inside of evaled code.


svn path=/trunk/; revision=26746
2008-08-24 16:54:38 +00:00
Lars-Peter Clausen 0527aaa3e4 Fix wrong strcmp evaluation.
2008-08-24  Lars-Peter Clausen  <lars@metafoo.de>

	* plug-ins/pygimp/pygimp-pdb.c (pdb_getattro): Fix wrong strcmp
	evaluation.


svn path=/trunk/; revision=26745
2008-08-24 16:38:23 +00:00
Lars-Peter Clausen c796bca92f Fix method format string, so the method is actual callable in a script.
2008-08-24  Lars-Peter Clausen  <lars@metafoo.de>

	* plug-ins/pygimp/pygimp-drawable.c (drw_transform_rotate,
	drw_transform_flip_simple): Fix method format string, so the
	method is actual callable in a script.


svn path=/trunk/; revision=26744
2008-08-24 16:31:35 +00:00
Martin Nordholts ee44ab3d32 Set page_size for the Ouput/Input Levels lower/upper adjustments to 0 to
2008-08-24  Martin Nordholts  <martinn@svn.gnome.org>

	* app/tools/gimplevelstool.c (gimp_levels_tool_dialog): Set
	page_size for the Ouput/Input Levels lower/upper adjustments to 0
	to adapt to new and more correct value clamping in GTK+.

svn path=/trunk/; revision=26743
2008-08-24 13:57:42 +00:00
Martin Nordholts 6bbeb8ef93 Updated for 2.6 release.
2008-08-24  Martin Nordholts  <martinn@svn.gnome.org>

	* authors.xml: Updated for 2.6 release.

	* AUTHORS: Regenerated.

svn path=/trunk/; revision=26742
2008-08-24 11:24:12 +00:00
Martin Nordholts 8f5adb2f62 Prevent the popup from being positioned far away from the click position.
2008-08-24  Martin Nordholts  <martinn@svn.gnome.org>

	* app/display/gimpnavigationeditor.c
	(gimp_navigation_editor_popup): Prevent the popup from being
	positioned far away from the click position. This is further work
	on bug #362915.

svn path=/trunk/; revision=26741
2008-08-24 08:56:02 +00:00
Martin Nordholts f50037c474 Further clarify and simplify.
2008-08-24  Martin Nordholts  <martinn@svn.gnome.org>

	* app/display/gimpnavigationeditor.c
	(gimp_navigation_editor_popup): Further clarify and simplify.

svn path=/trunk/; revision=26740
2008-08-24 08:31:45 +00:00
Martin Nordholts f887047d6e Correct the positioning calculation (while still retaining current overall
2008-08-24  Martin Nordholts  <martinn@svn.gnome.org>

	* app/display/gimpnavigationeditor.c
	(gimp_navigation_editor_popup): Correct the positioning
	calculation (while still retaining current overall behaviour).

svn path=/trunk/; revision=26739
2008-08-24 08:05:07 +00:00
Martin Nordholts 513d0c9b46 Use a define for border width.
2008-08-24  Martin Nordholts  <martinn@svn.gnome.org>

	* app/widgets/gimpnavigationview.c
	(gimp_navigation_view_draw_marker): Use a define for border width.

svn path=/trunk/; revision=26738
2008-08-24 07:10:31 +00:00
Martin Nordholts fa3b6cdb1a Don't redraw the view, only invalidate it. This causes the redraw to occur
2008-08-24  Martin Nordholts  <martinn@svn.gnome.org>

	* app/widgets/gimpnavigationview.c
	(gimp_navigation_view_set_marker): Don't redraw the view, only
	invalidate it. This causes the redraw to occur in an idle-handler
	intead of each time this function is called, which reduces flicker
	when opening new images. Stil some flicker left though...

svn path=/trunk/; revision=26737
2008-08-24 06:02:21 +00:00
Sven Neumann 93e5a3d293 use a constant to decide if we should decimate or interpolate.
2008-08-24  Sven Neumann  <sven@gimp.org>

	* app/paint-funcs/scale-region.c (scale) (scale_pr): use a
	constant to decide if we should decimate or interpolate.


svn path=/trunk/; revision=26736
2008-08-24 00:08:39 +00:00
Sven Neumann 510e21219f instead of iterating over tiles manually and using write_pixel_data_1() to
2008-08-24  Sven Neumann  <sven@gimp.org>

	* app/paint-funcs/scale-region.c: instead of iterating over 
tiles
	manually and using write_pixel_data_1() to write the data, use
	pixel_region_process() to iterate over the destination.


svn path=/trunk/; revision=26735
2008-08-23 23:59:09 +00:00
Sven Neumann bb61099be5 added more const qualifiers.
2008-08-24  Sven Neumann  <sven@gimp.org>

	* app/paint-funcs/scale-region.c: added more const qualifiers.


svn path=/trunk/; revision=26734
2008-08-23 23:43:31 +00:00
Sven Neumann c7f3b68c08 sprinkled with const qualifiers. Moved calculations out of the loops.
2008-08-24  Sven Neumann  <sven@gimp.org>

	* app/paint-funcs/scale-region.c (scale): sprinkled with const
	qualifiers. Moved calculations out of the loops.


svn path=/trunk/; revision=26733
2008-08-23 23:13:18 +00:00
Sven Neumann d588580cba removed optimization of the case where the source and dest regions are the
2008-08-24  Sven Neumann  <sven@gimp.org>

	* app/paint-funcs/scale-region.c (scale): removed optimization 
of
	the case where the source and dest regions are the same size. 
This
	should not happen any longer.


svn path=/trunk/; revision=26732
2008-08-23 22:58:16 +00:00
Sven Neumann 8187067243 avoid unnecessary scaling when scaling factor is 2^n. (pixel_average):
2008-08-24  Sven Neumann  <sven@gimp.org>

	* app/paint-funcs/scale-region.c (determine_scale): avoid
	unnecessary scaling when scaling factor is 2^n.
	(pixel_average): replaced with optimized pixel averager from
	tile-pyramid.c (from the gimp-2-4 branch with some minor
	corrections).


svn path=/trunk/; revision=26731
2008-08-23 22:43:21 +00:00
Sven Neumann 6203139692 replaced code that copies pixels from one tile-manager to another by a
2008-08-23  Sven Neumann  <sven@gimp.org>

	* app/paint-funcs/scale-region.c (scale): replaced code that
	copies pixels from one tile-manager to another by a call to
	copy_region().


svn path=/trunk/; revision=26730
2008-08-23 21:39:11 +00:00
Sven Neumann 82550ffe54 return with a proper PDB status type depending on the result of
2008-08-23  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print.c: return with a proper PDB status type
	depending on the result of gtk_print_operation_run(). When run
	non-interactively, pass the error message with the return 
values.


svn path=/trunk/; revision=26729
2008-08-23 17:11:40 +00:00
Sven Neumann d3ca13db06 applied patch from LightningIsMyName. Changes the script to not break if
2008-08-23  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/scripts/coolmetal-logo.scm: applied patch
	from LightningIsMyName. Changes the script to not break if 
called
	on a floating selection (bug #327681).


svn path=/trunk/; revision=26728
2008-08-23 16:29:39 +00:00
Lars-Peter Clausen d4fac257aa Don't dereference final_start_seg and final_end_seg if NULL.
2008-08-23  Lars-Peter Clausen  <lars@metafoo.de>

	* app/core/gimpgradient.c (gimp_gradient_segment_range_delete):
	Don't dereference final_start_seg and final_end_seg if NULL.


svn path=/trunk/; revision=26725
2008-08-23 13:20:54 +00:00
Lars-Peter Clausen aa129cfc1d Fix indentation in previous patch.
2008-08-23  Lars-Peter Clausen  <lars@metafoo.de>

	Fix indentation in previous patch.

	* tools/pdbgen/pdb/gradient.pdb
	* app/pdb/gradient-cmds.c


svn path=/trunk/; revision=26724
2008-08-23 13:18:13 +00:00
Lars-Peter Clausen 96e8524ce1 Don't crash if the index of the last segment is out of range.
2008-08-23  Lars-Peter Clausen  <lars@metafoo.de>

	* tools/pdbgen/pdb/gradient.pdb
	(gimp_gradient_segment_range_blend_(colors|opacity)): Don't crash 
	if the index of the last segment is out of range.

	* app/pdb/gradient-cmds.c: regenerated.


svn path=/trunk/; revision=26723
2008-08-23 12:51:10 +00:00
Sven Neumann ebea1b5ada dropped use of AM_LDFLAGS completely and use target-specific LDFLAGS
2008-08-23  Sven Neumann  <sven@gimp.org>

	* plug-ins/twain/Makefile.am: dropped use of AM_LDFLAGS 
completely
	and use target-specific LDFLAGS instead.


svn path=/trunk/; revision=26721
2008-08-23 10:30:37 +00:00
Sven Neumann 41fef08ad7 only create and use a timer if GIMP_UNSTABLE is defined.
2008-08-23  Sven Neumann  <sven@gimp.org>

	* app/core/gimpimagemap.c (gimp_image_map_init): only create and
	use a timer if GIMP_UNSTABLE is defined.


svn path=/trunk/; revision=26720
2008-08-22 22:47:06 +00:00
Sven Neumann ec12326ccb app/widgets/gimpnavigationview.c hardcode the colors to black and white.
2008-08-22  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpnavigationview.c
	* libgimpwidgets/gimpscrolledpreview.c: hardcode the colors to
	black and white. Using theme colors doesn't make sense here.


svn path=/trunk/; revision=26719
2008-08-22 21:44:52 +00:00
Sven Neumann 943c4dba85 draw the navigation popup using Cairo, just as we do it in the core now.
2008-08-22  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpscrolledpreview.[ch]: draw the navigation
	popup using Cairo, just as we do it in the core now.


svn path=/trunk/; revision=26718
2008-08-22 21:30:33 +00:00
Sven Neumann 8c5fe3b574 indicate the viewport by shading the outside region using Cairo.
2008-08-22  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpnavigationview.c: indicate the viewport by
	shading the outside region using Cairo.


svn path=/trunk/; revision=26716
2008-08-22 20:58:46 +00:00
Martin Nordholts 9a52100e44 Align static function prototypes.
2008-08-22  Martin Nordholts  <martinn@svn.gnome.org>

	* app/display/gimpnavigationeditor.c: Align static function
	prototypes.

svn path=/trunk/; revision=26715
2008-08-22 18:51:36 +00:00
Martin Nordholts 84b0b44d49 Don't confine the cursor to the navigation view window because that
2008-08-22  Martin Nordholts  <martinn@svn.gnome.org>

	* app/widgets/gimpnavigationview.c
	(gimp_navigation_view_grab_pointer): Don't confine the cursor to
	the navigation view window because that limitation only feels in
	the way with overscroll.

svn path=/trunk/; revision=26714
2008-08-22 16:30:52 +00:00
Michael Natterer ce00697368 #define GIMP_CANVAS_EVENT_MASK.
2008-08-22  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpcanvas.h: #define GIMP_CANVAS_EVENT_MASK.

	* app/display/gimpcanvas.c (gimp_canvas_realize): use it here.


svn path=/trunk/; revision=26713
2008-08-22 16:05:46 +00:00
Michael Natterer c1e13e2c5d add gimp_canvas_scroll() which scrolls the canvas and makes the result
2008-08-22  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpcanvas.[ch]: add gimp_canvas_scroll() which
	scrolls the canvas and makes the result visible immediately.

	* app/display/gimpdisplayshell-scroll.c
	(gimp_display_shell_scroll): use the new function.


svn path=/trunk/; revision=26712
2008-08-22 15:57:41 +00:00
Sven Neumann bf89d956a4 removed the "Use GEGL" check-box from the toolbox.
2008-08-22  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimptoolbox.c: removed the "Use GEGL" check-box
	from the toolbox.

	* app/config/gimpcoreconfig.c: changed the default for 
"use-gegl"
	to FALSE (in preparation of the 2.6 release).

	* app/actions/debug-commands.[ch]
	* app/actions/debug-actions.c
	* menus/image-menu.xml.in: added a "Use GEGL" check-box to the
	Debug menu. Temporary solution until a final decision is made.


svn path=/trunk/; revision=26711
2008-08-22 15:33:02 +00:00
Sven Neumann 961683cc23 app/widgets/gimpaction.c app/widgets/gimpdockable.c
2008-08-22  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpaction.c
	* app/widgets/gimpdockable.c
	* app/widgets/gimpradioaction.c
	* app/widgets/gimpstringaction.c
	* app/widgets/gimptoggleaction.c: added basic support for icon
	names for actions and dockables. Uses the stock-id as icon name
	if the icon theme provides an icon under this name.

	* app/dialogs/dialogs.c
	* app/actions/documents-actions.c
	* app/actions/dialogs-actions.c: use the "document-open-recent"
	icon for the document history.


svn path=/trunk/; revision=26710
2008-08-22 08:57:11 +00:00
Martin Nordholts cafc9289fc Adapted to play nicely with the overscroll feature. Basically remove
2008-08-22  Martin Nordholts  <martinn@svn.gnome.org>

	* app/widgets/gimpnavigationview.c: Adapted to play nicely with
	the overscroll feature. Basically remove limitations of the
	marker, but also draw the marker frame with an inner and outer
	border so it is possible to see on what side the viewport is when
	zoomed out and overscrolled to the max. This is further work on
	bug #362915.

svn path=/trunk/; revision=26709
2008-08-22 06:50:52 +00:00
Michael Natterer 041fd8e125 turn into a GtkContainer subclass mainly to reduce the diff to a local
2008-08-21  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpcanvas.[ch]: turn into a GtkContainer subclass
	mainly to reduce the diff to a local hack I'm at. Also swallow
	some code that used to be called on the canvas widget externally.

	* app/display/gimpdisplayshell.c (gimp_display_shell_new): remove
	the swallowed code.

	* app/display/gimpdisplayshell-callbacks.h: remove canvas event
	mask define.


svn path=/trunk/; revision=26708
2008-08-21 23:55:58 +00:00
Sven Neumann cac2a79d31 bumped version to 2.5.4.
2008-08-21  Sven Neumann  <sven@gimp.org>

	* configure.in: bumped version to 2.5.4.


svn path=/trunk/; revision=26707
2008-08-21 20:35:21 +00:00
Sven Neumann a512b2fab6 Made 2.5.3 development release.
2008-08-21  Sven Neumann  <sven@gimp.org>

        * Made 2.5.3 development release.


svn path=/trunk/; revision=26705
2008-08-21 20:08:59 +00:00
Sven Neumann 2b1bf9b77a app/plug-in/gimppluginprocedure.[ch] moved error handling for asynchronous
2008-08-21  Sven Neumann  <sven@gimp.org>

	* app/plug-in/gimppluginprocedure.[ch]
	* app/plug-in/gimptemporaryprocedure.c: moved error handling for
	asynchronous procedure calls to a central place. Use the plug-in
	label instead of the procedure name for the error message.


svn path=/trunk/; revision=26703
2008-08-21 18:09:41 +00:00
Sven Neumann 5e95e896b1 app/plug-in/gimppluginprocedure.c don't just free the return values when
2008-08-21  Sven Neumann  <sven@gimp.org>

	* app/plug-in/gimppluginprocedure.c
	* app/plug-in/gimptemporaryprocedure.c: don't just free the 
return
	values when running procedures asynchronously. Instead examine
	them and display the error message if there's one.

	* app/plug-in/gimppluginmanager-call.c
	(gimp_plug_in_manager_call_run_temp): return NULL if
	procedure->plug_in is not set.

	* app/plug-in/gimpplugin-message.c: comment.


svn path=/trunk/; revision=26700
2008-08-21 16:27:06 +00:00
Michael Natterer 3f37605f34 removed indentation from blocks after AC_ARG_WITH(), it's confusing
2008-08-21  Michael Natterer  <mitch@gimp.org>

	* configure.in: removed indentation from blocks after
	AC_ARG_WITH(), it's confusing otherwise because they appeared to
	be part of the macro. Added some newlines. Minor cleanups.


svn path=/trunk/; revision=26699
2008-08-21 15:56:32 +00:00
Sven Neumann bf1c783f44 plug-ins/script-fu/Makefile.am new files split out of
2008-08-21  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/Makefile.am
	* plug-ins/script-fu/script-fu-eval.[ch]: new files split out of
	script-fu-console.c[ch].

	* plug-ins/script-fu/script-fu-text-console.h: fixed comment.

	* plug-ins/script-fu/script-fu-console.[ch]: removed 
script-fu-eval
	procedure here.

	* plug-ins/script-fu/script-fu.c: changed accordingly.


svn path=/trunk/; revision=26698
2008-08-21 14:48:29 +00:00
Sven Neumann c85fc6eb21 formatting.
2008-08-21  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/script-fu.c (script_fu_run): formatting.


svn path=/trunk/; revision=26697
2008-08-21 14:01:17 +00:00
Sven Neumann b699121773 added desktop/gimp.desktop.in. Seems to work around what appears to be a
2008-08-21  Sven Neumann  <sven@gimp.org>

	* po-*/POTFILES.skip: added desktop/gimp.desktop.in. Seems to 
work
	around what appears to be a bug in intltool-update (version 
0.40.1).


svn path=/trunk/; revision=26694
2008-08-21 13:14:07 +00:00
Sven Neumann 2b78e58049 removed 'mkinstalldirs' which is not any longer required due to the
2008-08-21  Sven Neumann  <sven@gimp.org>

        * Makefile.am (EXTRA_DIST): removed 'mkinstalldirs' which is not
        any longer required due to the changes in the po directories.


svn path=/trunk/; revision=26693
2008-08-21 12:21:56 +00:00
Michael Natterer 9fc779f44f set precision back to PIXEL_CENTER because it's set to SUBPIXEL by the
2008-08-21  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimpforegroundselecttool.c
	(gimp_foreground_select_tool_init): set precision back to
	PIXEL_CENTER because it's set to SUBPIXEL by the parent class.


svn path=/trunk/; revision=26687
2008-08-21 08:19:54 +00:00
Martin Nordholts ec0849dce8 Use a constant for the minimum step amount for scrollbars.
2008-08-20  Martin Nordholts  <martinn@svn.gnome.org>

	* app/display/gimpdisplayshell-scroll.c: Use a constant for the
	minimum step amount for scrollbars.

svn path=/trunk/; revision=26685
2008-08-20 19:46:58 +00:00
Michael Natterer 8ea6e59970 reindent prototypes.
2008-08-20  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpuimanager.c: reindent prototypes.

	Steal find_widget_under_pointer() from gtktooltip.c

	(gimp_ui_manager_item_key_press): use the function to invoke help
	for the widget under the pointer if there is no selected menu
	item. Makes F1 work on insensitive menu items.


svn path=/trunk/; revision=26684
2008-08-20 18:20:42 +00:00
Sven Neumann 6ddb6aa712 use the new API to set the PDB error handler in order to suppress a
2008-08-20  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print.c (page_setup): use the new API to set 
the
	PDB error handler in order to suppress a warning if the 
temporary
	procedure does not exist (see bug #513291).


svn path=/trunk/; revision=26683
2008-08-20 18:11:26 +00:00
Michael Natterer 1206af4149 add PANGO_ALIGN_LEFT to the switch to fix warning about unhandled value.
2008-08-20  Michael Natterer  <mitch@gimp.org>

	* app/text/gimptextlayout-render.c (gimp_text_layout_render): add
	PANGO_ALIGN_LEFT to the switch to fix warning about unhandled value.


svn path=/trunk/; revision=26682
2008-08-20 17:07:46 +00:00
Michael Natterer d51c50820f Bug 496772 – Position shown in the statusbar needs more precision (for
2008-08-20  Michael Natterer  <mitch@gimp.org>

	Bug 496772 – Position shown in the statusbar needs more
	precision (for some tools)

	* app/display/display-enums.[ch]: add enum GimpCursorPrecision
	which can be one of { PIXEL_CENTER, PIXEL_BORDER, SUBPIXEL }.

	* app/display/gimpdisplayshell-cursor.[ch]: add "precision"
	parameter to gimp_display_shell_update_cursor() and pass it
	on to the statusbar.

	* app/display/gimpstatusbar.[ch]: add "precision" parameters to
	the cursor coordinates APIs, offset the passed coords accordingly
	and display them with one decimal point if SUBPIXEL is requested
	and the display's unit is PIXEL. Keep a second floating-point
	format string around at any time.

	* app/tools/gimptoolcontrol.[ch]: add a "precision" member and API
	so tools can configure the precision they need. Defalt to
	PIXEL_CENTER since that's right for almost all tools.

	* app/display/gimpdisplayshell-callbacks.c: pass the tool's
	precision to gimp_display_shell_update_cursor().

	* app/tools/gimptool.[ch]: add "precision" parameter to
	gimp_tool_push_status_coords() and pass it on to the statusbar.

	* app/tools/gimpaligntool.c
	* app/tools/gimpblendtool.c
	* app/tools/gimpcolortool.c
	* app/tools/gimpcroptool.c
	* app/tools/gimpeditselectiontool.c
	* app/tools/gimpfliptool.c
	* app/tools/gimpfreeselecttool.c
	* app/tools/gimpmovetool.c
	* app/tools/gimppainttool.c
	* app/tools/gimpperspectiveclonetool.c
	* app/tools/gimprectangleselecttool.c
	* app/tools/gimprectangletool.c
	* app/tools/gimptransformtool.c
	* app/tools/gimpvectortool.c: set precision in init() where
	needed. Adjust the precision in the fly when needed, e.g. while
	moving guides or when toggling hard-edge on paint tools. Also pass
	an appropriate precision to gimp_tool_push_status_coords(), which
	is not always the tool's precision as used for cursor display.


svn path=/trunk/; revision=26681
2008-08-20 16:22:09 +00:00
Sven Neumann 05287d057a pass error message with the return values instead of calling g_message().
2008-08-20  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/script-fu-console.c (script_fu_eval_run):
	pass error message with the return values instead of calling
	g_message().


svn path=/trunk/; revision=26680
2008-08-20 14:45:21 +00:00
Michael Natterer b28a3306e0 plug-ins/common/align-layers.c plug-ins/common/blur-gauss.c
2008-08-20  Michael Natterer  <mitch@gimp.org>

	* plug-ins/common/align-layers.c
	* plug-ins/common/blur-gauss.c
	* plug-ins/common/cartoon.c
	* plug-ins/common/edge-dog.c
	* plug-ins/common/edge-neon.c
	* plug-ins/common/edge-sobel.c
	* plug-ins/common/photocopy.c
	* plug-ins/common/pixelize.c
	* plug-ins/common/softglow.c
	* plug-ins/gradient-flare/gradient-flare.c: pass error messages
	with the return values instead of calling g_message().


svn path=/trunk/; revision=26679
2008-08-20 14:19:35 +00:00
Michael Natterer 84bbb4d0a3 tons of cleanup: proper prototypes, s/unsigned foo/gufoo/, indentation,
2008-08-20  Michael Natterer  <mitch@gimp.org>

	* plug-ins/common/file-gif-load.c: tons of cleanup: proper
	prototypes, s/unsigned foo/gufoo/, indentation, ...


svn path=/trunk/; revision=26678
2008-08-20 14:17:10 +00:00
Sven Neumann fd5550a4b2 plug-ins/common/file-cel.c plug-ins/common/file-html-table.c
2008-08-20  Sven Neumann  <sven@gimp.org>
 
	* plug-ins/common/file-cel.c
	* plug-ins/common/file-html-table.c
	* plug-ins/common/file-ps.c
	* plug-ins/common/file-sunras.c
	* plug-ins/common/file-tiff-load.c: pass error messages with the
	return values instead of calling g_message().


svn path=/trunk/; revision=26677
2008-08-20 14:00:44 +00:00
Sven Neumann 584d078e5e plug-ins/file-fits/fits.c pass error messages with the return values
2008-08-20  Sven Neumann  <sven@gimp.org>
 
	* plug-ins/file-fits/fits.c
	* plug-ins/file-fli/fli-gimp.c: pass error messages with the
	return values instead of calling g_message()


svn path=/trunk/; revision=26676
2008-08-20 13:44:17 +00:00
Sven Neumann 74b29fe9c9 pass error messages with the return values instead of calling g_message().
2008-08-20  Sven Neumann  <sven@gimp.org>

	* plug-ins/file-xjt/xjt.c: pass error messages with the return
	values instead of calling g_message().


svn path=/trunk/; revision=26675
2008-08-20 13:01:57 +00:00
Sven Neumann 6f3a122953 plug-ins/file-sgi/sgi.c pass error messages with the return values instead
2008-08-20  Sven Neumann  <sven@gimp.org>

	* plug-ins/file-sgi/sgi.c
	* plug-ins/file-sgi/sgi-lib.[ch]: pass error messages with the
	return values instead of calling g_message().


svn path=/trunk/; revision=26674
2008-08-20 12:49:41 +00:00
Michael Natterer 4c356fe42b make gimp_perspective_clone_get_matrix() static and add
2008-08-20  Michael Natterer  <mitch@gimp.org>

	* app/paint/gimpperspectiveclone.[ch]: make
	gimp_perspective_clone_get_matrix() static and add
	gimp_perspective_clone_set_transform().

	* app/tools/gimpperspectiveclonetool.c
	(gimp_perspective_clone_tool_mode_notify): use above set_transform()
	API instead of poking into the object.

	(gimp_perspective_clone_tool_constructor): call
	gimp_perspective_clone_tool_mode_notify() to set up things instead
	of duplicating code.


svn path=/trunk/; revision=26673
2008-08-20 09:49:40 +00:00
Michael Natterer e650b579a7 formatting.
2008-08-20  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimpperspectiveclonetool.[ch]: formatting.


svn path=/trunk/; revision=26672
2008-08-20 08:57:01 +00:00
Sven Neumann 5e347ed24b plug-ins/file-psd/psd.c plug-ins/file-psd/psd-load.[ch]
2008-08-20  Sven Neumann  <sven@gimp.org>

	* plug-ins/file-psd/psd.c
	* plug-ins/file-psd/psd-load.[ch]
	* plug-ins/file-psd/psd-save.c 
	* plug-ins/file-psd/psd-thumb-load.[ch]: pass error messages 
with
	the return values instead of calling g_message().


svn path=/trunk/; revision=26671
2008-08-20 07:36:25 +00:00
Sven Neumann 5084939673 plug-ins/file-jpeg/jpeg.[ch] plug-ins/file-jpeg/jpeg-load.[ch] pass error
2008-08-20  Sven Neumann  <sven@gimp.org>

	* plug-ins/file-jpeg/jpeg.[ch]
	* plug-ins/file-jpeg/jpeg-load.[ch]
	* plug-ins/file-jpeg/jpeg-save.[ch]: pass error messages with 
the
	return values instead of calling g_message().


svn path=/trunk/; revision=26670
2008-08-20 07:07:56 +00:00
Sven Neumann cdf2726bc9 flush the image when done to cause the actions to be updated (in
2008-08-20  Sven Neumann  <sven@gimp.org>

	* app/file/file-save.c (file_save): flush the image when done to
	cause the actions to be updated (in particular File->Revert).


svn path=/trunk/; revision=26669
2008-08-20 06:30:59 +00:00
Sven Neumann 39571e1656 create GHashTable with destroy notifiers.
2008-08-20  Sven Neumann  <sven@gimp.org>

	* plug-ins/file-ico/ico-save.c: create GHashTable with destroy
	notifiers.


svn path=/trunk/; revision=26668
2008-08-20 06:24:45 +00:00
Sven Neumann 3f26d82b62 plug-ins/file-faxg3/faxg3.c plug-ins/file-ico/ico.c
2008-08-20  Sven Neumann  <sven@gimp.org>

	* plug-ins/file-faxg3/faxg3.c
	* plug-ins/file-ico/ico.c
	* plug-ins/file-ico/ico-load.[ch]
	* plug-ins/file-ico/ico-save.[ch]: pass error messages with the
	return values instead of calling g_message().


svn path=/trunk/; revision=26667
2008-08-20 06:15:35 +00:00
Sven Neumann 0b804f4d50 find guides outside the image as well. This complements the change that we
2008-08-19  Sven Neumann  <sven@gimp.org>

	* app/core/gimpimage-guides.c (gimp_image_find_guide): find 
guides
	outside the image as well. This complements the change that we
	also draw guides outside the image now.


svn path=/trunk/; revision=26665
2008-08-19 17:48:33 +00:00
Michael Natterer 8ed8670d01 formatting.
2008-08-19  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimpgegltool.c (gimp_gegl_tool_dialog): formatting.


svn path=/trunk/; revision=26664
2008-08-19 15:42:31 +00:00
Michael Natterer 128da64d0d Fix filename.
svn path=/trunk/; revision=26662
2008-08-19 08:25:27 +00:00
Michael Natterer 960b30cd9e app/plug-in/gimpplugin.[ch] (struct GimpPlugIn) move the error_handler
2008-08-19  Michael Natterer  <mitch@gimp.org>

	* app/plug-in/gimpplugin.[ch] (struct GimpPlugIn)
	* app/plug-in/gimppluginprocframe.[ch] (struct GimpPlugInProcFrame):
	move the error_handler from the plug-in to the proc-frame.

	* app/plug-in/gimppluginprocframe.c
	* app/plug-in/gimpplugin-message.c: changed accordingly.


svn path=/trunk/; revision=26661
2008-08-19 08:24:48 +00:00
Sven Neumann 61d870cdd3 libgimpbase/gimpbase.def added new symbols.
2008-08-19  Sven Neumann  <sven@gimp.org>

	* libgimpbase/gimpbase.def
	* libgimp/gimp.def: added new symbols.


svn path=/trunk/; revision=26658
2008-08-19 06:33:48 +00:00
Sven Neumann 6e23a26307 plug-ins/file-bmp/bmp.[ch] plug-ins/file-bmp/bmp-read.c for most errors,
2008-08-19  Sven Neumann  <sven@gimp.org>

	* plug-ins/file-bmp/bmp.[ch]
	* plug-ins/file-bmp/bmp-read.c
	* plug-ins/file-bmp/bmp-write.c: for most errors, pass the error
	message with the return values instead of calling g_message().


svn path=/trunk/; revision=26657
2008-08-19 06:27:32 +00:00
Sven Neumann 369d991fd2 Complements the fix for bug #344818:
2008-08-19  Sven Neumann  <sven@gimp.org>

	Complements the fix for bug #344818:

	* libgimpbase/gimpbaseenums.[ch]: added new enum 
GimpPDBErrorHandler.

	* tools/pdbgen/enums.pl: regenerated.

	* app/plug-in/gimpplugin.[ch]: added error_handler to 
GimpPlugIn.

	* app/plug-in/gimpplugin-message.c 
(gimp_plug_in_handle_proc_run):
	only display an error message for a failed procedure call if the
	plug-in's error-handler is set to 
GIMP_PDB_ERROR_HANDLER_INTERNAL.
	
	* tools/pdbgen/pdb/plug_in.pdb: added PDB getter and setter for
	the plug-in's error-handler.

	* app/pdb/plug-in-cmds.c
	* app/pdb/internal-procs.c
	* libgimp/gimpenums.c.tail
	* libgimp/gimpplugin_pdb.[ch]: regenerated.

	* plug-ins/common/file-compressor.c
	* plug-ins/file-uri/uri.c: set the error-handler to
	GIMP_PDB_ERROR_HANDLER_PLUGIN as these plug-ins are forwarding 
the
	error with their return values.


svn path=/trunk/; revision=26656
2008-08-18 22:54:26 +00:00
Sven Neumann 8b0384a70a pass error messages with the return values instead of calling g_message().
2008-08-18  Sven Neumann  <sven@gimp.org>

	* plug-ins/file-uri/uri.c: pass error messages with the return
	values instead of calling g_message().

	* plug-ins/file-uri/uri-backend-libcurl.c
	* plug-ins/file-uri/uri-backend-gnomevfs.c
	* plug-ins/file-uri/uri-backend-gvfs.c
	* plug-ins/file-uri/uri-backend-wget.c: set errors in the 
	G_FILE_ERROR domain and other minor cleanups.


svn path=/trunk/; revision=26655
2008-08-18 21:18:01 +00:00
Sven Neumann cc60f022b1 open the temporary file before forking. This allows us to return an error
2008-08-18  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/file-compressor.c: open the temporary file
	before forking. This allows us to return an error message if the
	file can't be opened. Also changed the code to not use 
g_message()
	from the child process.


svn path=/trunk/; revision=26653
2008-08-18 20:47:19 +00:00
Sven Neumann 7c57332c6c pass some error message with the return values instead of calling
2008-08-18  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/file-compressor.c: pass some error message 
with
	the return values instead of calling g_message().


svn path=/trunk/; revision=26652
2008-08-18 19:51:52 +00:00
Sven Neumann a1cbd58195 plug-ins/common/file-gbr.c plug-ins/common/file-gih.c
2008-08-18  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/file-gbr.c
	* plug-ins/common/file-gih.c
	* plug-ins/common/file-pat.c
	* plug-ins/common/file-pix.c
	* plug-ins/common/file-sunras.c: for the most common errors, 
pass
	the error message with the return values instead of calling
	g_message().


svn path=/trunk/; revision=26650
2008-08-18 19:35:55 +00:00
Michael Natterer 7caea1c8e8 renamed... ...to this.
2008-08-18  Michael Natterer  <mitch@gimp.org>

	* plug-ins/common/compressor.c: renamed...
	* plug-ins/common/file-compressor.c: ...to this.

	* plug-ins/common/plugin-defs.pl: changed accordingly.

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


svn path=/trunk/; revision=26648
2008-08-18 19:27:14 +00:00
Sven Neumann a458135b1a plug-ins/common/file-xbm.c plug-ins/common/file-xpm.c for the most common
2008-08-18  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/file-xbm.c
	* plug-ins/common/file-xpm.c
	* plug-ins/common/file-xwd.c: for the most common errors, pass 
the
	error message with the return values instead of calling 
g_message().


svn path=/trunk/; revision=26646
2008-08-18 19:08:54 +00:00
Sven Neumann baabae4d0d pass error message with the return values instead of calling g_message().
2008-08-18  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/file-wmf.c: pass error message with the return
	values instead of calling g_message().


svn path=/trunk/; revision=26642
2008-08-18 13:07:28 +00:00
Sven Neumann e7f4446b7b it's g_message(), not gimp_message()
svn path=/trunk/; revision=26641
2008-08-18 10:08:20 +00:00
Sven Neumann fc059e310d plug-ins/common/file-raw.c plug-ins/common/file-tga.c
2008-08-18  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/file-raw.c
	* plug-ins/common/file-tga.c
	* plug-ins/common/file-tiff-load.c
	* plug-ins/common/file-tiff-save.c: pass error messages with the
	return values instead of calling gimp_message().


svn path=/trunk/; revision=26640
2008-08-18 10:02:20 +00:00
Sven Neumann edabd739d4 plug-ins/common/file-pnm.c plug-ins/common/file-ps.c for the most common
2008-08-18  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/file-pnm.c
	* plug-ins/common/file-ps.c
	* plug-ins/common/file-psp.c: for the most common errors, pass 
the
	error message with the return values instead of calling
	gimp_message().


svn path=/trunk/; revision=26639
2008-08-18 06:53:21 +00:00
Sven Neumann 592d59765e plug-ins/common/file-mng.c for the most common errors, pass the error
2008-08-18  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/file-mng.c
	* plug-ins/common/file-pcx.c: for the most common errors,
	pass the error message with the return values instead of calling
	gimp_message().

	* plug-ins/common/file-gif-save.c
	* plug-ins/common/file-pdf.c
	* plug-ins/common/file-png.c: minor cleanup.


svn path=/trunk/; revision=26638
2008-08-18 06:31:03 +00:00
Sven Neumann d5da6ce87b in case of an error, pass the error message with the return values.
2008-08-17  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/file-pdf.c: in case of an error, pass the 
error
	message with the return values.


svn path=/trunk/; revision=26637
2008-08-17 21:39:44 +00:00
Sven Neumann ad828a0301 plug-ins/common/file-gif-load.c for the most common errors, pass the error
2008-08-17  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/file-gif-load.c
	* plug-ins/common/file-gif-save.c: for the most common errors,
	pass the error message with the return values instead of calling
	gimp_message().

	* plug-ins/common/file-png.c: unmarked a string for translation.
	This error condition can't possibly happen.

	* plug-ins/common/file-svg.c: also return an error message when
	the thumbnail can't be loaded.


svn path=/trunk/; revision=26636
2008-08-17 21:30:34 +00:00
Sven Neumann cb21ecf5a2 for the most common errors, pass the error message with the return values
2008-08-17  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/file-dicom.c: for the most common errors, pass
	the error message with the return values instead of calling
	gimp_message().


svn path=/trunk/; revision=26634
2008-08-17 21:04:02 +00:00
Sven Neumann c60a4ba597 in case of an error, pass the error message with the return values.
2008-08-17  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/file-csource.c (save_image): in case of an
	error, pass the error message with the return values.


svn path=/trunk/; revision=26633
2008-08-17 20:56:01 +00:00
Sven Neumann e73fc40cf4 don't hardcode the tile size, use gimp.tile_width() instead.
2008-08-17  Sven Neumann  <sven@gimp.org>

	* plug-ins/pygimp/plug-ins/whirlpinch.py: don't hardcode the 
tile
	size, use gimp.tile_width() instead.


svn path=/trunk/; revision=26632
2008-08-17 20:37:31 +00:00
Sven Neumann 00f704f82f formatting.
2008-08-17  Sven Neumann  <sven@gimp.org>

	* plug-ins/pygimp/plug-ins/whirlpinch.py: formatting.


svn path=/trunk/; revision=26631
2008-08-17 20:21:29 +00:00
Sven Neumann 1834dcc8a9 formatting
svn path=/trunk/; revision=26627
2008-08-17 18:29:21 +00:00
Sven Neumann 2c348c7a71 plug-ins/common/file-desktop-link.c
2008-08-17  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/file-desktop-link.c

	* plug-ins/common/file-svg.c: changed to pass error messages 
with
	the return values instead of calling g_message().


svn path=/trunk/; revision=26626
2008-08-17 18:28:55 +00:00
Sven Neumann 4a2063872d unmarked string for translation. Script-Fu doesn't support i18n outside
2008-08-17  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/scripts/frosty-logo.scm
	(apply-frosty-logo-effect): unmarked string for translation.
	Script-Fu doesn't support i18n outside the register call.


svn path=/trunk/; revision=26624
2008-08-17 15:01:39 +00:00
Sven Neumann 3db928cfc7 plug-ins/script-fu/scripts/glowing-logo.scm changed the "Alpha to Logo"
2008-08-17  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/scripts/glowing-logo.scm
	* plug-ins/script-fu/scripts/neon-logo.scm: changed the "Alpha 
to
	Logo" parts of these scripts so that the user can specify the
	effect size directly instead of as some multiple of the size.


svn path=/trunk/; revision=26623
2008-08-17 14:57:21 +00:00
Sven Neumann b801bc39ad dropped the "Alpha to Logo" part of the "Starscape logo script. It had a
2008-08-17  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/scripts/starscape-logo.scm: dropped the
	"Alpha to Logo" part of the "Starscape logo script. It had a
	similar problem as the Starburst script (see bug #486779).


svn path=/trunk/; revision=26622
2008-08-17 14:54:53 +00:00
Sven Neumann 97f281a9c3 plug-ins/script-fu/scripts/Makefile.am dropped the "Starburst" logo
2008-08-17  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/scripts/Makefile.am
	* plug-ins/script-fu/scripts/starburst-logo.scm: dropped the
	"Starburst" logo script. Fixes bug #486779.


svn path=/trunk/; revision=26621
2008-08-17 14:42:11 +00:00
Sven Neumann a2cd4b73ec Next step towards fixing bug #344818:
2008-08-17  Sven Neumann  <sven@gimp.org>

	Next step towards fixing bug #344818:

	* app/pdb/gimpprocedure.c (gimp_procedure_execute): if the error
	has not already been set, construct one from the error message
	that is optionally passed with the return values.

	* plug-ins/common/file-png.c: changed to pass an error message
	with the return values instead of calling g_message() in case of
	an error.


svn path=/trunk/; revision=26620
2008-08-17 12:13:46 +00:00
Sven Neumann 04539e92ed renamed gimp_plug_in_proc_frame_get_return_vals() to
2008-08-17  Sven Neumann  <sven@gimp.org>

	* app/plug-in/gimppluginprocframe.[ch]: renamed
	gimp_plug_in_proc_frame_get_return_vals() to
	gimp_plug_in_proc_frame_get_return_values().

	* app/plug-in/gimppluginmanager-call.c: changed accordingly.

svn path=/trunk/; revision=26619
2008-08-17 12:08:52 +00:00
Sven Neumann 3fa2cbe022 changed to use g_set_error().
2008-08-17  Sven Neumann  <sven@gimp.org>

	* plug-ins/file-psd/psd-util.c (psd_set_error): changed to use
	g_set_error().


svn path=/trunk/; revision=26618
2008-08-17 11:14:13 +00:00
Sven Neumann 1277bb4415 changed to use g_error_new_literal().
2008-08-17  Sven Neumann  <sven@gimp.org>

	* plug-ins/file-psd/psd-util.c (psd_set_error): changed to use
	g_error_new_literal().


svn path=/trunk/; revision=26617
2008-08-17 11:04:04 +00:00
Sven Neumann 51d56e3a43 introduced a utility function to reduce code duplication.
2008-08-17  Sven Neumann  <sven@gimp.org>

	* app/plug-in/gimpplugin-progress.c
	(gimp_plug_in_progress_cancel_callback): introduced a utility
	function to reduce code duplication.

	* app/pdb/gimppdb.c (gimp_pdb_execute_procedure_by_name): 
changed
	to use g_error_new_literal().


svn path=/trunk/; revision=26616
2008-08-17 11:00:41 +00:00
Martin Nordholts 42c315a782 Fix typo in the only word in my most recent ChangeLog entry :(
svn path=/trunk/; revision=26615
2008-08-17 10:51:21 +00:00
Martin Nordholts a07760dea5 Simpliy.
2008-08-17  Martin Nordholts  <martinn@svn.gnome.org>

	* app/display/gimpdisplayshell-callbacks.c
	(gimp_display_shell_canvas_size_allocate): Simpliy.

svn path=/trunk/; revision=26614
2008-08-17 10:48:49 +00:00
Martin Nordholts a4a05e8c59 If the image ends up below or to the right of the viewport top and left
2008-08-17  Martin Nordholts  <martinn@svn.gnome.org>

	* app/display/gimpdisplayshell-callbacks.c
	(gimp_display_shell_canvas_size_allocate): If the image ends up
	below or to the right of the viewport top and left edges, and the
	image is not centered on a given axis, align the top left image
	edge with the top left viewport edge. This is basically the best
	we can do without an API for start and end of a window resize
	cycle using the mouse.

svn path=/trunk/; revision=26613
2008-08-17 07:38:25 +00:00
Martin Nordholts 9311a413fa Don't apply the centering logic on zoom_on_resize.
2008-08-17  Martin Nordholts  <martinn@svn.gnome.org>

	* app/display/gimpdisplayshell-callbacks.c
	(gimp_display_shell_canvas_size_allocate): Don't apply the
	centering logic on zoom_on_resize.

svn path=/trunk/; revision=26612
2008-08-17 07:29:48 +00:00
Martin Nordholts 384df24b80 When applying the centering logic we need to know the size of the new
2008-08-17  Martin Nordholts  <martinn@svn.gnome.org>

	* app/display/gimpdisplayshell.[ch]
	(gimp_display_shell_configure_event): When applying the centering
	logic we need to know the size of the new canvas, so instead of
	having it here, only make sure that this logic is run on the next
	canvas size-allocate.

	* app/display/gimpdisplayshell-callbacks.c
	(gimp_display_shell_canvas_size_allocate): If the size-allocate
	comes from a top level window resize, apply centering logic.

svn path=/trunk/; revision=26611
2008-08-17 07:21:41 +00:00
Martin Nordholts 7902305706 Oops, correct parameter order.
2008-08-16  Martin Nordholts  <martinn@svn.gnome.org>

	* app/display/gimpdisplayshell-scroll.c
	(gimp_display_shell_scroll_center_image_on_next_size_allocate):
	Oops, correct parameter order.

svn path=/trunk/; revision=26609
2008-08-16 19:18:31 +00:00
Martin Nordholts f45897f6c7 Support axis independence.
2008-08-16  Martin Nordholts  <martinn@svn.gnome.org>

	* app/display/gimpdisplayshell-scroll.[ch]
	(gimp_display_shell_scroll_center_image_on_next_size_allocate):
	Support axis independence.

	* app/display/gimpdisplayshell.c: Adapt.

svn path=/trunk/; revision=26608
2008-08-16 18:50:38 +00:00
Martin Nordholts 80ff2e82c3 Explain that this function needs to be used with care since it is risky.
2008-08-16  Martin Nordholts  <martinn@svn.gnome.org>

	* app/display/gimpdisplayshell-scroll.c
	(gimp_display_shell_scroll_center_image_on_next_size_allocate):
	Explain that this function needs to be used with care since it is
	risky.

	* app/display/gimpdisplayshell.c
	(gimp_display_shell_new)
	(gimp_display_shell_fill): Clarify that it is safe to use the
	risky function.

	(gimp_display_shell_configure_event): Make proper comparisions (<=
	not =) and explain that usage of the risky function is safe.

	(gimp_display_shell_shrink_wrap): Always call
	gimp_display_shell_scroll_center_image() and let size-requests be
	handled by GimpDisplayShell::configure_event().

	* app/actions/view-commands.c (view_shrink_wrap_cmd_callback): No
	need to center anything explicitly any longer.

svn path=/trunk/; revision=26607
2008-08-16 18:25:32 +00:00
Sven Neumann d0b0cca94d added translator comments.
2008-08-16  Sven Neumann  <sven@gimp.org>

	* libgimp/gimp.c (gimp_get_pdb_error): added translator 
comments.


svn path=/trunk/; revision=26605
2008-08-16 17:37:26 +00:00
Sven Neumann 64f070eb12 fixed function name in ChangeLog entry
svn path=/trunk/; revision=26603
2008-08-16 17:20:07 +00:00
Sven Neumann 2fcef8b03e Next step towards fixing bug #344818:
2008-08-16  Sven Neumann  <sven@gimp.org>

	Next step towards fixing bug #344818:

	* libgimp/gimp.[ch]: keep the last error status and error 
message
	in libgimp. Added new functon gimp_pdb_get_error() that allows 
to
	retrieve it.

	* libgimp/gimp.def: updated.

	* plug-ins/pygimp/gimpmodule.c (pygimp_vectors_import_from_file)
	(pygimp_vectors_import_from_string): use the new function to get
	a more useful error message.


svn path=/trunk/; revision=26602
2008-08-16 17:18:13 +00:00
Sven Neumann c4f3f05df4 removed the term 'PDB' from the user-visible error messages.
2008-08-16  Sven Neumann  <sven@gimp.org>

	* app/plug-in/gimpplugin-message.c 
(gimp_plug_in_handle_proc_run):
	removed the term 'PDB' from the user-visible error messages.


svn path=/trunk/; revision=26601
2008-08-16 17:11:22 +00:00
Sven Neumann b025652601 pass error parameter to gimp_vectors_import functions.
2008-08-16  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/pdb/vectors.pdb: pass error parameter to
	gimp_vectors_import functions.

	* app/pdb/vectors-cmds.c: regenerated.


svn path=/trunk/; revision=26600
2008-08-16 17:07:30 +00:00
Martin Nordholts ec15a39b14 Remove the centering logic because we do not always want to run it when
2008-08-16  Martin Nordholts  <martinn@svn.gnome.org>

	* app/display/gimpdisplayshell-callbacks.c
	(gimp_display_shell_canvas_size_allocate): Remove the centering
	logic because we do not always want to run it when the canvas size
	changes. For example, the canvas size changes if rulers are
	toggled on/off.

	* app/display/gimpdisplayshell.c
	(gimp_display_shell_configure_event): Implement
	GtkWidget::configure_event() for the display shell and put the
	image centering logic here instead, since this class function is
	run when the top level window size changes. Run it only if the
	size (not position) of the window changes.

svn path=/trunk/; revision=26599
2008-08-16 16:52:05 +00:00
Michael Natterer 46c7d2518a remove #include "core/gimpguide.h"
2008-08-16  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimpdrawtool.c: remove #include "core/gimpguide.h"


svn path=/trunk/; revision=26597
2008-08-16 15:36:17 +00:00
Sven Neumann c2f12f7e64 changed error message to be similar to the message thrown from
2008-08-16  Sven Neumann  <sven@gimp.org>

	* app/pdb/gimppdb.c (gimp_pdb_execute_procedure_by_name): 
changed
	error message to be similar to the message thrown from
	gimp_procedure_validate_args().


svn path=/trunk/; revision=26594
2008-08-16 14:12:38 +00:00
Sven Neumann f84608d539 If a procedure call fails, pass a string describing the error as the
2008-08-16  Sven Neumann  <sven@gimp.org>

	If a procedure call fails, pass a string describing the error as
	the second return value. First step towars fixing bug #344818.

	* app/pdb/gimpprocedure.[ch] (gimp_procedure_get_return_values):
	added a GError parameter. If it is set, pass the error message 
to
	the return values.

	* app/pdb/gimppdberror.h: added some more error codes.

	* app/pdb/gimppdb.c
	* app/xcf/xcf.c: pass errors to 
gimp_procedure_get_return_values().

	* app/plug-in/gimpplugin-message.c 
(gimp_plug_in_handle_proc_run):
	show a different error message for execution vs. calling errors.

	* app/plug-in/gimpplugin-progress.c
	(gimp_plug_in_progress_cancel_callback): pass the error
	GIMP_PDB_CANCELLED to gimp_procedure_get_return_values().

	* app/plug-in/gimppluginmanager-call.[ch]
	(gimp_plug_in_manager_call_run): removed the 
'destroy_return_vals'
	parameter.

	* app/plug-in/gimppluginprocedure.c: destroy the return values 
here.

	* app/plug-in/gimppluginprocframe.c: pass an error to
	gimp_procedure_get_return_values().

	* tools/pdbgen/app.pl
	* tools/pdbgen/pdb/fileops.pdb: generate code that passes the
	error to gimp_procedure_get_return_values().

	* app/pdb/*-cmds.c: regenerated.
	
	* plug-ins/pygimp/pygimp-pdb.c: extract the error message from 
the
	return values and pass it to the exception that is thrown.


svn path=/trunk/; revision=26593
2008-08-16 13:57:57 +00:00
Martin Nordholts b9acd50751 Also handle the case when only the offset is wrong. Not pretty but simple.
2008-08-16  Martin Nordholts  <martinn@svn.gnome.org>

	* app/actions/view-commands.c (view_shrink_wrap_cmd_callback):
	Also handle the case when only the offset is wrong. Not pretty but
	simple.

svn path=/trunk/; revision=26592
2008-08-16 13:53:18 +00:00
Sven Neumann f9ebb8c9fd app/display/Makefile.am app/display/gimpdisplayshell-scale.[ch] split
2008-08-16  Sven Neumann  <sven@gimp.org>

	* app/display/Makefile.am
	* app/display/gimpdisplayshell-scale.[ch]
	* app/display/gimpdisplayshell-scale-dialog.[ch]: split scale
	dialog into a new file.

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

svn path=/trunk/; revision=26590
2008-08-16 11:51:10 +00:00
Martin Nordholts 1250993fe1 New function.
2008-08-16  Martin Nordholts  <martinn@svn.gnome.org>

	* app/display/gimpdisplayshell-scale.c
	(gimp_display_shell_scale_viewport_coord_almost_centered): New
	function.

	(gimp_display_shell_scale): Center the image on zoom also if it is
	almost centered. This makes the image centered all the way when
	zooming out far away.

svn path=/trunk/; revision=26589
2008-08-16 10:25:50 +00:00
Sven Neumann 659b1f727f app/tools/gimpfreeselecttool.c formatting.
2008-08-16  Sven Neumann  <sven@gimp.org>

	* app/tools/gimpfreeselecttool.c
	* app/tools/gimprectangletool.c: formatting.


svn path=/trunk/; revision=26588
2008-08-16 10:07:43 +00:00
Martin Nordholts 8d7b13ae01 Reimplement to increase readability.
2008-08-16  Martin Nordholts  <martinn@svn.gnome.org>

	* app/display/gimpdisplayshell-scale.c
	(gimp_display_shell_scale_to): Reimplement to increase
	readability.

svn path=/trunk/; revision=26587
2008-08-16 08:59:58 +00:00
Martin Nordholts 46f7ce1a01 Nice-ify.
2008-08-16  Martin Nordholts  <martinn@svn.gnome.org>

	* app/display/gimpdisplayshell-scale.c
	(gimp_display_shell_scale_to): Nice-ify.

svn path=/trunk/; revision=26586
2008-08-16 07:15:33 +00:00
Martin Nordholts ab419f2e70 Support axis independence.
2008-08-16  Martin Nordholts  <martinn@svn.gnome.org>

	* app/display/gimpdisplayshell-scale.[ch]
	(gimp_display_shell_scale_get_zoom_focus)
	(gimp_display_shell_scale_image_is_within_viewport): Support axis
	independence.

	* app/display/gimpdisplayshell.c
	(gimp_display_shell_zoom_button_callback): Adapt to new
	gimp_display_shell_scale_image_is_within_viewport().

svn path=/trunk/; revision=26585
2008-08-16 07:06:26 +00:00
Martin Nordholts aaa6336664 Make proper tests (>= not >)...
2008-08-16  Martin Nordholts  <martinn@svn.gnome.org>

	* app/display/gimpdisplayshell-scale.c
	(gimp_display_shell_scale_image_is_within_viewport): Make proper
	tests (>= not >)...

svn path=/trunk/; revision=26584
2008-08-16 05:45:41 +00:00
Daniel Eddeland dbd8d44c7c corrected gimp_text_set_property for "box-unit" , fixing bug #547126
2008-08-16  Daniel Eddeland  <danedde@svn.gnome.org>

	* app/text/gimptext.c: corrected gimp_text_set_property for
	"box-unit" , fixing bug #547126


svn path=/trunk/; revision=26583
2008-08-16 00:27:32 +00:00
Sven Neumann d225115ea8 formatting.
2008-08-15  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/pixelize.c: formatting.


svn path=/trunk/; revision=26582
2008-08-15 21:46:09 +00:00
Martin Nordholts d9454d7045 More elegantly deal with the 'Resize window on zoom'-case.
2008-08-15  Martin Nordholts  <martinn@svn.gnome.org>

	* app/display/gimpdisplayshell-scale.c (gimp_display_shell_scale):
	More elegantly deal with the 'Resize window on zoom'-case.

svn path=/trunk/; revision=26581
2008-08-15 19:46:39 +00:00
Daniel Eddeland 55a9b2beb1 make text align correctly if text-box is FIXED.
2008-08-15  Daniel Eddeland  <danedde@svn.gnome.org>

	* app/text/gimptextlayout-render.c: make text align correctly if
	text-box is FIXED.


svn path=/trunk/; revision=26580
2008-08-15 19:31:09 +00:00
Michael Natterer d32b325567 when stroking multiple segments, set paint_core->cur_coords to the start
2008-08-15  Michael Natterer  <mitch@gimp.org>

	* app/paint/gimppaintcore-stroke.c
	(gimp_paint_core_stroke_boundary)
	(gimp_paint_core_stroke_vectors): when stroking multiple segments,
	set paint_core->cur_coords to the start of each segment. It
	normally gets assigned by gimp_paint_core_start(), but that's not
	called for subsequent segments. Fixes stroking multiple segments
	with the ink tool. The other tools were not affected since they
	plot individual brushes rather than a shape from the last to the
	current coordinates. Spotted by Alexia.


svn path=/trunk/; revision=26578
2008-08-15 19:10:25 +00:00
Sven Neumann 5e304419f1 formatting.
2008-08-15  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/mosaic.c: formatting.	


svn path=/trunk/; revision=26577
2008-08-15 18:40:20 +00:00
Sven Neumann a9e30dad1b converted a g_print() call to g_warning() and unmarked the string for
2008-08-15  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/mosaic.c (polygon_add_point): converted a
	g_print() call to g_warning() and unmarked the string for
	translation.


svn path=/trunk/; revision=26576
2008-08-15 18:00:24 +00:00
Sven Neumann 98d7a372f0 applied patch from Aurimas Juška that fixes an endianness issue (bug
2008-08-15  Sven Neumann  <sven@gimp.org>

	* plug-ins/file-ico/ico-save.c: applied patch from Aurimas Juška
	that fixes an endianness issue (bug #529629).


svn path=/trunk/; revision=26574
2008-08-15 17:50:15 +00:00
Sven Neumann ccadb5fc03 fixed last entry
svn path=/trunk/; revision=26573
2008-08-15 16:37:10 +00:00
Sven Neumann 8977c477ad save new images, even if they are not marked dirty.
2008-08-15  Sven Neumann  <sven@gimp.org>

	* app/actions/file-commands.c (file_save_cmd_callback): save new
	images, even if they are not marked dirty.


svn path=/trunk/; revision=26571
2008-08-15 07:38:32 +00:00
Sven Neumann ada401fe48 use G_STRFUNC in another error message that I missed earlier.
2008-08-14  Sven Neumann  <sven@gimp.org>

	* app/plug-in/gimpplugin-message.c 
(gimp_plug_in_handle_proc_run):
	use G_STRFUNC in another error message that I missed earlier.


svn path=/trunk/; revision=26570
2008-08-14 21:57:39 +00:00
Martin Nordholts 2a3f768c79 Fix ChangeLog entry typo
svn path=/trunk/; revision=26569
2008-08-14 20:47:15 +00:00
Michael Natterer 6d1711e964 search the next match when return or enter is pressed in the search entry.
2008-08-14  Michael Natterer  <mitch@gimp.org>

	* plug-ins/help-browser/dialog.c (search_entry_key_press): search
	the next match when return or enter is pressed in the search
	entry.


svn path=/trunk/; revision=26568
2008-08-14 20:38:07 +00:00
Martin Nordholts a100804747 Make proper tests (<= not <).
2008-08-14  Martin Nordholts  <martinn@svn.gnome.org>

	* app/display/gimpdisplayshell-scale.c
	(gimp_display_shell_scale_image_starts_to_fit)
	(gimp_display_shell_scale_image_is_within_viewport): Make
	proper tests (<= not <).

svn path=/trunk/; revision=26567
2008-08-14 20:31:44 +00:00
Sven Neumann f1772dc023 fixed ChangeLog entry
svn path=/trunk/; revision=26566
2008-08-14 20:13:27 +00:00
Sven Neumann 47509e33a1 when we trust the dirty flag and don't save because there are no changes,
2008-08-14  Sven Neumann  <sven@gimp.org>

	* app/actions/file-commands.c (file_save_cmd_callback): when we
	trust the dirty flag and don't save because there are no 
changes,
	display a message in the status-bar telling the user so.

	* app/config/gimpguiconfig.c: changed the default value for 
	"trust-dirty-flag" to TRUE.


svn path=/trunk/; revision=26565
2008-08-14 20:12:54 +00:00
Sven Neumann 9884974e53 use G_STRFUNC to get the proper function name in the error message.
2008-08-14  Sven Neumann  <sven@gimp.org>

	* app/plug-in/gimpplugin-message.c 
(gimp_plug_in_handle_tile_get):
	use G_STRFUNC to get the proper function name in the error 
message.


svn path=/trunk/; revision=26564
2008-08-14 19:59:47 +00:00
Martin Nordholts a56fd032f6 New function. (gimp_display_shell_scale_get_zoom_focus): If the image
2008-08-14  Martin Nordholts  <martinn@svn.gnome.org>

	* app/display/gimpdisplayshell-scale.c
	(gimp_display_shell_scale_image_stops_to_fit): New function.
	(gimp_display_shell_scale_get_zoom_focus): If the image stops
	to fit the viewport, we can already now use the mouse cursor
	as the zoom focus point.

svn path=/trunk/; revision=26563
2008-08-14 19:45:35 +00:00
Martin Nordholts c8ae8f67b4 New function.
2008-08-14  Martin Nordholts  <martinn@svn.gnome.org>

	* app/display/gimpdisplayshell-draw.[ch]
	(gimp_display_shell_draw_get_scaled_image_size_for_scale): New
	function.

	* app/display/gimpdisplayshell-scale.[ch]
	(gimp_display_shell_scale): When zooming out and the image
	starts to fit the viewport on a given axis, center on that
	axis.

	(gimp_display_shell_scale_image_starts_to_fit): New function.

	(gimp_display_shell_calculate_scale_x_and_y): New function.

	* app/display/gimpdisplayshell.c
	(gimp_display_shell_scale_changed): Use
	gimp_display_shell_calculate_scale_x_and_y().

	* app/display/gimpdisplayshell-scroll.c
	(gimp_display_shell_scroll_center_image): Bail out if neither
	vertical nor horizontal centering is requested.

svn path=/trunk/; revision=26562
2008-08-14 19:23:28 +00:00
Martin Nordholts 0fe3208158 When the image is within the viewport, also use the center of the image as
2008-08-14  Martin Nordholts  <martinn@svn.gnome.org>

	* app/display/gimpdisplayshell-scale.c
	(gimp_display_shell_scale_get_zoom_focus): When the image is
	within the viewport, also use the center of the image as the zoom
	focus point when zooming it. It feels way too weird not to do it
	this way.

svn path=/trunk/; revision=26561
2008-08-14 17:49:36 +00:00
Martin Nordholts de82d2f7ec If the image is within the viewport and we are zooming out, make the focus
2008-08-14  Martin Nordholts  <martinn@svn.gnome.org>

	* app/display/gimpdisplayshell-scale.c
	(gimp_display_shell_scale_get_zoom_focus): If the image is within
	the viewport and we are zooming out, make the focus point be the
	center of the image.

svn path=/trunk/; revision=26560
2008-08-14 17:41:38 +00:00
Martin Nordholts 57ec836f3e Move calculation of the actual new scale to use from here
2008-08-14  Martin Nordholts  <martinn@svn.gnome.org>

	* app/display/gimpdisplayshell-scale.c
	(gimp_display_shell_scale_to): Move calculation of the actual new
	scale to use from here
	(gimp_display_shell_scale): to here, because we need this
	information in order to determine what point to focus on while
	zooming.

svn path=/trunk/; revision=26559
2008-08-14 16:41:31 +00:00
Martin Nordholts c9dc5bf940 No need to update scrollbars, only rulers. (gimp_display_shell_reconnect):
2008-08-14  Martin Nordholts  <martinn@svn.gnome.org>

	* app/display/gimpdisplayshell.c
	(gimp_display_shell_set_unit): No need to update scrollbars, only
	rulers.
	(gimp_display_shell_reconnect): A
	gimp_display_shell_scroll_clamp_and_update() makes more sense
	here.

svn path=/trunk/; revision=26558
2008-08-14 15:55:56 +00:00
Martin Nordholts 052d859c6a When the screen resolution changes and we are not in Dot by dot, we also
2008-08-14  Martin Nordholts  <martinn@svn.gnome.org>

	* app/display/gimpdisplayshell-handlers.c
	(gimp_display_shell_monitor_res_notify_handler): When the screen
	resolution changes and we are not in Dot by dot, we also need to
	clamp the display shell offsets.

svn path=/trunk/; revision=26557
2008-08-14 15:44:25 +00:00
Martin Nordholts f91ac50fd7 If we are in dot-by-dot, we only need to update the rulers, and only if
2008-08-14  Martin Nordholts  <martinn@svn.gnome.org>

	* app/display/gimpdisplayshell-handlers.c
	(gimp_display_shell_resolution_changed_handler): If we are in
	dot-by-dot, we only need to update the rulers, and only if the
	unit is not pixels.

svn path=/trunk/; revision=26556
2008-08-14 15:34:09 +00:00
Martin Nordholts ecd95dcf76 Split this up in gimp_display_shell_scale_update_scrollbars() and
2008-08-14  Martin Nordholts  <martinn@svn.gnome.org>

	* app/display/gimpdisplayshell-scale.c
	(gimp_display_shell_update_scrollbars_and_rulers): Split this up
	in gimp_display_shell_scale_update_scrollbars() and
	gimp_display_shell_scale_update_rulers().

svn path=/trunk/; revision=26555
2008-08-14 15:17:40 +00:00
Martin Nordholts 2f52791b2b New helper function.
2008-08-14  Martin Nordholts  <martinn@svn.gnome.org>

	* app/display/gimpdisplayshell-scroll.c
	(gimp_display_shell_scroll_clamp_and_update): New helper function.

	* app/display/gimpdisplayshell-scale.c
	* app/display/gimpdisplayshell-scroll.c
	* app/display/gimpdisplayshell-callbacks.c: Use it.

svn path=/trunk/; revision=26554
2008-08-14 14:41:29 +00:00
Sven Neumann d18f24ea0a renamed the dialog class to ConsoleDialog to avoid confusion with
2008-08-14  Sven Neumann  <sven@gimp.org>

	* plug-ins/pygimp/plug-ins/python-console.py: renamed the dialog
	class to ConsoleDialog to avoid confusion with 
pyconsole.Console.


svn path=/trunk/; revision=26544
2008-08-14 05:56:58 +00:00
Sven Neumann d87877c257 instead of calling gimp-displays-flush twice a second, call it after each
2008-08-13  Sven Neumann  <sven@gimp.org>

	* plug-ins/pygimp/plug-ins/python-console.py: instead of calling
	gimp-displays-flush twice a second, call it after each command
	that is committed. This is similar to what the Script-Fu console
	does.

	* plug-ins/script-fu/script-fu-console.c: formatting.


svn path=/trunk/; revision=26543
2008-08-13 21:54:27 +00:00
Sven Neumann d1a37ae49b fix compiler warnings.
2008-08-13  Sven Neumann  <sven@gimp.org>

	* plug-ins/pygimp/pygimp-colors.c: fix compiler warnings.


svn path=/trunk/; revision=26538
2008-08-13 21:10:17 +00:00
Sven Neumann 0293ea54a2 reverted the last change as g_file_query_info() is now also implemented on
2008-08-13  Sven Neumann  <sven@gimp.org>

	* plug-ins/help/gimphelplocale.c (gimp_help_locale_parse):
	reverted the last change as g_file_query_info() is now also
	implemented on Win32.


svn path=/trunk/; revision=26537
2008-08-13 20:42:34 +00:00
Sven Neumann f05d8a7328 continue even if g_file_query_info() fails. We can't show proper progress
2008-08-13  Sven Neumann  <sven@gimp.org>

	* plug-ins/help/gimphelplocale.c (gimp_help_locale_parse):
	continue even if g_file_query_info() fails. We can't show proper
	progress information then, but we can still attempt the 
download.
 

svn path=/trunk/; revision=26536
2008-08-13 19:19:50 +00:00
Sven Neumann 4d38e14aa9 applied patch from Luidnel Maignan (followup to bug #105568).
2008-08-13  Sven Neumann  <sven@gimp.org>

	* app/paint-funcs/paint-funcs.c (replace_inten_pixels): applied
	patch from Luidnel Maignan (followup to bug #105568).


svn path=/trunk/; revision=26535
2008-08-13 19:03:57 +00:00
Sven Neumann fc2f433d98 applied patch from Geert Jordaens to fix scaling artifacts in top row (bug
2008-08-13  Sven Neumann  <sven@gimp.org>

	* app/paint-funcs/scale-region.c: applied patch from Geert
	Jordaens to fix scaling artifacts in top row (bug #464466).


svn path=/trunk/; revision=26534
2008-08-13 19:02:23 +00:00
Martin Nordholts 0fabf10475 New function responsible for deciding what viewport coordinate to focus on
2008-08-13  Martin Nordholts  <martinn@svn.gnome.org>

	* app/display/gimpdisplayshell-scale.c
	(gimp_display_shell_scale_get_zoom_focus): New function
	responsible for deciding what viewport coordinate to focus on when
	zooming in and out.

svn path=/trunk/; revision=26532
2008-08-13 18:37:15 +00:00
Martin Nordholts ccdac05843 Make this a private function because we want to be in full control over
2008-08-13  Martin Nordholts  <martinn@svn.gnome.org>

	* app/display/gimpdisplayshell-scale.[ch]
	(gimp_display_shell_scale_to): Make this a private function
	because we want to be in full control over what pixel to focus on
	when zooming in and out.

	* app/display/gimpdisplayshell-callbacks.c
	(gimp_display_shell_canvas_tool_events): Use
	gimp_display_shell_scale() here instead of
	gimp_display_shell_scale_to(). We figure out (and can override if
	we wish) the coordinates that were previously passed explicitly.

svn path=/trunk/; revision=26531
2008-08-13 17:58:25 +00:00
Martin Nordholts 9d203ddbdc toggled -> toggled on in most recent ChangeLog entry.
svn path=/trunk/; revision=26530
2008-08-13 17:41:47 +00:00
Martin Nordholts 47b34e973d New function.
2008-08-13  Martin Nordholts  <martinn@svn.gnome.org>

	* app/display/gimpdisplayshell-scale.c
	(gimp_display_shell_scale_image_is_within_viewport): New function.

	* app/display/gimpdisplayshell.c (gimp_display_shell_new): When
	the zoom button is toggled, implicitly do a View -> Fit Image in
	Window if the (scaled) image is within the viewport.

svn path=/trunk/; revision=26529
2008-08-13 17:36:29 +00:00
Martin Nordholts a9bb68a248 Include gimpprojection.h for gimp_projection_get_tiles().
2008-08-13  Martin Nordholts  <martinn@svn.gnome.org>

	* app/paint/gimppaintcore.c: Include gimpprojection.h for
	gimp_projection_get_tiles().

svn path=/trunk/; revision=26528
2008-08-13 17:30:08 +00:00
Sven Neumann f35066ffe4 applied a slightly modified version of the patch from Luidnel Maignan as
2008-08-12  Sven Neumann  <sven@gimp.org>

	* app/paint-funcs/paint-funcs.c (replace_inten_pixels): applied 
a
	slightly modified version of the patch from Luidnel Maignan as
	attached to bug #105568. Fixes incorrect alpha treatment in
	plug-in selection masking.


svn path=/trunk/; revision=26524
2008-08-12 20:01:19 +00:00
Sven Neumann 1a7bdc570d don't do the background histogram unless the histogram view is actually
2008-08-12  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimphistogrameditor.c
	(gimp_histogram_editor_frozen_update): don't do the background
	histogram unless the histogram view is actually visible.


svn path=/trunk/; revision=26523
2008-08-12 19:37:09 +00:00
Sven Neumann a59c7ccaf0 use gimp_projection_get_tiles() instead of doing the same through the
2008-08-12  Sven Neumann  <sven@gimp.org>

	* app/paint/gimppaintcore.c (gimp_paint_core_start): use
	gimp_projection_get_tiles() instead of doing the same through 
the
	GimpPickable interface.


svn path=/trunk/; revision=26522
2008-08-12 18:59:04 +00:00
Sven Neumann 595edacdd9 follow the executable name change.
2008-08-12  Sven Neumann  <sven@gimp.org>

	* plug-ins/win-snap/Makefile.am: follow the executable name 
change.


svn path=/trunk/; revision=26521
2008-08-12 17:18:43 +00:00
Sven Neumann f6771f1987 moved function calls out of CLAMP macros.
2008-08-12  Sven Neumann  <sven@gimp.org>

	* app/core/gimpprojection.c (gimp_projection_paint_area): moved
	function calls out of CLAMP macros.


svn path=/trunk/; revision=26520
2008-08-12 16:30:44 +00:00
Sven Neumann 0847643307 removed calls to scale the image and to update the scrollbars and rulers.
2008-08-12  Sven Neumann  <sven@gimp.org>

	* app/display/gimpdisplayshell.c (gimp_display_shell_empty):
	removed calls to scale the image and to update the scrollbars 
and
	rulers. Doesn't seem to make sense in an empty display and it
	causes a crash.


svn path=/trunk/; revision=26518
2008-08-12 15:17:43 +00:00
Sven Neumann ee58f4c90d app/core/gimpitem.c app/core/gimpobject.c app/dialogs/preferences-dialog.c
2008-08-12  Sven Neumann  <sven@gimp.org>

	* app/core/gimpitem.c
	* app/core/gimpobject.c
	* app/dialogs/preferences-dialog.c
	* plug-ins/imagemap/imap_main.c
	* plug-ins/imagemap/imap_selection.c
	* plug-ins/common/filter-pack.c
	* plug-ins/common/grid.c
	* plug-ins/common/newsprint.c
	* plug-ins/fractal-explorer/fractal-explorer-dialogs.c
	* plug-ins/fractal-explorer/fractal-explorer.c: use canonical
	signal names.


svn path=/trunk/; revision=26517
2008-08-12 14:45:59 +00:00
Sven Neumann 83b6d3a006 create the stamp-it files in the po-* directories.
2008-08-12  Sven Neumann  <sven@gimp.org>

	* configure.in (sed-po-makefiles): create the stamp-it files in
	the po-* directories.


svn path=/trunk/; revision=26514
2008-08-12 13:02:35 +00:00
Sven Neumann 54faa7dbc2 corrected 'subdir' variables. Spotted by Tor Lillqvist.
2008-08-12  Sven Neumann  <sven@gimp.org>

	* po-*/Makefile.in.in: corrected 'subdir' variables. Spotted by
	Tor Lillqvist.

	* modules/controller-midi.c: formatting.


svn path=/trunk/; revision=26513
2008-08-12 12:50:57 +00:00
Michael Natterer e4c953117a Fix my last entry.
svn path=/trunk/; revision=26512
2008-08-12 12:49:17 +00:00
Michael Natterer 076a1651c7 override the wheel's size-allocate and return a small requisition that
2008-08-12  Michael Natterer  <mitch@gimp.org>

	* modules/color-selector-wheel.c: override the wheel's
	size-allocate and return a small requisition that allows to be
	resized smaller again.


svn path=/trunk/; revision=26511
2008-08-12 12:48:02 +00:00
Sven Neumann 7f7f63db6e fixed library dependencies.
2008-08-12  Sven Neumann  <sven@gimp.org>

	* modules/Makefile.am: fixed library dependencies.


svn path=/trunk/; revision=26510
2008-08-12 12:28:43 +00:00
Michael Natterer c023af4671 plug-ins/common/cml-explorer.c plug-ins/common/depth-merge.c
2008-08-11  Michael Natterer  <mitch@gimp.org>

	* plug-ins/common/cml-explorer.c
	* plug-ins/common/depth-merge.c
	* plug-ins/common/file-cel.c
	* plug-ins/common/oilify.c
	* plug-ins/file-bmp/bmp-write.c
	* plug-ins/file-bmp/bmp.[ch]
	* plug-ins/file-ico/ico-dialog.c
	* plug-ins/file-ico/ico-save.c
	* plug-ins/file-ico/ico.h
	* plug-ins/flame/flame.c
	* plug-ins/fractal-explorer/fractal-explorer-dialogs.c
	* plug-ins/fractal-explorer/fractal-explorer.[ch]
	* plug-ins/gimpressionist/gimp.c
	* plug-ins/gimpressionist/gimpressionist.[ch]
	* plug-ins/gimpressionist/orientmap.c
	* plug-ins/gimpressionist/presets.c
	* plug-ins/gimpressionist/sizemap.c
	* plug-ins/help-browser/dialog.[ch]
	* plug-ins/help-browser/help-browser.c
	* plug-ins/ifs-compose/ifs-compose.c
	* plug-ins/imagemap/imap_default_dialog.c
	* plug-ins/imagemap/imap_main.[ch]
	* plug-ins/lighting/lighting-main.[ch]
	* plug-ins/lighting/lighting-ui.c
	* plug-ins/map-object/map-object-main.[ch]
	* plug-ins/map-object/map-object-ui.c
	* plug-ins/selection-to-path/selection-to-path.c
	* plug-ins/win-snap/winsnap.c: use PLUG_IN_BINARY and PLUG_IN_PROC
	defines consistently instead of using literal strings or other
	random defines. Define them if not already there or move them to
	plugin-global places.

	* plug-ins/win-snap/Makefile.am: rename the binary to "win-snap".

	* plug-ins/win-snap/winsnap.c: changed accordingly.


svn path=/trunk/; revision=26509
2008-08-11 19:42:08 +00:00
Michael Natterer a2f6108bc6 modules/Makefile.am renamed all modules to color-selector-foo.c,
2008-08-11  Michael Natterer  <mitch@gimp.org>

	* modules/Makefile.am
	* modules/*.c: renamed all modules to color-selector-foo.c,
	display-filter-foo.c and controller-foo.c


svn path=/trunk/; revision=26506
2008-08-11 18:28:01 +00:00
Sven Neumann 38780dc991 list of, not or
svn path=/trunk/; revision=26505
2008-08-11 17:50:01 +00:00
Sven Neumann 8fd70463f1 mention lcms in the list or recommended libraries.
2008-08-11  Sven Neumann  <sven@gimp.org>

	* INSTALL: mention lcms in the list or recommended libraries.


svn path=/trunk/; revision=26504
2008-08-11 17:49:39 +00:00
Michael Natterer e4eec5b5b1 check for lcms with PKG_CHECK_MODULES(). Remove check for <lcms.h> vs.
2008-08-11  Michael Natterer  <mitch@gimp.org>

	* configure.in: check for lcms with PKG_CHECK_MODULES(). Remove
	check for <lcms.h> vs. <lsmc/lsmc.h> because the pc file should
	give us the right location now.

	* modules/cdisplay_lcms.c
	* modules/cdisplay_proof.c
	* modules/colorsel_cmyk_lcms.c
	* plug-ins/file-jpeg/jpeg-load.c
	* plug-ins/common/lcms.c: #include <lcms.h> and nothing else.

	* modules/Makefile.am
	* plug-ins/file-jpeg/Makefile.am
	* plug-ins/common/plugin-defs.pl: add LCMS_CFLAGS where appropriate.

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


svn path=/trunk/; revision=26503
2008-08-11 17:28:41 +00:00
Michael Natterer bda291f914 Fix ChangeLog
svn path=/trunk/; revision=26502
2008-08-11 17:14:11 +00:00
Sven Neumann e816403306 Please re-run autogen.sh after this update, and let me know if there are
2008-08-11  Sven Neumann  <sven@gimp.org>

	Please re-run autogen.sh after this update, and let me know if
	there are any problems.

	* po-*/Makefile.in.in: updated to a version that does not 
require
	mkinstalldirs to be present.

	* autogen.sh: removed the call to glib-gettextize and call
	intltoolize without the --force command-line option. This change
	makes an end to the po/Makefile.in.in being overwritten.

	* HACKING: changed the documentation accordingly.


svn path=/trunk/; revision=26500
2008-08-11 16:15:25 +00:00
Sven Neumann 8ee49109e3 removed the LIBFOO hack from this script.
2008-08-11  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/plugin-defs.pl: removed the LIBFOO hack from
	this script.
	
	* plug-ins/common/mkgen.pl: explicitely specify the libs in the
	two places where it wasn't done yet.

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


svn path=/trunk/; revision=26499
2008-08-11 15:05:23 +00:00
Michael Natterer 67a0daf045 change all LIBFOO variables to FOO_LIBS for consistency, could get rid of
2008-08-11  Michael Natterer  <mitch@gimp.org>

	* configure.in: change all LIBFOO variables to FOO_LIBS for
	consistency, could get rid of some variables alltogether since
	PNG_CHECK_MODULES() already defined FOO_LIBS.

	* tools/Makefile.am
	* modules/Makefile.am
	* plug-ins/file-ico/Makefile.am
	* plug-ins/file-jpeg/Makefile.am
	* plug-ins/file-psd/Makefile.am
	* plug-ins/file-xjt/Makefile.am
	* plug-ins/common/plugin-defs.pl
	* plug-ins/common/mkgen.pl: changed accordingly.

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


svn path=/trunk/; revision=26498
2008-08-11 14:40:48 +00:00
Michael Natterer 3d75c95f95 plug-ins/bmp/* plug-ins/faxg3/* plug-ins/fits/* plug-ins/fli/*
2008-08-11  Michael Natterer  <mitch@gimp.org>

	* plug-ins/bmp/*
	* plug-ins/faxg3/*
	* plug-ins/fits/*
	* plug-ins/fli/*
	* plug-ins/ico/*
	* plug-ins/jpeg/*
	* plug-ins/psd/*
	* plug-ins/sgi/*
	* plug-ins/uri/*
	* plug-ins/xjt/*: removed these...

	* plug-ins/file-bmp/*
	* plug-ins/file-faxg3/*
	* plug-ins/file-fits/*
	* plug-ins/file-fli/*
	* plug-ins/file-ico/*
	* plug-ins/file-jpeg/*
	* plug-ins/file-psd/*
	* plug-ins/file-sgi/*
	* plug-ins/file-uri/*
	* plug-ins/file-xjt/*: and moved them here. Changed executable
	names to "file-foo".

	* plug-ins/Makefile.am: changed accordingly.

	* plug-ins/common/*: rename all file plug-ins to file-foo.c. Get
	rid of the names "poppler" and "postscript" and call them
	"file-pdf" and "file-ps" because the conflict with standard
	autofoo targets is gone.

	* plug-ins/common/plugin-defs.pl: changed accordingly.

	* plug-ins/common/mkgen.pl: make sure cflags variables are named
	"PLUG_IN_NAME_CFLAGS" and not "PLUG-IN-NAME_CFLAGS"

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

	* configure.in: change folders and variable names to match above
	changes.


svn path=/trunk/; revision=26494
2008-08-11 10:06:13 +00:00
Sven Neumann b060070182 minor coding style cleanups.
2008-08-11  Sven Neumann  <sven@gimp.org>

	* app/tools/gimptexttool.c: minor coding style cleanups.


svn path=/trunk/; revision=26490
2008-08-11 09:41:12 +00:00
Martin Nordholts 73e303590c If the image fits within the display shell canvas on a given axis, center
2008-08-10  Martin Nordholts  <martinn@svn.gnome.org>

	* app/display/gimpdisplayshell-callbacks.c
	(gimp_display_shell_canvas_size_allocate): If the image fits
	within the display shell canvas on a given axis, center the image
	on that axis. This behaviour will certainly require a few tweaks
	but let's see how this feels. Feedback welcome.

svn path=/trunk/; revision=26489
2008-08-10 15:19:24 +00:00
Martin Nordholts 5148ff2c9f Recent refactorings seems to have made the centering hack obsolete so use
2008-08-10  Martin Nordholts  <martinn@svn.gnome.org>

	* app/display/gimpdisplayshell.c (gimp_display_shell_fill): Recent
	refactorings seems to have made the centering hack obsolete so use
	gimp_display_shell_scroll_center_image_on_next_size_allocate()
	instead.

svn path=/trunk/; revision=26488
2008-08-10 14:34:10 +00:00