ui/common/toolbar.c

branch
newapi
changeset 378
d41b1ffc5f77
parent 367
1c3af8e31d8e
equal deleted inserted replaced
377:3a60db9ebb5d 378:d41b1ffc5f77
34 static CxMap* toolbar_items; 34 static CxMap* toolbar_items;
35 35
36 static CxList* toolbar_defaults[3]; // 0: left 1: center 2: right 36 static CxList* toolbar_defaults[3]; // 0: left 1: center 2: right
37 37
38 static UiToolbarMenuItem* ui_appmenu; 38 static UiToolbarMenuItem* ui_appmenu;
39
39 40
40 void uic_toolbar_init(void) { 41 void uic_toolbar_init(void) {
41 toolbar_items = cxHashMapCreate(cxDefaultAllocator, CX_STORE_POINTERS, 16); 42 toolbar_items = cxHashMapCreate(cxDefaultAllocator, CX_STORE_POINTERS, 16);
42 toolbar_defaults[0] = cxLinkedListCreateSimple(CX_STORE_POINTERS); 43 toolbar_defaults[0] = cxLinkedListCreateSimple(CX_STORE_POINTERS);
43 toolbar_defaults[1] = cxLinkedListCreateSimple(CX_STORE_POINTERS); 44 toolbar_defaults[1] = cxLinkedListCreateSimple(CX_STORE_POINTERS);

mercurial