32 #include "../ui/window.h" |
32 #include "../ui/window.h" |
33 #include "../common/context.h" |
33 #include "../common/context.h" |
34 |
34 |
35 #include "menu.h" |
35 #include "menu.h" |
36 #include "toolbar.h" |
36 #include "toolbar.h" |
|
37 #include "container.h" |
37 |
38 |
38 static int nwindows = 0; |
39 static int nwindows = 0; |
39 |
40 |
40 static ui_callback wclose_fnc = NULL; |
41 static ui_callback wclose_fnc = NULL; |
41 static void *wclose_udata = NULL; |
42 static void *wclose_udata = NULL; |
91 GtkWidget *tb = ui_create_toolbar(obj); |
92 GtkWidget *tb = ui_create_toolbar(obj); |
92 if(tb) { |
93 if(tb) { |
93 gtk_box_pack_start(GTK_BOX(vbox), tb, FALSE, FALSE, 0); |
94 gtk_box_pack_start(GTK_BOX(vbox), tb, FALSE, FALSE, 0); |
94 } |
95 } |
95 |
96 |
|
97 // window content |
|
98 GtkWidget *frame = gtk_alignment_new(0.5, 0.5, 1, 1); |
|
99 gtk_box_pack_start(GTK_BOX(vbox), frame, TRUE, TRUE, 0); |
|
100 obj->container = ui_frame_container(obj, frame); |
|
101 |
96 nwindows++; |
102 nwindows++; |
97 return obj; |
103 return obj; |
98 } |
104 } |
99 |
105 |