[evince] Add tooltips for toolbar menus, bug 700697



commit ca70f8a2cd4aa850214c9a8dfec5f05cfb1586b7
Author: Ekaterina Gerasimova <kittykat3756 gmail com>
Date:   Tue May 21 19:36:14 2013 +0100

    Add tooltips for toolbar menus, bug 700697

 po/POTFILES.in     |    1 +
 shell/ev-toolbar.c |    4 ++++
 2 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/po/POTFILES.in b/po/POTFILES.in
index e02c4f1..4190ab8 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -51,6 +51,7 @@ shell/ev-sidebar-bookmarks.c
 shell/ev-sidebar-layers.c
 shell/ev-sidebar-links.c
 shell/ev-sidebar-thumbnails.c
+shell/ev-toolbar.c
 shell/ev-utils.c
 shell/ev-window.c
 shell/ev-window-title.c
diff --git a/shell/ev-toolbar.c b/shell/ev-toolbar.c
index b470078..ef39270 100644
--- a/shell/ev-toolbar.c
+++ b/shell/ev-toolbar.c
@@ -22,6 +22,8 @@
 #include "config.h"
 #endif
 
+#include <glib/gi18n.h>
+
 #include "ev-toolbar.h"
 
 #include "ev-stock-icons.h"
@@ -215,6 +217,7 @@ ev_toolbar_constructed (GObject *object)
         menu = gtk_ui_manager_get_widget (ui_manager, "/ViewMenuPopup");
         button = ev_toolbar_create_menu_button (ev_toolbar, "document-properties-symbolic",
                                                 menu, GTK_ALIGN_END);
+        gtk_widget_set_tooltip_text (button, _("View options"));
         ev_toolbar->priv->view_menu_button = button;
         tool_item = GTK_WIDGET (gtk_tool_item_new ());
         gtk_container_add (GTK_CONTAINER (tool_item), button);
@@ -228,6 +231,7 @@ ev_toolbar_constructed (GObject *object)
         menu = gtk_ui_manager_get_widget (ui_manager, "/ActionMenu");
         button = ev_toolbar_create_menu_button (ev_toolbar, "emblem-system-symbolic",
                                                 menu, GTK_ALIGN_END);
+        gtk_widget_set_tooltip_text (button, _("File options"));
         ev_toolbar->priv->action_menu_button = button;
         tool_item = GTK_WIDGET (gtk_tool_item_new ());
         gtk_container_add (GTK_CONTAINER (tool_item), button);


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