[gtk+/overlay: 30/34] Test RTL flipping for GtkOverlay
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/overlay: 30/34] Test RTL flipping for GtkOverlay
- Date: Sat, 11 Jun 2011 01:01:10 +0000 (UTC)
commit 65b00976d73b7710937687381a620f13037b58f9
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Jun 10 20:26:35 2011 -0400
Test RTL flipping for GtkOverlay
tests/testoverlay.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/tests/testoverlay.c b/tests/testoverlay.c
index a641b8c..ed63c5f 100644
--- a/tests/testoverlay.c
+++ b/tests/testoverlay.c
@@ -72,13 +72,13 @@ test_relative (void)
gtk_grid_attach (GTK_GRID (grid), text, 1, 1, 1, 1);
gtk_overlay_set_relative_widget (GTK_OVERLAY (overlay), text);
- child = gtk_label_new ("I'm the overlay");
+ child = gtk_label_new ("Top left overlay");
gtk_widget_set_halign (child, GTK_ALIGN_START);
gtk_widget_set_valign (child, GTK_ALIGN_START);
gtk_overlay_add (GTK_OVERLAY (overlay), child);
gtk_overlay_set_offset (GTK_OVERLAY (overlay), child, 1, 1);
- child = gtk_label_new ("Me too");
+ child = gtk_label_new ("Bottom right overlay");
gtk_widget_set_halign (child, GTK_ALIGN_END);
gtk_widget_set_valign (child, GTK_ALIGN_END);
gtk_overlay_add (GTK_OVERLAY (overlay), child);
@@ -95,6 +95,9 @@ main (int argc, char *argv[])
gtk_init (&argc, &argv);
+ if (g_getenv ("RTL"))
+ gtk_widget_set_default_direction (GTK_TEXT_DIR_RTL);
+
win1 = test_nonzerox ();
gtk_widget_show_all (win1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]