]> www.fi.muni.cz Git - evince.git/commitdiff
Use shorter labels for some of the toolbars items
authorMarco Pesenti Gritti <marco@gnome.org>
Fri, 21 Jan 2005 10:22:43 +0000 (10:22 +0000)
committerMarco Pesenti Gritti <marco@src.gnome.org>
Fri, 21 Jan 2005 10:22:43 +0000 (10:22 +0000)
2005-01-21  Marco Pesenti Gritti  <marco@gnome.org>

        * TODO:
        * shell/ev-window.c: (set_short_labels), (ev_window_init):

        Use shorter labels for some of the toolbars items

ChangeLog
TODO
shell/ev-window.c

index ca4c08d2e35ae2e3135d570bc0bbd3318eac0fe5..f05b54f90602ad5b0b6683fdfc2c38d5ae0b0e91 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2005-01-21  Marco Pesenti Gritti  <marco@gnome.org>
+
+       * TODO:
+       * shell/ev-window.c: (set_short_labels), (ev_window_init):
+
+       Use shorter labels for some of the toolbars items
+
 2005-01-21  Marco Pesenti Gritti  <marco@gnome.org>
 
        * pdf/xpdf/pdf-document.cc:
diff --git a/TODO b/TODO
index 62f983f31927d32f0668734798328d5c56053521..606bccb74d7138a7bd7d8dbad5d943a00336ba5f 100644 (file)
--- a/TODO
+++ b/TODO
@@ -1,3 +1,5 @@
+Hook up recent documents support (though rumors are that it's slow)
+
 Improve Find system
        Find Next/Previous don't go to other pages
        Find Next/Previous doesn't focus the results
index ed1e4788c183331f83ac8c32f70b6887bd894280..9862351890a2f4fe6dc756a58e68a9ab0cd564be 100644 (file)
@@ -1544,6 +1544,19 @@ register_custom_actions (EvWindow *window, GtkActionGroup *group)
        g_object_unref (action);
 }
 
+static void
+set_short_labels (GtkActionGroup *action_group)
+{
+       GtkAction *action;
+
+       action = gtk_action_group_get_action (action_group, "GoPageUp");
+       g_object_set (action, "short_label", _("Up"), NULL);
+       action = gtk_action_group_get_action (action_group, "GoPageDown");
+       g_object_set (action, "short_label", _("Down"), NULL);
+       action = gtk_action_group_get_action (action_group, "ViewPageWidth");
+       g_object_set (action, "short_label", _("Fit Width"), NULL);
+}
+
 static void
 ev_window_init (EvWindow *ev_window)
 {
@@ -1571,7 +1584,7 @@ ev_window_init (EvWindow *ev_window)
        gtk_action_group_add_toggle_actions (action_group, toggle_entries,
                                             G_N_ELEMENTS (toggle_entries),
                                             ev_window);
-
+       set_short_labels (action_group);
        register_custom_actions (ev_window, action_group);
 
        ev_window->priv->ui_manager = gtk_ui_manager_new ();