diff options
author | Yosef Or Boczko <yoseforb@gmail.com> | 2013-09-01 01:41:10 +0800 |
---|---|---|
committer | Yosef Or Boczko <yoseforb@gmail.com> | 2013-09-01 01:41:10 +0800 |
commit | 36bf88b3bc6f3670807f10de2d2cefc781b57992 (patch) | |
tree | ff08e65b2414436beb0e5cb6761892fd6b17e688 /src/ephy-window.c | |
parent | c22bf5b758a617ece45985b98e33de6dbbdac6d6 (diff) | |
download | gsoc2013-epiphany-36bf88b3bc6f3670807f10de2d2cefc781b57992.tar gsoc2013-epiphany-36bf88b3bc6f3670807f10de2d2cefc781b57992.tar.gz gsoc2013-epiphany-36bf88b3bc6f3670807f10de2d2cefc781b57992.tar.bz2 gsoc2013-epiphany-36bf88b3bc6f3670807f10de2d2cefc781b57992.tar.lz gsoc2013-epiphany-36bf88b3bc6f3670807f10de2d2cefc781b57992.tar.xz gsoc2013-epiphany-36bf88b3bc6f3670807f10de2d2cefc781b57992.tar.zst gsoc2013-epiphany-36bf88b3bc6f3670807f10de2d2cefc781b57992.zip |
ephy-window: Fix the margin of the toolbar
https://bugzilla.gnome.org/show_bug.cgi?id=707091
Diffstat (limited to 'src/ephy-window.c')
-rw-r--r-- | 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 fef5b3a46..2741ea42b 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); |