[epiphany] ephy-toolbar: make the margins for the New Tab button RTL friendly



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]