ui/common/properties.c

changeset 47
97792f44d919
parent 33
458831c574f4
child 140
c03c338a7dcf
equal deleted inserted replaced
46:4a5e0b9b6992 47:97792f44d919
211 211
212 void ui_pixmaps_dir(char *path) { 212 void ui_pixmaps_dir(char *path) {
213 pixmaps_dir = path; 213 pixmaps_dir = path;
214 } 214 }
215 215
216 char* uic_get_image_path(char *imgfilename) {
217 if(pixmaps_dir) {
218 return uic_concat_path(pixmaps_dir, imgfilename, NULL);
219 } else {
220 return NULL;
221 }
222 }
223
216 void ui_load_lang(char *locale) { 224 void ui_load_lang(char *locale) {
217 if(!locale) { 225 if(!locale) {
218 locale = "en_EN"; 226 locale = "en_EN";
219 } 227 }
220 228
285 return NULL; 293 return NULL;
286 } 294 }
287 return ucx_map_cstr_get(language, name); 295 return ucx_map_cstr_get(language, name);
288 } 296 }
289 297
290
291 char* uic_get_image_path(char *imgfilename) {
292 if(pixmaps_dir) {
293 return uic_concat_path(pixmaps_dir, imgfilename, NULL);
294 } else {
295 return NULL;
296 }
297 }

mercurial