75:73c8a3780c72 | 76:641dcc79e0ef |
---|---|
30 #include <stdlib.h> | 30 #include <stdlib.h> |
31 #include <string.h> | 31 #include <string.h> |
32 #include <sys/stat.h> | 32 #include <sys/stat.h> |
33 #include <errno.h> | 33 #include <errno.h> |
34 | 34 |
35 #include "../ui/toolkit.h" | |
36 | |
37 | |
35 #include "properties.h" | 38 #include "properties.h" |
36 #include <cx/string.h> | 39 #include <cx/string.h> |
37 #include <cx/buffer.h> | 40 #include <cx/buffer.h> |
38 | 41 |
39 #include "ucx_properties.h" | 42 #include "ucx_properties.h" |
46 static char *locales_dir; | 49 static char *locales_dir; |
47 static char *pixmaps_dir; | 50 static char *pixmaps_dir; |
48 | 51 |
49 #endif | 52 #endif |
50 | 53 |
51 char* ui_getappdir() { | 54 |
55 char* ui_getappdir(void) { | |
52 if(ui_appname() == NULL) { | 56 if(ui_appname() == NULL) { |
53 return NULL; | 57 return NULL; |
54 } | 58 } |
55 | 59 |
56 return ui_configfile(NULL); | 60 return ui_configfile(NULL); |
57 } | 61 } |
58 | 62 |
59 char* ui_configfile(char *name) { | 63 char* ui_configfile(char *name) { |
60 const char *appname = ui_appname(); | 64 const char *appname = ui_appname(); |
294 if(!language) { | 298 if(!language) { |
295 return NULL; | 299 return NULL; |
296 } | 300 } |
297 return cxMapGet(language, name); | 301 return cxMapGet(language, name); |
298 } | 302 } |
299 |