X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=shell%2Fev-sidebar-links.c;h=4f677e67fdbfc777d78ab384bb59a06ba5bc00cf;hb=4e908aee85146f7e1a9c6f4286a4539eb923f094;hp=fbf1b73893e0a814c8a100335acbab00925c2835;hpb=13a06349251874bd35d2f03c3fc93217cee749a2;p=evince.git diff --git a/shell/ev-sidebar-links.c b/shell/ev-sidebar-links.c index fbf1b738..4f677e67 100644 --- a/shell/ev-sidebar-links.c +++ b/shell/ev-sidebar-links.c @@ -419,7 +419,7 @@ ev_sidebar_links_construct (EvSidebarLinks *ev_sidebar_links) loading_model = create_loading_model (); priv->tree_view = gtk_tree_view_new_with_model (loading_model); g_object_unref (loading_model); - + selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (priv->tree_view)); gtk_tree_selection_set_mode (selection, GTK_SELECTION_NONE); gtk_tree_view_set_headers_visible (GTK_TREE_VIEW (priv->tree_view), FALSE); @@ -548,12 +548,10 @@ update_page_callback_foreach (GtkTreeModel *model, current_page = ev_page_cache_get_current_page (sidebar_links->priv->page_cache); if (dest_page == current_page) { - GtkTreeSelection *selection; - - selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (sidebar_links->priv->tree_view)); gtk_tree_view_expand_to_path (GTK_TREE_VIEW (sidebar_links->priv->tree_view), path); - gtk_tree_selection_select_path (selection, path); + gtk_tree_view_set_cursor (GTK_TREE_VIEW (sidebar_links->priv->tree_view), + path, NULL, FALSE); return TRUE; }