Commit graph

23639 commits

Author SHA1 Message Date
Sven Neumann eeed0029bf added some line breaks to improve readability.
2008-07-14  Sven Neumann  <sven@gimp.org>

	* app/display/gimpdisplayshell-scale.c
	(gimp_display_shell_scale_setup): added some line breaks to
	improve readability.


svn path=/trunk/; revision=26187
2008-07-14 09:41:16 +00:00
Martin Nordholts ba5661b443 Rephrase latest ChangeLog entry.
svn path=/trunk/; revision=26186
2008-07-13 20:33:29 +00:00
Martin Nordholts 805a3f5f8b Allow to choose what axes to center on.
2008-07-13  Martin Nordholts  <martinn@svn.gnome.org>

	* app/display/gimpdisplayshell-scale.[ch]
	(gimp_display_shell_center_image): Allow to choose what axes to
	center on.

	(gimp_display_shell_scale_fill)
	(gimp_display_shell_scale_fit_in): Explicitly center on both axes.

	* app/display/gimpdisplayshell.c (gimp_display_shell_fill): Center
	the image in the filled display shell. Rather hackish, but seems
	to work fine.

svn path=/trunk/; revision=26185
2008-07-13 20:23:15 +00:00
Sven Neumann f56bc8493f app/widgets/Makefile.am app/widgets/gimpdbusservice.[ch] removed here ...
2008-07-13  Sven Neumann  <sven@gimp.org>

	* app/widgets/Makefile.am
	* app/widgets/gimpdbusservice.[ch]
	* app/widgets/dbus-service.xml: removed here ...

	* app/gui/Makefile.am
	* app/gui/gimpdbusservice.[ch]
	* app/gui/dbus-service.xml: ... and moved here.
	(gimp_dbus_service_activate): raise the first display instead of
	the toolbox.

	* app/gui/gui-unique.c (gui_unique_win32_idle_open): same change
	here, raise the display instead of the toolbox.

	* app/unique.c: changed accordingly.


svn path=/trunk/; revision=26184
2008-07-13 19:49:32 +00:00
Sven Neumann e6e549a2d6 app/unique.c on Win32, if the gimp binary is started without filenames,
2008-07-13  Sven Neumann  <sven@gimp.org>

	* app/unique.c
	* app/gui/gui-unique.c: on Win32, if the gimp binary is started
	without filenames, raise the toolbox, just as we do in the DBus
	code path.


svn path=/trunk/; revision=26183
2008-07-13 19:04:38 +00:00
Sven Neumann 8746d0d0b7 removed trailing whitespace
svn path=/trunk/; revision=26182
2008-07-13 18:00:06 +00:00
Aurimas Juška 7ea57f5c80 check for NULL pointer to prevent crash when there are no filenames
2008-07-13  Aurimas Juška  <aurisj@svn.gnome.org>

	* app/unique.c (gimp_unique_win32_open): check for NULL pointer to
	prevent crash when there are no filenames provided.


svn path=/trunk/; revision=26179
2008-07-13 16:27:58 +00:00
Martin Nordholts fe0d07de9f Get rid of non-intelligent scrollbar stepper sensitivity code.
2008-07-13  Martin Nordholts  <martinn@svn.gnome.org>

	* app/display/gimpdisplayshell.c (gimp_display_shell_new): Get rid
	of non-intelligent scrollbar stepper sensitivity code.

	* app/display/gimpdisplayshell-scroll.c
	(gimp_display_shell_scroll_clamp_offsets): Add intelligent
	scrollbar stepper sensitivity code.

svn path=/trunk/; revision=26178
2008-07-13 14:48:44 +00:00
Martin Nordholts 60fb7eda29 Consistency cleanup.
2008-07-13  Martin Nordholts  <martinn@svn.gnome.org>

	* app/display/gimpdisplayshell-scroll.c
	(gimp_display_shell_setup_hscrollbar_with_value): Consistency
	cleanup.

svn path=/trunk/; revision=26177
2008-07-13 14:33:04 +00:00
Martin Nordholts 909e46c9aa New function. (gimp_display_shell_scale_fill)
2008-07-13  Martin Nordholts  <martinn@svn.gnome.org>

	* app/display/gimpdisplayshell-scale.c
	(gimp_display_shell_center_image): New function.
	(gimp_display_shell_scale_fill)
	(gimp_display_shell_scale_fit_in): Center the image at the end.

svn path=/trunk/; revision=26176
2008-07-13 14:09:05 +00:00
Martin Nordholts 59a5825e23 Use gimp_display_shell_get_scaled_image_size() instead of inaccurately
2008-07-13  Martin Nordholts  <martinn@svn.gnome.org>

	* app/display/gimpdisplayshell-scroll.c
	(gimp_display_shell_setup_hscrollbar_with_value)
	(gimp_display_shell_setup_vscrollbar_with_value): Use
	gimp_display_shell_get_scaled_image_size() instead of inaccurately
	calculate that information locally.

svn path=/trunk/; revision=26175
2008-07-13 12:22:10 +00:00
Martin Nordholts a93373fdd9 BORDER_PEN_WIDTH is a normal constant, no need for voodoo.
2008-07-13  Martin Nordholts  <martinn@svn.gnome.org>

	* app/display/gimpnavigationeditor.c
	(gimp_navigation_editor_popup): BORDER_PEN_WIDTH is a normal
	constant, no need for voodoo.

svn path=/trunk/; revision=26170
2008-07-13 09:11:42 +00:00
Martin Nordholts e0cf43aea3 New function that contains logic previously kept in
2008-07-13  Martin Nordholts  <martinn@svn.gnome.org>

	* app/display/gimpdisplayshell-scroll.[ch]
	(gimp_display_shell_get_scaled_image_size): New function that
	contains logic previously kept in gimp_display_shell_draw_area().

	* app/display/gimpdisplayshell-draw.c
	(gimp_display_shell_draw_area): Use the new function.

svn path=/trunk/; revision=26168
2008-07-13 07:40:11 +00:00
Martin Nordholts 121849e7ca Don't ask gimp_display_shell_set_initial_scale() for display size, we
2008-07-13  Martin Nordholts  <martinn@svn.gnome.org>

	* app/display/gimpdisplayshell.c (gimp_display_shell_fill): Don't
	ask gimp_display_shell_set_initial_scale() for display size, we
	don't care anyway.

svn path=/trunk/; revision=26167
2008-07-13 06:25:23 +00:00
Martin Nordholts 4aeaa83f9e The following change is conceptually based on a patch by Alexia Death and
2008-07-12  Martin Nordholts  <martinn@svn.gnome.org>

	The following change is conceptually based on a patch by
	Alexia Death and implements the core functionality for
	bug #362915.

	* app/display/gimpdisplayshell-scroll.[ch]
	(gimp_display_shell_scroll_clamp_offsets): Clamp the offsets in
	such a way that allows to scroll beyond the image border.

	(gimp_display_shell_setup_hscrollbar_with_value)
	(gimp_display_shell_setup_vscrollbar_with_value): Put common
	scrollbar range setup code here.

	* app/display/gimpdisplayshell-scale.c
	(gimp_display_shell_scale_setup): Use above helper functions for
	setting up scrollbar range.

	* app/display/gimpdisplayshell-callbacks.c: Handle adjustment of
	the scrollbar range when they are about to change value.

	* app/display/gimpdisplayshell.c: Always keep the scrollbar
	steppers sensitive to user input.

svn path=/trunk/; revision=26166
2008-07-12 14:48:09 +00:00
Martin Nordholts fb32ff3efd Add short doc for gimp_display_shell_center_around_image_coordinate()
svn path=/trunk/; revision=26163
2008-07-12 14:26:49 +00:00
Martin Nordholts 9f5c347d4e Replace gimp_display_shell_scroll() with
2008-07-12  Martin Nordholts  <martinn@svn.gnome.org>

	* app/display/gimpdisplayshell-scroll.c:
	Replace gimp_display_shell_scroll() with
	gimp_display_shell_center_around_image_coordinate() since that is
	easier to map to something sensible when we allow to scroll beyond
	image border.

	* app/display/gimpnavigationeditor.c
	(gimp_navigation_editor_marker_changed): Adapt to the new
	interface.

svn path=/trunk/; revision=26162
2008-07-12 14:20:54 +00:00
Martin Nordholts 1fb0f1d82d Remove invalid TODO.
2008-07-12  Martin Nordholts  <martinn@svn.gnome.org>

	* app/display/gimpdisplayshell-scroll.c
	(gimp_display_shell_get_viewport): Remove invalid TODO.

svn path=/trunk/; revision=26161
2008-07-12 14:09:16 +00:00
Martin Nordholts 2e86bdab85 Added VOID__DOUBLE_DOUBLE_DOUBLE_DOUBLE marshaller.
2008-07-12  Martin Nordholts  <martinn@svn.gnome.org>

	* app/core/gimpmarshal.list: Added
	VOID__DOUBLE_DOUBLE_DOUBLE_DOUBLE marshaller.

	* app/widgets/gimpnavigationview.c: Make the "marker-changed"
	signal also pass the marker width and height as parameters.

	* app/display/gimpnavigationeditor.c: Updated accordingly.

svn path=/trunk/; revision=26160
2008-07-12 13:53:31 +00:00
Sven Neumann 6cc021bd4e fixed check for babl.
2008-07-12  Sven Neumann  <sven@gimp.org>

	* configure.in: fixed check for babl.


svn path=/trunk/; revision=26159
2008-07-12 12:34:08 +00:00
Martin Nordholts 4c57a9affb Prefered casing of babl' is babl'.
2008-07-12  Martin Nordholts  <martinn@svn.gnome.org>

	* configure.in: Prefered casing of `babl' is `babl'.

svn path=/trunk/; revision=26158
2008-07-12 11:57:43 +00:00
Daniel Nylander 4686cacdcd sv.po: Updated Swedish translation
svn path=/trunk/; revision=26157
2008-07-12 11:30:45 +00:00
Daniel Nylander 8c04ec2162 sv.po: Updated Swedish translation
svn path=/trunk/; revision=26156
2008-07-12 11:30:17 +00:00
Daniel Nylander 42d0168574 sv.po: Updated Swedish translation
svn path=/trunk/; revision=26155
2008-07-12 10:34:09 +00:00
Martin Nordholts 0024ff8048 The scrollbars should be setup using the new offset, not the old
2008-07-12  Martin Nordholts  <martinn@svn.gnome.org>

	* app/display/gimpdisplayshell-scale.c
	(gimp_display_shell_scale_setup): The scrollbars should be setup
	using the new offset, not the old counterpart.

svn path=/trunk/; revision=26154
2008-07-12 10:27:20 +00:00
Daniel Nylander 2fa30b3487 sv.po: Updated Swedish translation
svn path=/trunk/; revision=26153
2008-07-12 10:13:39 +00:00
Sven Neumann 70cb604509 formatting.
2008-07-12  Sven Neumann  <sven@gimp.org>

	* app/tools/gimprectangletool.c: formatting.


svn path=/trunk/; revision=26151
2008-07-12 09:07:04 +00:00
Sven Neumann 0fc3b637ea added GIMP_TYPE_COLOR_ARRAY and GIMP_TYPE_PARAM_COLOR_ARRAY in preparation
2008-07-12  Sven Neumann  <sven@gimp.org>

	* app/core/gimpparamspecs.[ch]: added GIMP_TYPE_COLOR_ARRAY and
	GIMP_TYPE_PARAM_COLOR_ARRAY in preparation for fixing bug 
#332206.


svn path=/trunk/; revision=26150
2008-07-12 08:20:14 +00:00
Martin Nordholts fd98934856 ChangeLog formating...
svn path=/trunk/; revision=26149
2008-07-12 07:20:32 +00:00
Martin Nordholts 6445b614c7 Renamed the variables sx and sy to sw and sh.
2008-07-12  Martin Nordholts  <martinn@svn.gnome.org>

	* app/display/gimpdisplayshell-scale.c
	(gimp_display_shell_scale_setup): Renamed the variables sx and sy
	to sw and sh.

svn path=/trunk/; revision=26148
2008-07-12 07:14:22 +00:00
Martin Nordholts 192dc30e9e Reformated previous ChangeLog entry:
In this ChangeLog entry, disp_offset means disp_[xy]offset and
	offset means offset_[xy].

	* app/display/gimpdisplayshell.c: Kill disp_offset! We now
	represent that by a negative offset.

	* app/display/gimpdisplayshell-scroll.[ch]
	(gimp_display_shell_scroll_clamp_offsets)
	(gimp_display_shell_get_scaled_image_viewport_offset): Adjust
	accordingly to preserve current behaviour.

	(gimp_display_shell_get_disp_offset): New function to get the old
	disp_offset based on the new offset.

	(gimp_display_shell_get_render_start_offset): New function to get
	the old offset based on the new offset.

	* app/display/gimpdisplayshell-draw.c
	* app/display/gimpdisplayshell-scale.c
	* app/display/gimpdisplayshell-render.c: Get rid of disp_offset
	and use gimp_display_shell_get_disp_offset() and
	gimp_display_shell_get_render_start_offset() instead.

svn path=/trunk/; revision=26147
2008-07-12 07:09:54 +00:00
Martin Nordholts a33d80107b Kill disp_[xy]offset! We now keep store that information by using negative
2008-07-12  Martin Nordholts  <martinn@svn.gnome.org>

	* app/display/gimpdisplayshell.c: Kill disp_[xy]offset! We now
	keep store that information by using negative values in
	offset_[xy].

	* app/display/gimpdisplayshell-scroll.[ch]
	(gimp_display_shell_scroll_clamp_offsets)
	(gimp_display_shell_get_scaled_image_viewport_offset): Adjust
	accordingly to preserve current behaviour.

	(gimp_display_shell_get_disp_offset): New function to get the old
	disp_[xy]offset based on the new offset_[xy].

	(gimp_display_shell_get_render_start_offset): New function to get
	th old offset_[xy] based on the new offset_[xy].

	* app/display/gimpdisplayshell-draw.c
	* app/display/gimpdisplayshell-scale.c
	* app/display/gimpdisplayshell-render.c: Get rid of
	disp_[xy]offset and use
	gimp_display_shell_get_render_start_offset() and
	gimp_display_shell_get_disp_offset() instead.

svn path=/trunk/; revision=26146
2008-07-12 07:00:46 +00:00
Martin Nordholts da6205f349 Remove #if zeroed debug output.
2008-07-11  Martin Nordholts  <martinn@svn.gnome.org>

	* app/display/gimpdisplayshell-scale.c
	(gimp_display_shell_scale_setup): Remove #if zeroed debug output.

svn path=/trunk/; revision=26145
2008-07-11 21:31:20 +00:00
Martin Nordholts ed12651cdd Add #include "gimpdisplayshell-scroll.h"
svn path=/trunk/; revision=26144
2008-07-11 21:26:14 +00:00
Martin Nordholts 3356a5b47e Restructure the way the rulers are setup, partly by making use of the new
2008-07-11  Martin Nordholts  <martinn@svn.gnome.org>

	* app/display/gimpdisplayshell-scale.c
	(gimp_display_shell_scale_setup): Restructure the way the rulers
	are setup, partly by making use of the new nifty
	gimp_display_shell_get_scaled_image_viewport_offset().

svn path=/trunk/; revision=26143
2008-07-11 21:08:34 +00:00
Martin Nordholts 998aac8b53 Remove two lines I forgot to remove in previous commit
svn path=/trunk/; revision=26142
2008-07-11 20:30:59 +00:00
Martin Nordholts 968fa2b25e We can use gimp_display_shell_get_scaled_image_viewport_offset() here
2008-07-11  Martin Nordholts  <martinn@svn.gnome.org>

	* app/display/gimpdisplayshell-transform.c
	(gimp_display_shell_transform_xy_f)
	(gimp_display_shell_untransform_xy_f): We can use
	gimp_display_shell_get_scaled_image_viewport_offset() here

	* app/display/gimpdisplayshell-scroll.c
	(gimp_display_shell_get_scaled_viewport): and here.

svn path=/trunk/; revision=26141
2008-07-11 20:28:37 +00:00
Martin Nordholts dc6f184a17 const- and g_return_if_fail-ify.
2008-07-11  Martin Nordholts  <martinn@svn.gnome.org>

	* app/display/gimpdisplayshell-scroll.[ch]
	(gimp_display_shell_get_viewport)
	(gimp_display_shell_get_scaled_viewport)
	(gimp_display_shell_get_scaled_image_viewport_offset): const- and
	g_return_if_fail-ify.

svn path=/trunk/; revision=26140
2008-07-11 20:03:36 +00:00
Sven Neumann 00ef6ab9ec simplified.
2008-07-11  Sven Neumann  <sven@gimp.org>

	* app/tools/gimprotatetool.c (gimp_rotate_tool_key_press): 
simplified.


svn path=/trunk/; revision=26139
2008-07-11 19:38:28 +00:00
Martin Nordholts f880f93f3e Correction to my most recent ChangeLog entry
svn path=/trunk/; revision=26138
2008-07-11 19:33:07 +00:00
Martin Nordholts 18c89550fa New function to replace any occurance of
2008-07-11  Martin Nordholts  <martinn@svn.gnome.org>

	* app/display/gimpdisplayshell-scroll.c
	(gimp_display_shell_get_scaled_image_viewport_offset): New
	function to replace any occurance of

	  shell->disp_[xy]offset - shell->offset_[xy]

	that is just an implementation specific way of saying the same
	thing.

	* app/display/gimpdisplayshell-draw.c
	* app/display/gimpdisplayshell-transform.c: Make the code less
	implementation dependant by using the new function.

svn path=/trunk/; revision=26137
2008-07-11 19:31:45 +00:00
Sven Neumann 78ef0cd13f another news entry
svn path=/trunk/; revision=26136
2008-07-11 18:36:13 +00:00
Martin Nordholts 74b89e5493 Update comment.
2008-07-11  Martin Nordholts  <martinn@svn.gnome.org>

	* app/display/gimpdisplayshell-draw.c
	(gimp_display_shell_draw_area): Update comment.

svn path=/trunk/; revision=26135
2008-07-11 18:32:27 +00:00
Tor Lillqvist 5d805657c1 Fix g_slice_new() use.
2008-07-11  Tor Lillqvist  <tml@novell.com>

	* app/gui/gui-unique.c (idle_open_data_new): Fix g_slice_new()
	use.


svn path=/trunk/; revision=26133
2008-07-11 16:53:09 +00:00
Tor Lillqvist 26780439ba Drop duplicated #include <gegl.h>.
2008-07-11  Tor Lillqvist  <tml@novell.com>

	* app/app.c: Drop duplicated #include <gegl.h>.


svn path=/trunk/; revision=26132
2008-07-11 16:47:35 +00:00
Sven Neumann 7ac14afc0f fix intltool warning by adding gimpcpuaccel.c
2008-07-11  Sven Neumann  <sven@gimp.org>

	* POTFILES.in: fix intltool warning by adding gimpcpuaccel.c

	* de.po: updated german translation.


svn path=/trunk/; revision=26131
2008-07-11 15:23:40 +00:00
Sven Neumann 0b64c27eb0 use g_printerr() for debug output.
2008-07-11  Sven Neumann  <sven@gimp.org>

	* plug-ins/selection-to-path/pxl-outline.c (append_coordinate):
	use g_printerr() for debug output.


svn path=/trunk/; revision=26130
2008-07-11 14:52:30 +00:00
Sven Neumann 48148af6c1 dispatch opening to an idle handler.
2008-07-11  Sven Neumann  <sven@gimp.org>

	* app/gui/gui-unique.c: dispatch opening to an idle handler.


svn path=/trunk/; revision=26129
2008-07-11 13:56:07 +00:00
Sven Neumann c130647de4 news for 2.5.2
svn path=/trunk/; revision=26128
2008-07-11 13:14:28 +00:00
Sven Neumann 6c4c3c2a0c removed reference to gimp-remote(1).
2008-07-11  Sven Neumann  <sven@gimp.org>

	* docs/gimp.1.in: removed reference to gimp-remote(1).


svn path=/trunk/; revision=26127
2008-07-11 13:10:23 +00:00