| 202 return cxMapGet(application_properties, name); |
202 return cxMapGet(application_properties, name); |
| 203 } |
203 } |
| 204 |
204 |
| 205 void ui_set_property(const char *name, const char *value) { |
205 void ui_set_property(const char *name, const char *value) { |
| 206 if(value) { |
206 if(value) { |
| |
207 cxMapPut(application_properties, name, strdup(value)); |
| |
208 } else { |
| 207 cxMapRemove(application_properties, name); |
209 cxMapRemove(application_properties, name); |
| 208 } else { |
|
| 209 cxMapPut(application_properties, name, strdup(value)); |
|
| 210 } |
210 } |
| 211 } |
211 } |
| 212 |
212 |
| 213 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) { |
| 214 const char *v = cxMapGet(application_properties, name); |
214 const char *v = cxMapGet(application_properties, name); |