[evince] [shell] Use new function ev_document_links_get_dest_page_label()
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [evince] [shell] Use new function ev_document_links_get_dest_page_label()
- Date: Sun, 3 Jan 2010 20:19:01 +0000 (UTC)
commit 7f15b7560b77f79c2f171d202cf46b7acb42adf3
Author: Carlos Garcia Campos <carlosgc gnome org>
Date: Sun Jan 3 18:12:09 2010 +0100
[shell] Use new function ev_document_links_get_dest_page_label()
instead of ev_view_page_label_from_dest() that will be removed soon
shell/ev-window.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/shell/ev-window.c b/shell/ev-window.c
index 4e01a2d..d83d43f 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]