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:
parent
9bc512b703
commit
1a9ce9decd
1 changed files with 2 additions and 0 deletions
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue