]> www.fi.muni.cz Git - evince.git/commitdiff
[shell] Use new function ev_document_links_get_dest_page_label()
authorCarlos Garcia Campos <carlosgc@gnome.org>
Sun, 3 Jan 2010 17:12:09 +0000 (18:12 +0100)
committerCarlos Garcia Campos <carlosgc@gnome.org>
Sun, 3 Jan 2010 20:14:12 +0000 (21:14 +0100)
instead of ev_view_page_label_from_dest() that will be removed soon

shell/ev-window.c

index 4e01a2d47451b3ec64330bc20903e34041473f40..d83d43fa8daf7f9d72c315692e6d44d09ae4bbfa 100644 (file)
@@ -803,8 +803,7 @@ ev_window_add_history (EvWindow *window, gint page, EvLink *link)
        if (link) {
                action = g_object_ref (ev_link_get_action (link));
                dest = ev_link_action_get_dest (action);
-               page = ev_link_dest_get_page (dest);
-               page_label = ev_view_page_label_from_dest (EV_VIEW (window->priv->view), dest);
+               page_label = ev_document_links_get_dest_page_label (EV_DOCUMENT_LINKS (window->priv->document), dest);
        } else {
                dest = ev_link_dest_new_page (page);
                action = ev_link_action_new_dest (dest);