From 1a9ce9decd792836cfd2e15448230957679cb894 Mon Sep 17 00:00:00 2001 From: "Spooky85@gmail.com" Date: Fri, 23 Apr 2010 17:30:49 +0000 Subject: [PATCH] Add preprocessor statements to check if battery support has been enabled before using "default_battery()". git-svn-id: http://tint2.googlecode.com/svn/trunk@442 121b4492-b84c-0410-8b4c-0d4edfb3f3cc --- src/tint.c | 2 ++ 1 file changed, 2 insertions(+) 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();