[evince] ev-toolbar: Add missing tooltips to the headerbar. Fixes 595467

commit 63804148708436ec3de45afc048400cf526511f9
Author: Germán Poo-Caamaño <gpoo gnome org>
Date:   Fri Oct 16 20:54:58 2015 -0700

    ev-toolbar: Add missing tooltips to the headerbar. Fixes 595467
    Add tooltips to page and zoom selector widgets.

 shell/ev-toolbar.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/shell/ev-toolbar.c b/shell/ev-toolbar.c
index 6bac02f..b25b04a 100644
--- a/shell/ev-toolbar.c
+++ b/shell/ev-toolbar.c
@@ -207,6 +207,8 @@ ev_toolbar_constructed (GObject *object)
         /* Page selector */
         /* Use EvPageActionWidget for now, since the page selector action is also used by the previewer */
         tool_item = GTK_WIDGET (g_object_new (EV_TYPE_PAGE_ACTION_WIDGET, NULL));
+        gtk_widget_set_tooltip_text (tool_item, _("Select page or search in the index"));
+        atk_object_set_name (gtk_widget_get_accessible (tool_item), _("Select page"));
         ev_toolbar->priv->page_selector = tool_item;
         ev_page_action_widget_set_model (EV_PAGE_ACTION_WIDGET (tool_item),
                                          ev_window_get_document_model (ev_toolbar->priv->window));
@@ -257,6 +259,8 @@ ev_toolbar_constructed (GObject *object)
         vbox = ev_zoom_action_new (ev_window_get_document_model (ev_toolbar->priv->window),
                                    G_MENU (gtk_builder_get_object (builder, "zoom-menu")));
         ev_toolbar->priv->zoom_action = vbox;
+        gtk_widget_set_tooltip_text (vbox, _("Select or set the zoom level of the document"));
+        atk_object_set_name (gtk_widget_get_accessible (vbox), _("Set zoom level"));
         g_signal_connect (vbox, "activated",
                           G_CALLBACK (zoom_selector_activated),

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]