*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:
parent
602ba5aa9f
commit
b3b26e199c
2 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
|
|
|
@ -52,7 +52,7 @@ void init_taskbarname_panel(void *p)
|
|||
int j;
|
||||
|
||||
if (!taskbarname_enabled) return;
|
||||
|
||||
|
||||
GSList *l, *list = server_get_name_of_desktop();
|
||||
for (j=0, l=list ; j < panel->nb_desktop ; j++) {
|
||||
tskbar = &panel->taskbar[j];
|
||||
|
|
Loading…
Reference in a new issue