ui/motif/button.c

changeset 1016
ccde46662db7
parent 967
ff4a8d10307b
equal deleted inserted replaced
1015:b459361d98ad 1016:ccde46662db7
302 UiInteger *value = var->value; 302 UiInteger *value = var->value;
303 CxList *rb = value->obj; 303 CxList *rb = value->obj;
304 if(!rb) { 304 if(!rb) {
305 // first button in the radiobutton group 305 // first button in the radiobutton group
306 // create a list for all buttons and use the list as value obj 306 // create a list for all buttons and use the list as value obj
307 rb = cxArrayListCreateSimple(CX_STORE_POINTERS, 4); 307 rb = cxArrayListCreate(NULL, CX_STORE_POINTERS, 4);
308 value->obj = rb; 308 value->obj = rb;
309 value->get = ui_radiobutton_get; 309 value->get = ui_radiobutton_get;
310 value->set = ui_radiobutton_set; 310 value->set = ui_radiobutton_set;
311 311
312 // the first radio button is also responsible for cleanup 312 // the first radio button is also responsible for cleanup
372 UiInteger *value = var->value; 372 UiInteger *value = var->value;
373 CxList *rb = value->obj; 373 CxList *rb = value->obj;
374 if(!rb) { 374 if(!rb) {
375 // first button in the radiobutton group 375 // first button in the radiobutton group
376 // create a list for all buttons and use the list as value obj 376 // create a list for all buttons and use the list as value obj
377 rb = cxArrayListCreateSimple(CX_STORE_POINTERS, 4); 377 rb = cxArrayListCreate(NULL, CX_STORE_POINTERS, 4);
378 value->obj = rb; 378 value->obj = rb;
379 value->get = ui_radiobutton_get; 379 value->get = ui_radiobutton_get;
380 value->set = ui_radiobutton_set; 380 value->set = ui_radiobutton_set;
381 381
382 // the first radio button is also responsible for cleanup 382 // the first radio button is also responsible for cleanup

mercurial