[gnome-software] Make scroll-to-top actually work



commit 2932ead5ddf298901d8250b164fa9531b3d1db18
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Aug 30 00:17:04 2013 -0400

    Make scroll-to-top actually work
    
    The vadjustment is controlling this, not the hadjustment.

 src/gs-shell-installed.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gs-shell-installed.c b/src/gs-shell-installed.c
index 4e02615..c4a4621 100644
--- a/src/gs-shell-installed.c
+++ b/src/gs-shell-installed.c
@@ -357,7 +357,7 @@ gs_shell_installed_refresh (GsShellInstalled *shell_installed)
         resort_list (shell_installed);
 
         /* scroll to top */
-        adj = gtk_scrolled_window_get_hadjustment (GTK_SCROLLED_WINDOW (gtk_builder_get_object 
(priv->builder, "scrolledwindow_install")));
+        adj = gtk_scrolled_window_get_vadjustment (GTK_SCROLLED_WINDOW (gtk_builder_get_object 
(priv->builder, "scrolledwindow_install")));
         gtk_adjustment_set_value (adj, gtk_adjustment_get_lower (adj));
 
        /* no need to refresh */


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