| 66 ctx->documents = cxLinkedListCreate(mp->allocator, CX_STORE_POINTERS); |
66 ctx->documents = cxLinkedListCreate(mp->allocator, CX_STORE_POINTERS); |
| 67 ctx->state_widgets = cxLinkedListCreate(mp->allocator, sizeof(UiStateWidget)); |
67 ctx->state_widgets = cxLinkedListCreate(mp->allocator, sizeof(UiStateWidget)); |
| 68 ctx->states = cxArrayListCreate(mp->allocator, sizeof(int), 32); |
68 ctx->states = cxArrayListCreate(mp->allocator, sizeof(int), 32); |
| 69 cxSetCompareFunc(ctx->states, cx_cmp_int); |
69 cxSetCompareFunc(ctx->states, cx_cmp_int); |
| 70 |
70 |
| |
71 ctx->actions = cxHashMapCreate(ctx->allocator, sizeof(UiAction), 8); |
| |
72 ctx->action_bindings = cxArrayListCreate(ctx->allocator, sizeof(UiActionBinding), 0); |
| |
73 |
| 71 ctx->attach_document = uic_context_attach_document; |
74 ctx->attach_document = uic_context_attach_document; |
| 72 ctx->detach_document2 = uic_context_detach_document; |
75 ctx->detach_document2 = uic_context_detach_document; |
| 73 |
76 |
| 74 #if UI_GTK2 || UI_GTK3 |
77 #if UI_GTK2 || UI_GTK3 |
| 75 if(toplevel && toplevel->widget) { |
78 if(toplevel && toplevel->widget) { |