From 269282257d9a751bf373b88ced210d43a2a041d2 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 14 Dec 2013 18:30:10 -0500 Subject: GtkHeaderBar: fix flipping of window controls We were not keepign the separators at the inside. --- gtk/gtkheaderbar.c | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'gtk') 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; -- cgit v1.2.1