ui/gtk/button.c

branch
newapi
changeset 403
b59935b2de79
parent 399
bb3f3fe2d5ee
equal deleted inserted replaced
402:96a055be7f0b 403:b59935b2de79
396 UiVarEventData *eventdata; 396 UiVarEventData *eventdata;
397 UiBool first; 397 UiBool first;
398 } UiRadioButtonData; 398 } UiRadioButtonData;
399 399
400 static void destroy_radiobutton(GtkWidget *w, UiRadioButtonData *data) { 400 static void destroy_radiobutton(GtkWidget *w, UiRadioButtonData *data) {
401 ui_destroy_vardata(w, data->eventdata);
402 if(data->first) { 401 if(data->first) {
402 ui_destroy_vardata(w, data->eventdata);
403 g_slist_free(data->value->obj); 403 g_slist_free(data->value->obj);
404 data->value->obj = NULL; 404 data->value->obj = NULL;
405 data->value->get = NULL; 405 data->value->get = NULL;
406 data->value->set = NULL; 406 data->value->set = NULL;
407 } else {
408 free(data->eventdata);
407 } 409 }
408 free(data); 410 free(data);
409 } 411 }
410 412
411 UIWIDGET ui_radiobutton_create(UiObject *obj, UiToggleArgs args) { 413 UIWIDGET ui_radiobutton_create(UiObject *obj, UiToggleArgs args) {

mercurial