From d27f1853d4aef2a2d04e4b8c80fb2f89dc18b837 Mon Sep 17 00:00:00 2001 From: Xan Lopez Date: Mon, 16 Jan 2012 21:48:43 +0100 Subject: 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(+) (limited to 'src') diff --git a/src/ephy-toolbar.c b/src/ephy-toolbar.c index 2e1b1199e..1ee6af8a8 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 4c3a17a84..71c2f47c0 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, -- cgit v1.2.3