[gtk+/gtk-3-20] expander: Reverse alignments in RTL
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-20] expander: Reverse alignments in RTL
- Date: Thu, 5 May 2016 19:22:39 +0000 (UTC)
commit 587308004c53439c9c6d770b8ef0bd45a94ca429
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Apr 28 21:30:01 2016 -0400
expander: Reverse alignments in RTL
Flip alignments of the title gadget children.
gtk/gtkexpander.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkexpander.c b/gtk/gtkexpander.c
index 3f32da4..1406363 100644
--- a/gtk/gtkexpander.c
+++ b/gtk/gtkexpander.c
@@ -789,6 +789,8 @@ gtk_expander_direction_changed (GtkWidget *widget,
gtk_box_gadget_set_allocate_reverse (GTK_BOX_GADGET (priv->title_gadget),
gtk_widget_get_direction (widget) == GTK_TEXT_DIR_RTL);
+ gtk_box_gadget_set_align_reverse (GTK_BOX_GADGET (priv->title_gadget),
+ gtk_widget_get_direction (widget) == GTK_TEXT_DIR_RTL);
GTK_WIDGET_CLASS (gtk_expander_parent_class)->direction_changed (widget, previous_direction);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]