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:
committed by
mrovi9000@gmail.com
parent
3f42584fbd
commit
89c8338067
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user