406 parent, |
406 parent, |
407 args, |
407 args, |
408 2); |
408 2); |
409 XmStringFree(label); |
409 XmStringFree(label); |
410 |
410 |
411 UiVar *var = uic_connect_var(obj->ctx, ci->varname, UI_VAR_INTEGER); |
411 UiVar *var = uic_create_var(obj->ctx, ci->varname, UI_VAR_INTEGER); |
412 if(var) { |
412 if(var) { |
413 UiInteger *value = var->value; |
413 UiInteger *value = var->value; |
414 value->obj = checkbox; |
414 value->obj = checkbox; |
415 value->get = ui_toggle_button_get; |
415 value->get = ui_toggle_button_get; |
416 value->set = ui_toggle_button_set; |
416 value->set = ui_toggle_button_set; |