[gdm/gnome-2-30] When setting the cursor to the top also scroll the window



commit 6ea4afffe76d749a819eea393dd9a10ded8863db
Author: William Jon McCann <jmccann redhat com>
Date:   Mon Jun 14 21:13:31 2010 -0400

    When setting the cursor to the top also scroll the window

 gui/simple-greeter/gdm-chooser-widget.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/gui/simple-greeter/gdm-chooser-widget.c b/gui/simple-greeter/gdm-chooser-widget.c
index 702cd12..7123b80 100644
--- a/gui/simple-greeter/gdm-chooser-widget.c
+++ b/gui/simple-greeter/gdm-chooser-widget.c
@@ -1038,6 +1038,14 @@ move_cursor_to_top (GdmChooserWidget *widget)
                                           path,
                                           NULL,
                                           FALSE);
+
+                gtk_tree_view_scroll_to_cell (GTK_TREE_VIEW (widget->priv->items_view),
+                                              path,
+                                              NULL,
+                                              TRUE,
+                                              0.5,
+                                              0.0);
+
         }
         gtk_tree_path_free (path);
 



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