ui/motif/toolbar.c

changeset 169
fe49cff3c571
parent 157
0b33b9396851
child 176
bc63cb601f6d
equal deleted inserted replaced
168:1b99acacc5bb 169:fe49cff3c571
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

mercurial