ui/gtk/container.c

changeset 471
063a9f29098c
parent 465
00735562b25b
child 483
069fca2a47c2
equal deleted inserted replaced
470:118e2386d5b4 471:063a9f29098c
1141 if(item_obj) { 1141 if(item_obj) {
1142 // re-add previously created widget 1142 // re-add previously created widget
1143 ui_box_container_add(ct->container, item_obj->widget, FALSE); 1143 ui_box_container_add(ct->container, item_obj->widget, FALSE);
1144 } else { 1144 } else {
1145 // create new widget and object for this list element 1145 // create new widget and object for this list element
1146 CxMempool *mp = cxBasicMempoolCreate(256); 1146 CxMempool *mp = cxMempoolCreateSimple(256);
1147 const CxAllocator *a = mp->allocator; 1147 const CxAllocator *a = mp->allocator;
1148 UiObject *obj = cxCalloc(a, 1, sizeof(UiObject)); 1148 UiObject *obj = cxCalloc(a, 1, sizeof(UiObject));
1149 obj->ctx = uic_context(obj, mp); 1149 obj->ctx = uic_context(obj, mp);
1150 obj->window = NULL; 1150 obj->window = NULL;
1151 obj->widget = ui_subcontainer_create( 1151 obj->widget = ui_subcontainer_create(

mercurial