ui/gtk/button.c

changeset 100
d2bd73d28ff1
parent 97
5a3d27b8e6b0
equal deleted inserted replaced
99:b9767cb5b06b 100:d2bd73d28ff1
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