ui/motif/menu.c

changeset 153
ee49d1852a5f
parent 115
102fc0b8fe3e
child 169
fe49cff3c571
equal deleted inserted replaced
152:62921b370c60 153:ee49d1852a5f
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;

mercurial