diff options
author | Martin Kretzschmar <martink@src.gnome.org> | 2005-01-26 23:31:43 (GMT) |
---|---|---|
committer | Martin Kretzschmar <martink@src.gnome.org> | 2005-01-26 23:31:43 (GMT) |
commit | b60e6ae1e490c08530322f82af31f34dffb8110f (patch) | |
tree | 367fb7b85d461aaff4fc85fbf3c31d9f58346e9f | |
parent | 5d216445e27ff33e631033ad1efc716b9e408970 (diff) |
(ev_sidebar_thumbnails_select_page): make sure the selected thumbnail
stays visible.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | shell/ev-sidebar-thumbnails.c | 2 |
2 files changed, 8 insertions, 0 deletions
@@ -1,3 +1,9 @@ +2005-01-27 Martin Kretzschmar <martink@gnome.org> + + * shell/ev-sidebar-thumbnails.c + (ev_sidebar_thumbnails_select_page): make sure the selected + thumbnail stays visible. + 2005-01-26 Martin Kretzschmar <martink@gnome.org> * shell/ev-window.c (ev_window_init): add GTK_SHADOW_IN to the diff --git a/shell/ev-sidebar-thumbnails.c b/shell/ev-sidebar-thumbnails.c index 217c862..3d13b5e 100644 --- a/shell/ev-sidebar-thumbnails.c +++ b/shell/ev-sidebar-thumbnails.c @@ -322,6 +322,8 @@ ev_sidebar_thumbnails_select_page (EvSidebarThumbnails *sidebar, if (path) { gtk_tree_selection_select_path (selection, path); + gtk_tree_view_scroll_to_cell (GTK_TREE_VIEW (sidebar->priv->tree_view), + path, NULL, FALSE, 0.0, 0.0); gtk_tree_path_free (path); } } |