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
o9000 o9000
1 files changed,
2 insertions(+),
0 deletions(-)
jump to
M
src/config.c
→
src/config.c
@@ -694,6 +694,7 @@ panel_items_order = g_strdup("S");
} } } +#ifdef ENABLE_BATTERY else if (strcmp(key, "battery") == 0) { if (new_config_file == 0) { battery_enabled = atoi(value);@@ -708,6 +709,7 @@ panel_items_order = g_strdup("B");
} } } +#endif else fprintf(stderr, "tint2 : invalid option \"%s\",\n upgrade tint2 or correct your config file\n", key);