diff options
Diffstat (limited to 'shell/ev-page-action.c')
-rw-r--r-- | shell/ev-page-action.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/shell/ev-page-action.c b/shell/ev-page-action.c index 7975c8a..99f1d6a 100644 --- a/shell/ev-page-action.c +++ b/shell/ev-page-action.c @@ -181,12 +181,13 @@ page_changed_cb (EvPageCache *page_cache, g_assert (proxy); if (page_cache != NULL && page >= 0) { - + gchar *page_label; + gtk_entry_set_width_chars (GTK_ENTRY (proxy->entry), CLAMP (ev_page_cache_get_max_label_chars (page_cache), 4, 12)); - gchar *page_label = ev_page_cache_get_page_label (page_cache, page); + page_label = ev_page_cache_get_page_label (page_cache, page); gtk_entry_set_text (GTK_ENTRY (proxy->entry), page_label); gtk_editable_set_position (GTK_EDITABLE (proxy->entry), -1); g_free (page_label); |