| 200 const char* ui_get_property(const char *name) { |
201 const char* ui_get_property(const char *name) { |
| 201 return cxMapGet(application_properties, name); |
202 return cxMapGet(application_properties, name); |
| 202 } |
203 } |
| 203 |
204 |
| 204 void ui_set_property(const char *name, const char *value) { |
205 void ui_set_property(const char *name, const char *value) { |
| 205 cxMapPut(application_properties, name, (char*)value); |
206 if(value) { |
| |
207 cxMapRemove(application_properties, name); |
| |
208 } else { |
| |
209 cxMapPut(application_properties, name, strdup(value)); |
| |
210 } |
| 206 } |
211 } |
| 207 |
212 |
| 208 const char* ui_set_default_property(const char *name, const char *value) { |
213 const char* ui_set_default_property(const char *name, const char *value) { |
| 209 const char *v = cxMapGet(application_properties, name); |
214 const char *v = cxMapGet(application_properties, name); |
| 210 if(!v) { |
215 if(!v) { |