256 } |
256 } |
257 |
257 |
258 XtManageChild(button); |
258 XtManageChild(button); |
259 |
259 |
260 if(item->groups) { |
260 if(item->groups) { |
261 uic_add_group_widget(obj->ctx, button, item->groups); |
261 uic_add_group_widget(obj->ctx, button, (ui_enablefunc)XtSetSensitive, item->groups); |
262 } |
262 } |
263 } |
263 } |
264 |
264 |
265 void add_toolitem_st_widget(Widget parent, UiStToolItem *item, UiObject *obj) { |
265 void add_toolitem_st_widget(Widget parent, UiStToolItem *item, UiObject *obj) { |
266 Arg args[8]; |
266 Arg args[8]; |
290 } |
290 } |
291 |
291 |
292 XtManageChild(button); |
292 XtManageChild(button); |
293 |
293 |
294 if(item->groups) { |
294 if(item->groups) { |
295 uic_add_group_widget(obj->ctx, button, item->groups); |
295 uic_add_group_widget(obj->ctx, button, (ui_enablefunc)XtSetSensitive, item->groups); |
296 } |
296 } |
297 } |
297 } |
298 |
298 |
299 void add_toolitem_toggle_widget(Widget parent, UiToolItem *item, UiObject *obj) { |
299 void add_toolitem_toggle_widget(Widget parent, UiToolItem *item, UiObject *obj) { |
300 Arg args[8]; |
300 Arg args[8]; |
323 } |
323 } |
324 |
324 |
325 XtManageChild(button); |
325 XtManageChild(button); |
326 |
326 |
327 if(item->groups) { |
327 if(item->groups) { |
328 uic_add_group_widget(obj->ctx, button, item->groups); |
328 uic_add_group_widget(obj->ctx, button, (ui_enablefunc)XtSetSensitive, item->groups); |
329 } |
329 } |
330 } |
330 } |
331 |
331 |
332 void add_toolitem_st_toggle_widget(Widget parent, UiStToolItem *item, UiObject *obj) { |
332 void add_toolitem_st_toggle_widget(Widget parent, UiStToolItem *item, UiObject *obj) { |
333 |
333 |