From f00567758aaf39b2003f26b81fff6de6b213f23e Mon Sep 17 00:00:00 2001 From: Nickolay V. Shmyrev Date: Sun, 19 Nov 2006 01:42:57 +0000 Subject: Use page labels instead of numbers. 2006-11-19 Nickolay V. Shmyrev * shell/ev-history.c: (ev_history_add_page): * shell/ev-history.h: * shell/ev-window.c: (page_changed_cb): Use page labels instead of numbers. --- (limited to 'shell/ev-history.c') diff --git a/shell/ev-history.c b/shell/ev-history.c index 2029d3c..c316c84 100644 --- a/shell/ev-history.c +++ b/shell/ev-history.c @@ -164,7 +164,7 @@ ev_history_add_link (EvHistory *history, EvLink *link) } void -ev_history_add_page (EvHistory *history, int page) +ev_history_add_page (EvHistory *history, int page, const gchar *label) { EvLink *link; EvLinkDest *dest; @@ -172,7 +172,8 @@ ev_history_add_page (EvHistory *history, int page) gchar *title; g_return_if_fail (EV_IS_HISTORY (history)); - title = g_strdup_printf (_("Page: %d"), page); + + title = g_strdup_printf (_("Page: %s"), label); dest = ev_link_dest_new_page (page); action = ev_link_action_new_dest (dest); -- cgit v0.9.1