ui/common/toolbar.c

changeset 49
2f71f4ee247a
parent 29
3fc287f06305
child 70
94144a948aff
equal deleted inserted replaced
48:ae61523bce20 49:2f71f4ee247a
130 // TODO: error 130 // TODO: error
131 } 131 }
132 } 132 }
133 133
134 UiBool uic_toolbar_isenabled(void) { 134 UiBool uic_toolbar_isenabled(void) {
135 return toolbar_defaults[0]->size + toolbar_defaults[1]->size + toolbar_defaults[2]->size > 0; 135 return cxListSize(toolbar_defaults[0]) + cxListSize(toolbar_defaults[1]) + cxListSize(toolbar_defaults[2]) > 0;
136 } 136 }
137 137
138 UiToolbarItemI* uic_toolbar_get_item(const char* name) { 138 UiToolbarItemI* uic_toolbar_get_item(const char* name) {
139 return cxMapGet(toolbar_items, name); 139 return cxMapGet(toolbar_items, name);
140 } 140 }

mercurial