ui/gtk/window.c

changeset 107
9aff1dc3990d
parent 106
a4f4123ca12a
child 111
40dbf1a7526a
equal deleted inserted replaced
106:a4f4123ca12a 107:9aff1dc3990d
85 obj->widget, 85 obj->widget,
86 "destroy", 86 "destroy",
87 G_CALLBACK(ui_exit_event), 87 G_CALLBACK(ui_exit_event),
88 window_data); 88 window_data);
89 89
90 GtkWidget *vbox = ui_gtk_vbox_new(); 90 GtkWidget *vbox = ui_gtk_vbox_new(0);
91 gtk_container_add(GTK_CONTAINER(obj->widget), vbox); 91 gtk_container_add(GTK_CONTAINER(obj->widget), vbox);
92 92
93 if(!simple) { 93 if(!simple) {
94 // menu 94 // menu
95 GtkWidget *mb = ui_create_menubar(obj); 95 GtkWidget *mb = ui_create_menubar(obj);
108 // the content has a (TODO: not yet) configurable frame 108 // the content has a (TODO: not yet) configurable frame
109 GtkWidget *frame = gtk_alignment_new(0.5, 0.5, 1, 1); 109 GtkWidget *frame = gtk_alignment_new(0.5, 0.5, 1, 1);
110 gtk_box_pack_start(GTK_BOX(vbox), frame, TRUE, TRUE, 0); 110 gtk_box_pack_start(GTK_BOX(vbox), frame, TRUE, TRUE, 0);
111 111
112 // content vbox 112 // content vbox
113 GtkWidget *content_box = ui_gtk_vbox_new(); 113 GtkWidget *content_box = ui_gtk_vbox_new(0);
114 gtk_container_add(GTK_CONTAINER(frame), content_box); 114 gtk_container_add(GTK_CONTAINER(frame), content_box);
115 obj->container = ui_box_container(obj, content_box); 115 obj->container = ui_box_container(obj, content_box);
116 116
117 nwindows++; 117 nwindows++;
118 return obj; 118 return obj;

mercurial