lower battery drawing : update to 10s and battery_hide config

git-svn-id: http://tint2.googlecode.com/svn/trunk@364 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
thilor77
2010-01-19 19:29:28 +00:00
parent a22041ce09
commit a5a39b0bb2
3 changed files with 29 additions and 2 deletions

View File

@@ -358,6 +358,13 @@ void add_entry (char *key, char *value)
panel_config.battery.area.bg = &g_array_index(backgrounds, Background, id);
#endif
}
else if (strcmp (key, "battery_hide") == 0) {
#ifdef ENABLE_BATTERY
percentage_hide = atoi (value);
if (percentage_hide == 0)
percentage_hide = 101;
#endif
}
/* Clock */
else if (strcmp (key, "time1_format") == 0) {