ui/motif/menu.c

branch
newapi
changeset 417
f0fee61a70be
parent 416
89ad8467c39f
child 418
a57268d20ed9
equal deleted inserted replaced
416:89ad8467c39f 417:f0fee61a70be
127 args, 127 args,
128 n); 128 n);
129 if(s) { 129 if(s) {
130 XmStringFree(s); 130 XmStringFree(s);
131 } 131 }
132
133 if(it->callback) {
134 UiEventData *eventdata = malloc(sizeof(UiEventData));
135 eventdata->callback = it->callback;
136 eventdata->userdata = it->userdata;
137 eventdata->obj = obj;
138 eventdata->value = 0;
139 XtAddCallback(
140 mitem,
141 XmNactivateCallback,
142 (XtCallbackProc)ui_push_button_callback,
143 eventdata);
144 XtAddCallback(
145 mitem,
146 XmNdestroyCallback,
147 (XtCallbackProc)ui_destroy_eventdata,
148 eventdata);
149 }
132 } 150 }
133 151
134 void add_menuseparator_widget(Widget p, int i, UiMenuItemI *item, UiObject *obj) { 152 void add_menuseparator_widget(Widget p, int i, UiMenuItemI *item, UiObject *obj) {
135 153
136 } 154 }

mercurial