diff options
author | David <dbphillipsnz@gmail.com> | 2014-05-29 15:39:37 +1200 |
---|---|---|
committer | David <dbphillipsnz@gmail.com> | 2014-05-29 15:39:37 +1200 |
commit | 07b159aa218d2291a4c3858c38b120ec102e4d98 (patch) | |
tree | db2622106f7f710a86ec21d4c45a2406ed9a7858 /trayfreq.c | |
parent | 8745ade3f275eada5341bb443cdb7afb2fdea1d7 (diff) | |
download | paramano-07b159aa218d2291a4c3858c38b120ec102e4d98.tar.xz |
User can now specify theme dir
Diffstat (limited to 'trayfreq.c')
-rw-r--r-- | trayfreq.c | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -33,11 +33,12 @@ #include <stdio.h> #include <libintl.h> #include <locale.h> +#include <string.h> int main(int argc, char** argv) { setlocale(LC_ALL, ""); - bindtextdomain("trayfreq",LOCALE_DIR); + bindtextdomain("trayfreq",LOCALEDIR); textdomain("trayfreq"); debug("Set gettext up\n"); @@ -130,9 +131,15 @@ void config_init() if (temp) { _DEFAULT_USE_SUDO = ( temp[0] == '1' ); - debug("woo\n"); } - + + temp = config_get_key(&config, "extra", "theme"); + if (temp && strlen(temp) < sizeof(_DEFAULT_THEME) ) + { + sprintf(_DEFAULT_THEME, "%s", temp); + } + + debug("Using theme %s\n",_DEFAULT_THEME); debug("%s sudo\n",_DEFAULT_USE_SUDO? "Using" : "Not using"); |