ui/motif/window.c

changeset 4
39b9b86ec452
parent 3
c1a75454b444
child 5
19d37cb9c96c
equal deleted inserted replaced
3:c1a75454b444 4:39b9b86ec452
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 "toolbar.h"
35 #include "container.h"
35 #include "../ui/window.h" 36 #include "../ui/window.h"
36 #include "../common/context.h" 37 #include "../common/context.h"
37 38
38 static int nwindows = 0; 39 static int nwindows = 0;
39 40
96 "window_form", 97 "window_form",
97 xmFormWidgetClass, 98 xmFormWidgetClass,
98 window, 99 window,
99 NULL); 100 NULL);
100 101
101 ui_create_toolbar(obj, form); 102 Widget toolbar = ui_create_toolbar(obj, form);
103
104 // window content
105 XtSetArg(args[0], XmNshadowType, XmSHADOW_ETCHED_OUT);
106 XtSetArg(args[1], XmNshadowThickness, 0);
107 XtSetArg(args[2], XmNtopAttachment, XmATTACH_WIDGET);
108 XtSetArg(args[3], XmNtopWidget, toolbar);
109 XtSetArg(args[4], XmNleftAttachment, XmATTACH_FORM);
110 XtSetArg(args[5], XmNrightAttachment, XmATTACH_FORM);
111 XtSetArg(args[6], XmNbottomAttachment, XmATTACH_FORM);
112 Widget frame = XmCreateFrame(form, "toolbar_frame", args, 7);
113 XtManageChild(frame);
114
115 obj->container = ui_frame_container(obj, frame);
102 116
103 117
104 XtManageChild(form); 118 XtManageChild(form);
105 119
106 obj->widget = toplevel; 120 obj->widget = toplevel;

mercurial