gimp r26612 - in trunk: . app/display
- From: martinn svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r26612 - in trunk: . app/display
- Date: Sun, 17 Aug 2008 07:29:48 +0000 (UTC)
Author: martinn
Date: Sun Aug 17 07:29:48 2008
New Revision: 26612
URL: http://svn.gnome.org/viewvc/gimp?rev=26612&view=rev
Log:
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.
Modified:
trunk/ChangeLog
trunk/app/display/gimpdisplayshell-callbacks.c
Modified: trunk/app/display/gimpdisplayshell-callbacks.c
==============================================================================
--- trunk/app/display/gimpdisplayshell-callbacks.c (original)
+++ trunk/app/display/gimpdisplayshell-callbacks.c Sun Aug 17 07:29:48 2008
@@ -282,6 +282,8 @@
gint offset_x;
gint offset_y;
+ /* FIXMEEEEE!!! */
+
/* multiply the zoom_factor with the ratio of the new and
* old canvas diagonals
*/
@@ -303,23 +305,27 @@
shell->disp_height = allocation->height;
/* When we size-allocate due to resize of the top level window,
- * we want some additional logic
+ * we want some additional logic. Don't apply it on
+ * zoom_on_resize though.
*/
if (shell->size_allocate_from_configure_event)
{
- gint sw;
- gint sh;
- gboolean center_horizontally;
- gboolean center_vertically;
-
- gimp_display_shell_draw_get_scaled_image_size (shell, &sw, &sh);
-
- center_horizontally = sw <= shell->disp_width;
- center_vertically = sh <= shell->disp_height;
-
- gimp_display_shell_scroll_center_image (shell,
- center_horizontally,
- center_vertically);
+ if (! shell->zoom_on_resize)
+ {
+ gint sw;
+ gint sh;
+ gboolean center_horizontally;
+ gboolean center_vertically;
+
+ gimp_display_shell_draw_get_scaled_image_size (shell, &sw, &sh);
+
+ center_horizontally = sw <= shell->disp_width;
+ center_vertically = sh <= shell->disp_height;
+
+ gimp_display_shell_scroll_center_image (shell,
+ center_horizontally,
+ center_vertically);
+ }
shell->size_allocate_from_configure_event = FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]