[gtk+] GtkFontChooser: Fix scroll callback connected to treeview instead of preview



commit 55d50b3cca2f9d2dcb85788645fd2eb55ee774c5
Author: Alberto Ruiz <aruiz gnome org>
Date:   Thu Jul 14 00:11:08 2011 +0100

    GtkFontChooser: Fix scroll callback connected to treeview instead of preview

 gtk/gtkfontchooser.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkfontchooser.c b/gtk/gtkfontchooser.c
index 13ef6bf..4291d2f 100644
--- a/gtk/gtkfontchooser.c
+++ b/gtk/gtkfontchooser.c
@@ -623,8 +623,8 @@ gtk_font_chooser_init (GtkFontChooser *fontchooser)
                     G_CALLBACK (cursor_changed_cb),    fontchooser);
 
   /* Zoom on preview scroll*/
-  g_signal_connect (G_OBJECT (scrolled_win),      "scroll-event",
-                    G_CALLBACK (zoom_preview_cb), priv);
+  g_signal_connect (G_OBJECT (priv->preview), "scroll-event",
+                    G_CALLBACK (zoom_preview_cb),  priv);
 
   g_signal_connect (G_OBJECT (priv->size_slider), "scroll-event",
                     G_CALLBACK (zoom_preview_cb), priv);



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