| 446 tabview->tabview = args->tabview; |
446 tabview->tabview = args->tabview; |
| 447 tabview->subcontainer = args->subcontainer; |
447 tabview->subcontainer = args->subcontainer; |
| 448 tabview->select = ui_motif_tabview_select; |
448 tabview->select = ui_motif_tabview_select; |
| 449 tabview->add = ui_motif_tabview_add_tab; |
449 tabview->add = ui_motif_tabview_add_tab; |
| 450 tabview->remove = ui_motif_tabview_remove; |
450 tabview->remove = ui_motif_tabview_remove; |
| 451 tabview->tabs = cxArrayListCreate(obj->ctx->allocator, cx_cmp_ptr, sizeof(UiTab), 8); |
451 tabview->tabs = cxArrayListCreate(obj->ctx->allocator, sizeof(UiTab), 8); |
| 452 tabview->current_index = -1; |
452 tabview->current_index = -1; |
| 453 |
453 |
| 454 UiTabViewContainer *ct = ui_malloc(obj->ctx, sizeof(UiTabViewContainer)); |
454 UiTabViewContainer *ct = ui_malloc(obj->ctx, sizeof(UiTabViewContainer)); |
| 455 memset(ct, 0, sizeof(UiTabViewContainer)); |
455 memset(ct, 0, sizeof(UiTabViewContainer)); |
| 456 ct->container.widget = form; |
456 ct->container.widget = form; |