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); |