diff options
author | David <dbphillipsnz@gmail.com> | 2014-05-29 15:39:37 +1200 |
---|---|---|
committer | David <dbphillipsnz@gmail.com> | 2014-06-06 20:31:31 +1200 |
commit | 8f1bf7139ad5ae6f9c553029f4c37df82290096d (patch) | |
tree | f3d0ccde91aa6547de5de23479c40db9c9a144b1 /trayfreq.c | |
parent | 9c6e0131574df53e2ae6cc7f3c956f1856d05ac3 (diff) | |
download | paramano-8f1bf7139ad5ae6f9c553029f4c37df82290096d.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"); |