[gimp] Bug 610587 - Zooming with zoom tool pans away from the cursor



commit 1f1f20261ee834e83d01e2cc82a0225439d32077
Author: Martin Nordholts <martinn src gnome org>
Date:   Fri Jun 18 20:37:21 2010 +0200

    Bug 610587 - Zooming with zoom tool pans away from the cursor
    
    Connect gimp_display_shell_hscrollbar_update to "notify::" so that the
    notify freeze in gimp_display_shell_scale_update_scrollbars() works.

 app/display/gimpdisplayshell-callbacks.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/display/gimpdisplayshell-callbacks.c b/app/display/gimpdisplayshell-callbacks.c
index 52159c0..a116fb8 100644
--- a/app/display/gimpdisplayshell-callbacks.c
+++ b/app/display/gimpdisplayshell-callbacks.c
@@ -249,10 +249,10 @@ gimp_display_shell_canvas_realize (GtkWidget        *canvas,
   shell->disp_height = allocation.height;
 
   /*  set up the scrollbar observers  */
-  g_signal_connect (shell->hsbdata, "value-changed",
+  g_signal_connect (shell->hsbdata, "notify::value",
                     G_CALLBACK (gimp_display_shell_hscrollbar_update),
                     shell);
-  g_signal_connect (shell->vsbdata, "value-changed",
+  g_signal_connect (shell->vsbdata, "notify::value",
                     G_CALLBACK (gimp_display_shell_vscrollbar_update),
                     shell);
 



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