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 } |