summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2013-12-14 18:30:10 -0500
committerMatthias Clasen <mclasen@redhat.com>2013-12-14 18:30:10 -0500
commit269282257d9a751bf373b88ced210d43a2a041d2 (patch)
treee15855aae4950f4a6e80153e87b7f3d9bdcfcaea /gtk
parent11d9e5c95c0a4ce9c5a44c61fb2570cec1ee9436 (diff)
downloadgtk+-269282257d9a751bf373b88ced210d43a2a041d2.tar.gz
GtkHeaderBar: fix flipping of window controls
We were not keepign the separators at the inside.
Diffstat (limited to 'gtk')
-rw-r--r--gtk/gtkheaderbar.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/gtk/gtkheaderbar.c b/gtk/gtkheaderbar.c
index 9964f12a7e..7905509748 100644
--- a/gtk/gtkheaderbar.c
+++ b/gtk/gtkheaderbar.c
@@ -462,18 +462,15 @@ _gtk_header_bar_update_window_buttons (GtkHeaderBar *bar)
gtk_widget_show (box);
gtk_widget_set_parent (box, GTK_WIDGET (bar));
+ gtk_box_pack_start (GTK_BOX (box), separator, FALSE, FALSE, 0);
+ if (i ==1)
+ gtk_box_reorder_child (GTK_BOX (box), separator, 0);
+
if ((direction == GTK_TEXT_DIR_LTR && i == 0) ||
(direction == GTK_TEXT_DIR_RTL && i == 1))
- {
- gtk_style_context_add_class (gtk_widget_get_style_context (box), "left");
- gtk_box_pack_end (GTK_BOX (box), separator, FALSE, FALSE, 0);
- }
+ gtk_style_context_add_class (gtk_widget_get_style_context (box), "left");
else
- {
- gtk_style_context_add_class (gtk_widget_get_style_context (box), "right");
- gtk_box_pack_start (GTK_BOX (box), separator, FALSE, FALSE, 0);
- gtk_box_reorder_child (GTK_BOX (box), separator, 0);
- }
+ gtk_style_context_add_class (gtk_widget_get_style_context (box), "right");
if (i == 0)
priv->titlebar_start_box = box;