ui/motif/window.c

changeset 60
7cd1b8890302
parent 36
e4198fc2ead4
child 61
7ee124a58fe3
equal deleted inserted replaced
59:eb6611be50c7 60:7cd1b8890302
99 window, 99 window,
100 NULL); 100 NULL);
101 101
102 Widget toolbar = ui_create_toolbar(obj, form); 102 Widget toolbar = ui_create_toolbar(obj, form);
103 103
104
104 // window content 105 // window content
105 XtSetArg(args[0], XmNshadowType, XmSHADOW_ETCHED_OUT); 106 XtSetArg(args[0], XmNshadowType, XmSHADOW_ETCHED_OUT);
106 XtSetArg(args[1], XmNshadowThickness, 0); 107 XtSetArg(args[1], XmNshadowThickness, 0);
107 XtSetArg(args[2], XmNleftAttachment, XmATTACH_FORM); 108 XtSetArg(args[2], XmNleftAttachment, XmATTACH_FORM);
108 XtSetArg(args[3], XmNrightAttachment, XmATTACH_FORM); 109 XtSetArg(args[3], XmNrightAttachment, XmATTACH_FORM);
113 n = 7; 114 n = 7;
114 } else { 115 } else {
115 XtSetArg(args[5], XmNtopAttachment, XmATTACH_FORM); 116 XtSetArg(args[5], XmNtopAttachment, XmATTACH_FORM);
116 n = 6; 117 n = 6;
117 } 118 }
118 Widget frame = XmCreateFrame(form, "toolbar_frame", args, n); 119 Widget frame = XmCreateFrame(form, "content_frame", args, n);
119 XtManageChild(frame); 120 XtManageChild(frame);
120 121
121 obj->container = ui_frame_container(obj, frame); 122 Widget content_form = XmCreateForm(frame, "content_form", NULL, 0);
122 123 XtManageChild(content_form);
124 obj->container = ui_vbox_container(obj, content_form);
125 //obj->container = ui_frame_container(obj, frame);
123 126
124 XtManageChild(form); 127 XtManageChild(form);
125 128
126 obj->widget = toplevel; 129 obj->widget = toplevel;
127 nwindows++; 130 nwindows++;

mercurial