| 447 tabview->remove = ui_motif_tabview_remove; |
447 tabview->remove = ui_motif_tabview_remove; |
| 448 tabview->tabs = cxArrayListCreate(obj->ctx->allocator, cx_cmp_ptr, sizeof(UiTab), 8); |
448 tabview->tabs = cxArrayListCreate(obj->ctx->allocator, cx_cmp_ptr, sizeof(UiTab), 8); |
| 449 tabview->current_index = -1; |
449 tabview->current_index = -1; |
| 450 |
450 |
| 451 UiTabViewContainer *ct = ui_malloc(obj->ctx, sizeof(UiTabViewContainer)); |
451 UiTabViewContainer *ct = ui_malloc(obj->ctx, sizeof(UiTabViewContainer)); |
| |
452 memset(ct, 0, sizeof(UiTabViewContainer)); |
| 452 ct->container.widget = form; |
453 ct->container.widget = form; |
| 453 ct->container.type = UI_CONTAINER_TABVIEW; |
454 ct->container.type = UI_CONTAINER_TABVIEW; |
| 454 ct->container.prepare = ui_tabview_container_prepare; |
455 ct->container.prepare = ui_tabview_container_prepare; |
| 455 ct->container.add = ui_tabview_container_add; |
456 ct->container.add = ui_tabview_container_add; |
| 456 ct->tabview = tabview; |
457 ct->tabview = tabview; |