]> www.fi.muni.cz Git - evince.git/blobdiff - shell/ev-window.c
update
[evince.git] / shell / ev-window.c
index ed1e4788c183331f83ac8c32f70b6887bd894280..d46d98d98de386107eea5d865576a730a0e887b6 100644 (file)
@@ -335,7 +335,7 @@ update_window_title (EvDocument *document, GParamSpec *pspec, EvWindow *ev_windo
        } else {
                title = ev_document_get_title (document);
 
-               if (title == NULL) {
+               if (title == NULL || (title && strlen (title) == 0)) {
                        title = g_path_get_basename (ev_window->priv->uri);
                }
        }
@@ -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 ();