diff options
author | infirit <[email protected]> | 2014-12-10 01:25:42 +0100 |
---|---|---|
committer | infirit <[email protected]> | 2014-12-10 01:25:42 +0100 |
commit | cfb8266907bd3e41c8375934ec1440f020dd52d5 (patch) | |
tree | 53a79f6ff1f5ba72e99ed3daf3ae182f6303df25 /shell | |
parent | 1557d3b66a33eb1d4ac84c9a3b9f707874aad883 (diff) | |
download | atril-cfb8266907bd3e41c8375934ec1440f020dd52d5.tar.bz2 atril-cfb8266907bd3e41c8375934ec1440f020dd52d5.tar.xz |
Using scroll_to_path instead of set_cursor in sidebar
To prevent the sidebar to get the focus when selected thumbnail changes.
Taken from evince commit: cb55d59b7122e8d06f75c5318910b1b8113d3aac
From: danigm <[email protected]>
Gnome bug: https://bugzilla.gnome.org/show_bug.cgi?id=639408
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ev-sidebar-thumbnails.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/ev-sidebar-thumbnails.c b/shell/ev-sidebar-thumbnails.c index b677d032..df02bb5c 100644 --- a/shell/ev-sidebar-thumbnails.c +++ b/shell/ev-sidebar-thumbnails.c @@ -794,7 +794,7 @@ ev_sidebar_thumbnails_set_current_page (EvSidebarThumbnails *sidebar, (sidebar->priv->icon_view, G_CALLBACK (ev_sidebar_icon_selection_changed), sidebar); - gtk_icon_view_set_cursor (GTK_ICON_VIEW (sidebar->priv->icon_view), path, NULL, FALSE); + gtk_icon_view_scroll_to_path (GTK_ICON_VIEW (sidebar->priv->icon_view), path, FALSE, 0.0, 0.0); } gtk_tree_path_free (path); |