Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/ev-history.c
diff options
context:
space:
mode:
authorMarco 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)
commit2d5fe16a0b4a8bbb85933e471a62550384446821 (patch)
tree8cf9cc024c35796da1b6d75b6d1d1f9312f9ed3d /shell/ev-history.c
parentd906aff9da8222c4377c558cbb079be0dc26613f (diff)
Rename bookmark to link, and use "Index" for the sidebar panel.
Diffstat (limited to 'shell/ev-history.c')
-rw-r--r--shell/ev-history.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/shell/ev-history.c b/shell/ev-history.c
index 47fa300..267b41b 100644
--- a/shell/ev-history.c
+++ b/shell/ev-history.c
@@ -77,16 +77,16 @@ ev_history_class_init (EvHistoryClass *class)
}
void
-ev_history_add_link (EvHistory *history, EvBookmark *bookmark)
+ev_history_add_link (EvHistory *history, EvLink *link)
{
int length;
g_return_if_fail (EV_IS_HISTORY (history));
- g_return_if_fail (EV_IS_BOOKMARK (bookmark));
+ g_return_if_fail (EV_IS_LINK (link));
- g_object_ref (bookmark);
+ g_object_ref (link);
history->priv->links = g_list_append (history->priv->links,
- bookmark);
+ link);
length = g_list_length (history->priv->links);
history->priv->current_index = length - 1;
@@ -97,19 +97,19 @@ ev_history_add_link (EvHistory *history, EvBookmark *bookmark)
void
ev_history_add_page (EvHistory *history, int page)
{
- EvBookmark *bookmark;
+ EvLink *link;
char *title;
g_return_if_fail (EV_IS_HISTORY (history));
title = g_strdup_printf (_("Page %d\n"), page);
- bookmark = ev_bookmark_new_link (title, page);
+ link = ev_link_new_page (title, page);
g_free (title);
- ev_history_add_link (history, bookmark);
+ ev_history_add_link (history, link);
}
-EvBookmark *
+EvLink *
ev_history_get_link_nth (EvHistory *history, int index)
{
GList *l;
@@ -118,7 +118,7 @@ ev_history_get_link_nth (EvHistory *history, int index)
l = g_list_nth (history->priv->links, index);
- return EV_BOOKMARK (l->data);
+ return EV_LINK (l->data);
}
int