[gnome-control-center] examples: make sure the label is shown when the panel is created



commit 0bab4d746a71b7f300735df19f562f7b151c8d70
Author: Thomas Wood <thomas wood intel com>
Date:   Mon Jun 7 17:58:58 2010 +0100

    examples: make sure the label is shown when the panel is created

 examples/cc-example-panel.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/examples/cc-example-panel.c b/examples/cc-example-panel.c
index 979414d..d816af1 100644
--- a/examples/cc-example-panel.c
+++ b/examples/cc-example-panel.c
@@ -97,6 +97,8 @@ cc_example_panel_init (CcExamplePanel *self)
 
   label = gtk_label_new ("Hello World");
 
+  gtk_widget_show (label);
+
   gtk_container_add (GTK_CONTAINER (self), label);
 }
 



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