*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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user