ui/common/context.c

changeset 25
78ae3efe463f
parent 21
012418e7dc90
child 33
458831c574f4
equal deleted inserted replaced
24:06bceda81a03 25:78ae3efe463f
215 } 215 }
216 216
217 free(groups); 217 free(groups);
218 } 218 }
219 219
220 void uic_add_group_widget(UiContext *ctx, UIWIDGET widget, UcxList *groups) { 220 void uic_add_group_widget(UiContext *ctx, void *widget, UcxList *groups) {
221 UcxMempool *mp = ctx->mempool; 221 UcxMempool *mp = ctx->mempool;
222 UiGroupWidget *gw = ucx_mempool_malloc(mp, sizeof(UiGroupWidget)); 222 UiGroupWidget *gw = ucx_mempool_malloc(mp, sizeof(UiGroupWidget));
223 223
224 gw->widget = widget; 224 gw->widget = widget;
225 gw->numgroups = ucx_list_size(groups); 225 gw->numgroups = ucx_list_size(groups);
232 ctx->group_widgets = ucx_list_append_a( 232 ctx->group_widgets = ucx_list_append_a(
233 mp->allocator, 233 mp->allocator,
234 ctx->group_widgets, 234 ctx->group_widgets,
235 gw); 235 gw);
236 } 236 }
237

mercurial