[libchamplain] Simplify the minimal-gtk demo



commit 608cb0774d96c3f979030ebed495db60f6568dd5
Author: JiÅ?í Techet <techet gmail com>
Date:   Sun May 23 03:01:28 2010 +0200

    Simplify the minimal-gtk demo
    
    Signed-off-by: JiÅ?í Techet <techet gmail com>

 demos/minimal-gtk.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/demos/minimal-gtk.c b/demos/minimal-gtk.c
index 29b84cd..c084732 100644
--- a/demos/minimal-gtk.c
+++ b/demos/minimal-gtk.c
@@ -26,7 +26,7 @@
 int
 main (int argc, char *argv[])
 {
-  GtkWidget *window, *widget, *vbox;
+  GtkWidget *window, *widget;
 
   /* initialize threads and clutter */
   g_thread_init (NULL);
@@ -47,9 +47,7 @@ main (int argc, char *argv[])
   champlain_view_center_on(CHAMPLAIN_VIEW(view), 45.466, -73.75);
 
   /* insert it into the widget you wish */
-  vbox = gtk_vbox_new(FALSE, 0);
-  gtk_box_pack_start (GTK_BOX (vbox), widget, TRUE, TRUE, 0);
-  gtk_container_add (GTK_CONTAINER (window), vbox);
+  gtk_container_add (GTK_CONTAINER (window), widget);
 
   /* show everything */
   gtk_widget_show_all (window);



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