[gtk+/gtk-3-20] check button: Reverse alignments in RTL



commit 2ebad7ec2b07d82b89f73c0e34bd8725316d39e2
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Apr 28 21:29:32 2016 -0400

    check button: Reverse alignments in RTL
    
    Flip alignments for the box gadget children.

 gtk/gtkcheckbutton.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkcheckbutton.c b/gtk/gtkcheckbutton.c
index 06890d0..d40e129 100644
--- a/gtk/gtkcheckbutton.c
+++ b/gtk/gtkcheckbutton.c
@@ -156,6 +156,8 @@ gtk_check_button_direction_changed (GtkWidget        *widget,
   gtk_box_gadget_reverse_children (GTK_BOX_GADGET (priv->gadget));
   gtk_box_gadget_set_allocate_reverse (GTK_BOX_GADGET (priv->gadget),
                                        gtk_widget_get_direction (widget) == GTK_TEXT_DIR_RTL);
+  gtk_box_gadget_set_align_reverse (GTK_BOX_GADGET (priv->gadget),
+                                    gtk_widget_get_direction (widget) == GTK_TEXT_DIR_RTL);
 
   GTK_WIDGET_CLASS (gtk_check_button_parent_class)->direction_changed (widget, previous_direction);
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]