[epiphany] ephy-window: Fix the margin of the toolbar



commit 36bf88b3bc6f3670807f10de2d2cefc781b57992
Author: Yosef Or Boczko <yoseforb gmail com>
Date:   Sat Aug 31 20:41:10 2013 +0300

    ephy-window: Fix the margin of the toolbar
    
    https://bugzilla.gnome.org/show_bug.cgi?id=707091

 src/ephy-window.c |   14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)
---
diff --git a/src/ephy-window.c b/src/ephy-window.c
index fef5b3a..2741ea4 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -3717,9 +3717,17 @@ setup_toolbar (EphyWindow *window)
        frame = gtk_frame_new (NULL);
        toolbar = ephy_toolbar_new (window);
        gtk_widget_set_margin_top (toolbar, 6);
-       gtk_widget_set_margin_bottom (toolbar, 6);
-       gtk_widget_set_margin_left (toolbar, 8);
-       gtk_widget_set_margin_right (toolbar, 8);
+       gtk_widget_set_margin_bottom (toolbar, 5);
+       if (gtk_widget_get_direction (toolbar) == GTK_TEXT_DIR_RTL)
+       {
+               gtk_widget_set_margin_left (toolbar, 8);
+               gtk_widget_set_margin_right (toolbar, 6);
+       }
+       else
+       {
+               gtk_widget_set_margin_left (toolbar, 6);
+               gtk_widget_set_margin_right (toolbar, 8);
+       }
        gtk_container_add (GTK_CONTAINER (frame), toolbar);
        gtk_widget_show (frame);
        gtk_window_set_titlebar (GTK_WINDOW (window), frame);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]