[gtk+] GtkHeaderBar: fix flipping of window controls
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] GtkHeaderBar: fix flipping of window controls
- Date: Sat, 14 Dec 2013 23:31:36 +0000 (UTC)
commit 269282257d9a751bf373b88ced210d43a2a041d2
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Dec 14 18:30:10 2013 -0500
GtkHeaderBar: fix flipping of window controls
We were not keepign the separators at the inside.
gtk/gtkheaderbar.c | 15 ++++++---------
1 files changed, 6 insertions(+), 9 deletions(-)
---
diff --git a/gtk/gtkheaderbar.c b/gtk/gtkheaderbar.c
index 9964f12..7905509 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]