summaryrefslogtreecommitdiff
path: root/tests/testexpand.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2011-03-30 02:25:12 -0400
committerMatthias Clasen <mclasen@redhat.com>2011-03-30 10:34:02 -0400
commitb2f872112a2a8d8dd915650718c70889ef0d0c8b (patch)
tree3e5d815e8b0a33d3910062c014f40d9e3bc5280f /tests/testexpand.c
parent9334f177904173eb542c135997bea327df1c2485 (diff)
downloadgtk+-b2f872112a2a8d8dd915650718c70889ef0d0c8b.tar.gz
Make GtkWidget::halign RTL-save
This commit makes GTK_ALIGN_START/_END pay attention to the text direction when used in horizontal context. This is how similar parameters in GtkMisc and GtkAlignment work, and is generally expected of GTK+ positioning parameters. And this is new GTK+ 3 api, so it is basically still unused at this point. If explicit right/left turn out to be needed at some point, we can expand the enumeration with new values.
Diffstat (limited to 'tests/testexpand.c')
-rw-r--r--tests/testexpand.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/testexpand.c b/tests/testexpand.c
index 801b60e7ce..6f34fb71e0 100644
--- a/tests/testexpand.c
+++ b/tests/testexpand.c
@@ -200,6 +200,9 @@ main (int argc, char *argv[])
{
gtk_init (&argc, &argv);
+ if (g_getenv ("RTL"))
+ gtk_widget_set_default_direction (GTK_TEXT_DIR_RTL);
+
create_box_window ();
create_table_window ();