From: Carlos Garcia Campos Date: Sun, 3 Jan 2010 17:12:09 +0000 (+0100) Subject: [shell] Use new function ev_document_links_get_dest_page_label() X-Git-Tag: EVINCE_2_29_5~26 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=7f15b7560b77f79c2f171d202cf46b7acb42adf3;p=evince.git [shell] Use new function ev_document_links_get_dest_page_label() instead of ev_view_page_label_from_dest() that will be removed soon --- diff --git a/shell/ev-window.c b/shell/ev-window.c index 4e01a2d4..d83d43fa 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -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);