[gtk+/treeview-refactor-staging: 14/14] Added g_getenv("RTL") to test rtl layouting.
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/treeview-refactor-staging: 14/14] Added g_getenv("RTL") to test rtl layouting.
- Date: Sun, 5 Dec 2010 06:21:40 +0000 (UTC)
commit 7ac5de756800c647f1f4d3d5d006dc068d19bed7
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date: Sun Dec 5 15:20:19 2010 +0900
Added g_getenv("RTL") to test rtl layouting.
tests/testverticalcells.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/tests/testverticalcells.c b/tests/testverticalcells.c
index 81a586a..627db45 100644
--- a/tests/testverticalcells.c
+++ b/tests/testverticalcells.c
@@ -302,6 +302,9 @@ main (gint argc, gchar **argv)
gtk_init (&argc, &argv);
+ if (g_getenv ("RTL"))
+ gtk_widget_set_default_direction (GTK_TEXT_DIR_RTL);
+
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
gtk_window_set_title (GTK_WINDOW (window), "Vertical cells in GtkTreeViewColumn example");
g_signal_connect (window, "destroy", gtk_main_quit, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]