[gtk+] tests: Don't use show_all() for a builder file



commit eae03be4791b207f0aa57426a5c8054e7d353459
Author: Benjamin Otte <otte redhat com>
Date:   Sat Feb 15 00:41:06 2014 +0100

    tests: Don't use show_all() for a builder file
    
    It's enough to gtk_widget_show() the window as all the widgets in a
    builder file a marked properly for visibility.

 tests/visuals/visuals.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/tests/visuals/visuals.c b/tests/visuals/visuals.c
index b3589d7..5b0bc38 100644
--- a/tests/visuals/visuals.c
+++ b/tests/visuals/visuals.c
@@ -75,7 +75,7 @@ main (int argc, char *argv[])
   g_object_unref (G_OBJECT (builder));
   g_signal_connect (window, "destroy",
                     G_CALLBACK (gtk_main_quit), NULL);
-  gtk_widget_show_all (window);
+  gtk_widget_show (window);
 
   create_dark_popup (window);
   gtk_main ();


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