]> www.fi.muni.cz Git - evince.git/commitdiff
Using scroll_to_path instead of set_cursor in sidebar
authordanigm <danigm@wadobo.com>
Thu, 13 Jan 2011 10:00:42 +0000 (11:00 +0100)
committerCarlos Garcia Campos <carlosgc@gnome.org>
Sun, 30 Jan 2011 11:46:42 +0000 (12:46 +0100)
To prevent the sidebar to get the focus when selected thumbnail changes.
Fixes bug #639408.

shell/ev-sidebar-thumbnails.c

index a860c5e1fcf6390e1826081b7c22ee27c8809dfa..390e14fa61c08e9a347f4816ae2182cadcec676a 100644 (file)
@@ -725,7 +725,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);