ui/gtk/window.c

changeset 4
39b9b86ec452
parent 3
c1a75454b444
child 18
06be29a56f8b
--- a/ui/gtk/window.c	Sat Mar 22 10:37:12 2014 +0100
+++ b/ui/gtk/window.c	Sat Mar 22 15:34:20 2014 +0100
@@ -34,6 +34,7 @@
 
 #include "menu.h"
 #include "toolbar.h"
+#include "container.h"
 
 static int nwindows = 0;
 
@@ -93,6 +94,11 @@
         gtk_box_pack_start(GTK_BOX(vbox), tb, FALSE, FALSE, 0);
     }
     
+    // window content
+    GtkWidget *frame = gtk_alignment_new(0.5, 0.5, 1, 1);
+    gtk_box_pack_start(GTK_BOX(vbox), frame, TRUE, TRUE, 0);
+    obj->container = ui_frame_container(obj, frame);
+    
     nwindows++;
     return obj;
 }

mercurial