From: Christian Ruppert Date: Fri, 23 Apr 2010 17:30:49 +0000 (+0000) Subject: Add preprocessor statements to check if battery support has been enabled before using... X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=d81dee489401ccf638f1b5d9d67f9b16044cd8c9;p=chaz%2Ftint2 Add preprocessor statements to check if battery support has been enabled before using "default_battery()". --- diff --git a/src/tint.c b/src/tint.c index ed65fa1..357c180 100644 --- a/src/tint.c +++ b/src/tint.c @@ -59,7 +59,9 @@ void init (int argc, char *argv[]) default_timeout(); default_systray(); memset(&server, 0, sizeof(Server_global)); +#ifdef ENABLE_BATTERY default_battery(); +#endif default_clock(); default_taskbar(); default_tooltip();