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:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user