gimp r27366 - in trunk: . app/display



Author: martinn
Date: Wed Oct 22 19:02:00 2008
New Revision: 27366
URL: http://svn.gnome.org/viewvc/gimp?rev=27366&view=rev

Log:
Bug 556804 â Zoom drop down doesn't update

* app/display/gimpdisplayshell-scale.c
* app/display/gimpdisplayshell-callbacks.c: Fix calls to
gimp_display_shell_scaled() when Resize window on zoom is enabled.


Modified:
   trunk/ChangeLog
   trunk/app/display/gimpdisplayshell-callbacks.c
   trunk/app/display/gimpdisplayshell-scale.c

Modified: trunk/app/display/gimpdisplayshell-callbacks.c
==============================================================================
--- trunk/app/display/gimpdisplayshell-callbacks.c	(original)
+++ trunk/app/display/gimpdisplayshell-callbacks.c	Wed Oct 22 19:02:00 2008
@@ -296,6 +296,7 @@
           offset_y = UNSCALEX (shell, shell->offset_y);
 
           gimp_zoom_model_zoom (shell->zoom, GIMP_ZOOM_TO, scale);
+          gimp_display_shell_scaled (shell);
 
           shell->offset_x = SCALEX (shell, offset_x);
           shell->offset_y = SCALEY (shell, offset_y);
@@ -351,8 +352,6 @@
 
       gimp_display_shell_scroll_clamp_and_update (shell);
 
-      gimp_display_shell_scaled (shell);
-
       /* Reset */
       shell->size_allocate_from_configure_event = FALSE;
     }

Modified: trunk/app/display/gimpdisplayshell-scale.c
==============================================================================
--- trunk/app/display/gimpdisplayshell-scale.c	(original)
+++ trunk/app/display/gimpdisplayshell-scale.c	Wed Oct 22 19:02:00 2008
@@ -368,6 +368,8 @@
            * get things rolling
            */
           gimp_zoom_model_zoom (shell->zoom, GIMP_ZOOM_TO, real_new_scale);
+          gimp_display_shell_scaled (shell);
+
           gimp_display_shell_shrink_wrap (shell, FALSE);
         }
       else



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]