diff options
author | Marco Pesenti Gritti <marco@gnome.org> | 2005-01-21 10:22:43 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@src.gnome.org> | 2005-01-21 10:22:43 (GMT) |
commit | 2b10156c3ba8b580e927245b5c55a83e0889fd79 (patch) | |
tree | 4228b62415bcc696551d8b5d01a8968ef47d87e8 /shell | |
parent | a0ed55c37314448eaa19c4c11198e32ddb899bbc (diff) |
Use shorter labels for some of the toolbars items
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
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ev-window.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/shell/ev-window.c b/shell/ev-window.c index ed1e478..9862351 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -1545,6 +1545,19 @@ register_custom_actions (EvWindow *window, GtkActionGroup *group) } 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) { GtkActionGroup *action_group; @@ -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 (); |