[gtk+/wip/matthiasc/tab-strip] test: Make new tabs visible



commit 123f39eb558ee97a6223d2093bdb18ae6434ea49
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue May 31 08:47:21 2016 -0400

    test: Make new tabs visible
    
    This is typical case in web browsers or editors.

 tests/testtabstrip.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/tests/testtabstrip.c b/tests/testtabstrip.c
index fdc756a..1cbd9dd 100644
--- a/tests/testtabstrip.c
+++ b/tests/testtabstrip.c
@@ -19,6 +19,7 @@ add_child (GtkWidget  *stack,
   gtk_widget_show_all (sw);
 
   gtk_stack_add_titled (GTK_STACK (stack), sw, name, title);
+  gtk_stack_set_visible_child (GTK_STACK (stack), sw);
 
   g_free (name);
 }


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