diff options
author | Nickolay V. Shmyrev <nshmyrev@src.gnome.org> | 2005-04-28 00:23:39 (GMT) |
---|---|---|
committer | Nickolay V. Shmyrev <nshmyrev@src.gnome.org> | 2005-04-28 00:23:39 (GMT) |
commit | 0616c7d07421dc271f0a1b9a10de9e7c7d44582d (patch) | |
tree | 1e73feedb6c30572e7e357fb4645acc748287f3a /shell | |
parent | a154e22c19e8c654971c4fc06ddf106c30f47f87 (diff) |
Fix for 173185. Number of pages is simply "of ..." when there is no
page labels
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ev-page-action.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/shell/ev-page-action.c b/shell/ev-page-action.c index e378d30..78e2570 100644 --- a/shell/ev-page-action.c +++ b/shell/ev-page-action.c @@ -103,7 +103,11 @@ update_pages_label (EvPageActionWidget *proxy, gint n_pages; n_pages = page_cache ? ev_page_cache_get_n_pages (page_cache) : 0; - label_text = g_strdup_printf (_("(%d of %d)"), page + 1, n_pages); + if (ev_page_cache_has_nonnumeric_page_labels (page_cache)) { + label_text = g_strdup_printf (_("(%d of %d)"), page + 1, n_pages); + } else { + label_text = g_strdup_printf (_("of %d"), n_pages); + } gtk_label_set_text (GTK_LABEL (proxy->label), label_text); g_free (label_text); } |