[gtk+] expander: Reverse alignments in RTL
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] expander: Reverse alignments in RTL
- Date: Fri, 29 Apr 2016 02:00:36 +0000 (UTC)
commit 8a308dd072ae07b98b33dd68de43975f884cf1bb
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]