[epiphany] ephy-toolbar: make the margins for the New Tab button RTL friendly
- From: Xan Lopez <xan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] ephy-toolbar: make the margins for the New Tab button RTL friendly
- Date: Sat, 16 Feb 2013 12:34:28 +0000 (UTC)
commit 9a2a47c447c031730110db5a5d1f24c177b371a0
Author: Xan Lopez <xan igalia com>
Date: Sat Feb 16 13:34:04 2013 +0100
ephy-toolbar: make the margins for the New Tab button RTL friendly
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 870266e..21256ea 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));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]