ui/motif/window.c

changeset 3
c1a75454b444
parent 2
eeb50c534497
child 4
39b9b86ec452
equal deleted inserted replaced
2:eeb50c534497 3:c1a75454b444
29 #include <stdio.h> 29 #include <stdio.h>
30 #include <stdlib.h> 30 #include <stdlib.h>
31 31
32 #include "toolkit.h" 32 #include "toolkit.h"
33 #include "menu.h" 33 #include "menu.h"
34 #include "toolbar.h"
34 #include "../ui/window.h" 35 #include "../ui/window.h"
35 #include "../common/context.h" 36 #include "../common/context.h"
36 37
37 static int nwindows = 0; 38 static int nwindows = 0;
38 39
87 xmMainWindowWidgetClass, 88 xmMainWindowWidgetClass,
88 toplevel, 89 toplevel,
89 NULL); 90 NULL);
90 obj->widget = window; 91 obj->widget = window;
91 ui_create_menubar(obj); 92 ui_create_menubar(obj);
93
94 // toolbar
95 Widget form = XtVaCreateManagedWidget(
96 "window_form",
97 xmFormWidgetClass,
98 window,
99 NULL);
100
101 ui_create_toolbar(obj, form);
102
103
104 XtManageChild(form);
92 105
93 obj->widget = toplevel; 106 obj->widget = toplevel;
94 nwindows++; 107 nwindows++;
95 return obj; 108 return obj;
96 } 109 }

mercurial