[gtk+/treeview-refactor] Make testcellarea handle RTL environment variable for testing



commit 0112c32c5bc26369c6ad500e000a14659c4b0c3e
Author: Kristian Rietveld <kris gtk org>
Date:   Wed Dec 15 21:22:35 2010 +0100

    Make testcellarea handle RTL environment variable for testing

 tests/testcellarea.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/tests/testcellarea.c b/tests/testcellarea.c
index 029f507..ec9398d 100644
--- a/tests/testcellarea.c
+++ b/tests/testcellarea.c
@@ -614,6 +614,9 @@ main (int argc, char *argv[])
 {
   gtk_init (NULL, NULL);
 
+  if (g_getenv ("RTL"))
+    gtk_widget_set_default_direction (GTK_TEXT_DIR_RTL);
+
   simple_cell_area ();
   focus_cell_area ();
   background_area ();



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