diff options
author | Marco Pesenti Gritti <marco@src.gnome.org> | 2005-01-10 19:08:15 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@src.gnome.org> | 2005-01-10 19:08:15 (GMT) |
commit | 2d5fe16a0b4a8bbb85933e471a62550384446821 (patch) | |
tree | 8cf9cc024c35796da1b6d75b6d1d1f9312f9ed3d /shell/ev-view.c | |
parent | d906aff9da8222c4377c558cbb079be0dc26613f (diff) |
Rename bookmark to link, and use "Index" for the sidebar panel.
Diffstat (limited to 'shell/ev-view.c')
-rw-r--r-- | shell/ev-view.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/shell/ev-view.c b/shell/ev-view.c index 678770b..2b04c87 100644 --- a/shell/ev-view.c +++ b/shell/ev-view.c @@ -930,35 +930,35 @@ set_document_page (EvView *view, int page) } static void -go_to_bookmark (EvView *view, EvBookmark *bookmark) +go_to_link (EvView *view, EvLink *link) { - EvBookmarkType type; + EvLinkType type; int page; - type = ev_bookmark_get_bookmark_type (bookmark); + type = ev_link_get_link_type (link); - if (type == EV_BOOKMARK_TYPE_LINK) { - page = ev_bookmark_get_page (bookmark); + if (type == EV_LINK_TYPE_PAGE) { + page = ev_link_get_page (link); set_document_page (view, page); } } void -ev_view_go_to_bookmark (EvView *view, EvBookmark *bookmark) +ev_view_go_to_link (EvView *view, EvLink *link) { - go_to_bookmark (view, bookmark); - ev_history_add_link (view->history, bookmark); + go_to_link (view, link); + ev_history_add_link (view->history, link); } static void go_to_index (EvView *view, int index) { - EvBookmark *bookmark; + EvLink *link; - bookmark = ev_history_get_link_nth (view->history, index); - g_return_if_fail (bookmark != NULL); + link = ev_history_get_link_nth (view->history, index); + g_return_if_fail (link != NULL); - go_to_bookmark (view, bookmark); + go_to_link (view, link); } void |