ui/motif/toolbar.c

changeset 169
fe49cff3c571
parent 157
0b33b9396851
child 176
bc63cb601f6d
--- a/ui/motif/toolbar.c	Fri Dec 11 11:47:30 2020 +0100
+++ b/ui/motif/toolbar.c	Sun May 23 09:44:43 2021 +0200
@@ -258,7 +258,7 @@
     XtManageChild(button);
     
     if(item->groups) {
-        uic_add_group_widget(obj->ctx, button, item->groups);
+        uic_add_group_widget(obj->ctx, button, (ui_enablefunc)XtSetSensitive, item->groups);
     }
 }
 
@@ -292,7 +292,7 @@
     XtManageChild(button);
     
     if(item->groups) {
-        uic_add_group_widget(obj->ctx, button, item->groups);
+        uic_add_group_widget(obj->ctx, button, (ui_enablefunc)XtSetSensitive, item->groups);
     }
 }
 
@@ -325,7 +325,7 @@
     XtManageChild(button);
     
     if(item->groups) {
-        uic_add_group_widget(obj->ctx, button, item->groups);
+        uic_add_group_widget(obj->ctx, button, (ui_enablefunc)XtSetSensitive, item->groups);
     }
 }
 

mercurial