ui/common/properties.c

changeset 763
258ec399fbe6
parent 762
9452eccfc0f0
child 974
dc72d666d721
equal deleted inserted replaced
762:9452eccfc0f0 763:258ec399fbe6
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);

mercurial