Fix issue 428: Build fails when battery applet is disabled from cmake
git-svn-id: http://tint2.googlecode.com/svn/trunk@684 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
parent
3f42584fbd
commit
89c8338067
1 changed files with 2 additions and 0 deletions
|
@ -694,6 +694,7 @@ void add_entry (char *key, char *value)
|
|||
}
|
||||
}
|
||||
}
|
||||
#ifdef ENABLE_BATTERY
|
||||
else if (strcmp(key, "battery") == 0) {
|
||||
if (new_config_file == 0) {
|
||||
battery_enabled = atoi(value);
|
||||
|
@ -708,6 +709,7 @@ void add_entry (char *key, char *value)
|
|||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
else
|
||||
fprintf(stderr, "tint2 : invalid option \"%s\",\n upgrade tint2 or correct your config file\n", key);
|
||||
|
||||
|
|
Loading…
Reference in a new issue