ui/common/toolbar.c

branch
newapi
changeset 325
99a93a9250c4
parent 254
13997c76859b
equal deleted inserted replaced
324:ce13a778654a 325:99a93a9250c4
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