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
This commit is contained in:
Spooky85@gmail.com 2010-04-23 17:30:49 +00:00
parent 9bc512b703
commit 1a9ce9decd

View file

@ -59,7 +59,9 @@ void init (int argc, char *argv[])
default_timeout(); default_timeout();
default_systray(); default_systray();
memset(&server, 0, sizeof(Server_global)); memset(&server, 0, sizeof(Server_global));
#ifdef ENABLE_BATTERY
default_battery(); default_battery();
#endif
default_clock(); default_clock();
default_taskbar(); default_taskbar();
default_tooltip(); default_tooltip();