]> www.fi.muni.cz Git - evince.git/blobdiff - shell/ev-page-action.c
Fix for the bug #325067 with more intelligent selection of current link in
[evince.git] / shell / ev-page-action.c
index a316f35f7b33b049c67aeacef5f2bae0c30c9a1e..fc81cb709932f516a2f4d0fd82a4f2559da18653 100644 (file)
@@ -185,7 +185,7 @@ page_changed_cb (EvPageCache        *page_cache,
 
                gtk_entry_set_width_chars (GTK_ENTRY (proxy->entry), 
                                           CLAMP (ev_page_cache_get_max_label_chars (page_cache), 
-                                          4, 12));     
+                                          6, 12));     
                
                page_label = ev_page_cache_get_page_label (page_cache, page);
                gtk_entry_set_text (GTK_ENTRY (proxy->entry), page_label);
@@ -298,7 +298,7 @@ build_new_tree_cb (GtkTreeModel *model,
                            EV_DOCUMENT_LINKS_COLUMN_LINK, &link,
                            -1);
 
-       if (link && ev_link_get_link_type (link) == EV_LINK_TYPE_PAGE) {
+       if (link && ev_link_get_page (link) >= 0) {
                GtkTreeIter filter_iter;
 
                gtk_list_store_append (GTK_LIST_STORE (filter_model), &filter_iter);