aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ephy-window.c')
-rw-r--r--src/ephy-window.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/ephy-window.c b/src/ephy-window.c
index 0649701ac..37bc34b2d 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -1297,6 +1297,7 @@ setup_ui_manager (EphyWindow *window)
GtkActionGroup *action_group;
GtkAction *action;
GtkUIManager *manager;
+ const char *prev_icon, *next_icon;
window->priv->main_vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
gtk_widget_show (window->priv->main_vbox);
@@ -1356,12 +1357,20 @@ setup_ui_manager (EphyWindow *window)
window->priv->tab_accels_action_group = action_group;
g_object_unref (action_group);
+ if (gtk_widget_get_direction (GTK_WIDGET (window)) == GTK_TEXT_DIR_RTL) {
+ prev_icon = "go-previous-rtl-symbolic";
+ next_icon = "go-next-rtl-symbolic";
+ } else {
+ prev_icon = "go-previous-symbolic";
+ next_icon = "go-next-symbolic";
+ }
+
action_group = gtk_action_group_new ("SpecialToolbarActions");
action =
g_object_new (EPHY_TYPE_NAVIGATION_HISTORY_ACTION,
"name", "NavigationBack",
"label", _("Back"),
- "icon-name", "go-previous-symbolic",
+ "icon-name", prev_icon,
"window", window,
"direction", EPHY_NAVIGATION_HISTORY_DIRECTION_BACK,
NULL);
@@ -1373,7 +1382,7 @@ setup_ui_manager (EphyWindow *window)
g_object_new (EPHY_TYPE_NAVIGATION_HISTORY_ACTION,
"name", "NavigationForward",
"label", _("Forward"),
- "icon-name", "go-next-symbolic",
+ "icon-name", next_icon,
"window", window,
"direction", EPHY_NAVIGATION_HISTORY_DIRECTION_FORWARD,
NULL);