forked from AuroraMiddleware/gtk
GtkHeaderBar: fix flipping of window controls
We were not keepign the separators at the inside.
This commit is contained in:
parent
11d9e5c95c
commit
269282257d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user