[epiphany] Back/Forward actions do need to have a label set



commit d27f1853d4aef2a2d04e4b8c80fb2f89dc18b837
Author: Xan Lopez <xan igalia com>
Date:   Mon Jan 16 21:48:43 2012 +0100

    Back/Forward actions do need to have a label set
    
    Since they are used in context menus too. Re-add those and force the
    toolbar buttons to be image-only.

 src/ephy-toolbar.c |    2 ++
 src/ephy-window.c  |    2 ++
 2 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/ephy-toolbar.c b/src/ephy-toolbar.c
index 2e1b119..1ee6af8 100644
--- a/src/ephy-toolbar.c
+++ b/src/ephy-toolbar.c
@@ -100,6 +100,7 @@ ephy_toolbar_constructed (GObject *object)
   action = gtk_action_group_get_action (action_group, "NavigationBack");
   gtk_activatable_set_related_action (GTK_ACTIVATABLE (tool_button),
                                       action);
+  gtk_button_set_label (GTK_BUTTON (tool_button), NULL);
   gtk_container_add (GTK_CONTAINER (box), GTK_WIDGET (tool_button));
 
   /* Forward */
@@ -110,6 +111,7 @@ ephy_toolbar_constructed (GObject *object)
   action = gtk_action_group_get_action (action_group, "NavigationForward");
   gtk_activatable_set_related_action (GTK_ACTIVATABLE (tool_button),
                                       action);
+  gtk_button_set_label (GTK_BUTTON (tool_button), NULL);
   gtk_container_add (GTK_CONTAINER (box), GTK_WIDGET (tool_button));
 
   gtk_style_context_add_class (gtk_widget_get_style_context (box),
diff --git a/src/ephy-window.c b/src/ephy-window.c
index 4c3a17a..71c2f47 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -1484,6 +1484,7 @@ setup_ui_manager (EphyWindow *window)
 	action =
 		g_object_new (EPHY_TYPE_NAVIGATION_HISTORY_ACTION,
 			      "name", "NavigationBack",
+			      "label", _("Back"),
 			      "icon-name", "go-previous-symbolic",
 			      "tooltip", _("Go to the previous visited page"),
 			      "window", window,
@@ -1496,6 +1497,7 @@ setup_ui_manager (EphyWindow *window)
 	action =
 		g_object_new (EPHY_TYPE_NAVIGATION_HISTORY_ACTION,
 			      "name", "NavigationForward",
+			      "label", _("Forward"),
 			      "icon-name", "go-next-symbolic",
 			      "tooltip", _("Go to the next visited page"),
 			      "window", window,



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