*fix* battery: set background_id to 0 if none has been specified

git-svn-id: http://tint2.googlecode.com/svn/trunk@623 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
andreas.fink85
2011-02-05 08:32:11 +00:00
parent 602ba5aa9f
commit b3b26e199c
2 changed files with 4 additions and 1 deletions

View File

@@ -238,6 +238,9 @@ void init_battery_panel(void *p)
if (!battery_enabled)
return;
if (battery->area.bg == 0)
battery->area.bg = &g_array_index(backgrounds, Background, 0);
battery->area.parent = p;
battery->area.panel = p;
battery->area._draw_foreground = draw_battery;