monkey-bubble r295 - in trunk: . src/ui



Author: herzi
Date: Fri Feb  8 13:14:40 2008
New Revision: 295
URL: http://svn.gnome.org/viewvc/monkey-bubble?rev=295&view=rev

Log:
2008-02-08  Sven Herzberg  <sven imendio com>

	* src/ui/ui-main.c: (ui_main_new): replace the glade-generated vbox by
	a manually created one (for GNOME)


Modified:
   trunk/ChangeLog
   trunk/src/ui/ui-main.c

Modified: trunk/src/ui/ui-main.c
==============================================================================
--- trunk/src/ui/ui-main.c	(original)
+++ trunk/src/ui/ui-main.c	Fri Feb  8 13:14:40 2008
@@ -315,6 +315,14 @@
 #endif
 
         vbox = glade_xml_get_widget( PRIVATE(ui_main)->glade_xml,"main_vbox");
+#ifdef GNOME
+	gtk_widget_destroy (vbox);
+	vbox = gtk_vbox_new (FALSE, 0);
+	gtk_widget_show (vbox);
+
+	gtk_container_add (GTK_CONTAINER (PRIVATE (ui_main)->window),
+			   vbox);
+#endif
 
         PRIVATE(ui_main)->canvas =monkey_canvas_new();
 	gtk_widget_show (GTK_WIDGET (PRIVATE(ui_main)->canvas));
@@ -391,12 +399,12 @@
         g_object_ref(PRIVATE(ui_main)->menu);
         kp = keyboard_properties_get_instance();
 
-	gtk_box_pack_start (GTK_BOX (glade_xml_get_widget (PRIVATE (ui_main)->glade_xml, "main_vbox")),
+	gtk_box_pack_start (GTK_BOX (vbox),
 			    PRIVATE (ui_main)->menu,
 			    FALSE,
 			    FALSE,
 			    0);
-	gtk_box_reorder_child (GTK_BOX (glade_xml_get_widget (PRIVATE (ui_main)->glade_xml, "main_vbox")),
+	gtk_box_reorder_child (GTK_BOX (vbox),
 			       PRIVATE (ui_main)->menu,
 			       0);
 



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