diff options
author | Xan Lopez <xan@igalia.com> | 2013-02-16 20:34:04 +0800 |
---|---|---|
committer | Xan Lopez <xan@igalia.com> | 2013-02-16 20:34:04 +0800 |
commit | 9a2a47c447c031730110db5a5d1f24c177b371a0 (patch) | |
tree | 7bd628aa27e5e7c9f88e3f8994f693fa40523b56 /src | |
parent | 9f21e02cf7a3cf2b4d68f8b051defed5457327aa (diff) | |
download | gsoc2013-epiphany-9a2a47c447c031730110db5a5d1f24c177b371a0.tar gsoc2013-epiphany-9a2a47c447c031730110db5a5d1f24c177b371a0.tar.gz gsoc2013-epiphany-9a2a47c447c031730110db5a5d1f24c177b371a0.tar.bz2 gsoc2013-epiphany-9a2a47c447c031730110db5a5d1f24c177b371a0.tar.lz gsoc2013-epiphany-9a2a47c447c031730110db5a5d1f24c177b371a0.tar.xz gsoc2013-epiphany-9a2a47c447c031730110db5a5d1f24c177b371a0.tar.zst gsoc2013-epiphany-9a2a47c447c031730110db5a5d1f24c177b371a0.zip |
ephy-toolbar: make the margins for the New Tab button RTL friendly
Diffstat (limited to 'src')
-rw-r--r-- | src/ephy-toolbar.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ephy-toolbar.c b/src/ephy-toolbar.c index 870266efd..21256eafe 100644 --- a/src/ephy-toolbar.c +++ b/src/ephy-toolbar.c @@ -193,7 +193,11 @@ ephy_toolbar_constructed (GObject *object) gtk_container_add (GTK_CONTAINER (tool_item), tool_button); gtk_container_add (GTK_CONTAINER (toolbar), GTK_WIDGET (tool_item)); - gtk_widget_set_margin_right (GTK_WIDGET (tool_item), 4); + if (gtk_widget_get_direction (GTK_WIDGET (tool_item)) == GTK_TEXT_DIR_RTL) + gtk_widget_set_margin_left (GTK_WIDGET (tool_item), 4); + else + gtk_widget_set_margin_right (GTK_WIDGET (tool_item), 4); + gtk_widget_show_all (GTK_WIDGET (tool_item)); |