]> Pileus Git - ~andy/gtk/commitdiff
Fixing typo in scrolled window
authorTristan Van Berkom <tristan.van.berkom@gmail.com>
Sat, 30 Oct 2010 14:09:14 +0000 (23:09 +0900)
committerTristan Van Berkom <tristan.van.berkom@gmail.com>
Sat, 30 Oct 2010 14:37:24 +0000 (23:37 +0900)
Seems with GtkScrollable interface we were setting the hadjustment as
the vadjustment, thanks to Cosimo Cecchi who debugged this and finally
found the typo.

gtk/gtkscrolledwindow.c

index 87a388b1733185f4f39e4043fe787968d33ca416..4b00ad2e439adb1ccb48c7dbbde2312b614a6b4a 100644 (file)
@@ -582,7 +582,7 @@ gtk_scrolled_window_set_hadjustment (GtkScrolledWindow *scrolled_window,
 
   child = gtk_bin_get_child (bin);
   if (GTK_IS_SCROLLABLE (child))
-    gtk_scrollable_set_vadjustment (GTK_SCROLLABLE (child), hadjustment);
+    gtk_scrollable_set_hadjustment (GTK_SCROLLABLE (child), hadjustment);
 
   g_object_notify (G_OBJECT (scrolled_window), "hadjustment");
 }