ui/motif/button.c

changeset 440
7c4b9cba09ca
parent 433
605bb5dc34f1
equal deleted inserted replaced
439:bf7084544cb1 440:7c4b9cba09ca
237 i->value = value; 237 i->value = value;
238 XmToggleButtonSetState(togglebutton, (Boolean)value, False); 238 XmToggleButtonSetState(togglebutton, (Boolean)value, False);
239 } 239 }
240 240
241 static void destroy_list(Widget w, CxList *list, XtPointer d) { 241 static void destroy_list(Widget w, CxList *list, XtPointer d) {
242 cxListDestroy(list); 242 cxListFree(list);
243 } 243 }
244 244
245 static void radiobutton_changed(Widget w, UiVarEventData *event, XmToggleButtonCallbackStruct *tb) { 245 static void radiobutton_changed(Widget w, UiVarEventData *event, XmToggleButtonCallbackStruct *tb) {
246 if(event->value > 0) { 246 if(event->value > 0) {
247 // button in configured to enable/disable states 247 // button in configured to enable/disable states

mercurial