cleanup
git-svn-id: http://tint2.googlecode.com/svn/trunk@578 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
parent
c01b7f480e
commit
503a4b6845
2 changed files with 4 additions and 4 deletions
|
@ -60,13 +60,16 @@ void cleanup_taskbar()
|
|||
{
|
||||
Panel *panel;
|
||||
Taskbar *tskbar;
|
||||
int i, j;
|
||||
int i, j, k;
|
||||
|
||||
if (win_to_task_table) g_hash_table_foreach(win_to_task_table, taskbar_remove_task, 0);
|
||||
for (i=0 ; i < nb_panel ; i++) {
|
||||
panel = &panel1[i];
|
||||
for (j=0 ; j < panel->nb_desktop ; j++) {
|
||||
tskbar = &panel->taskbar[j];
|
||||
for (k=0; k<TASKBAR_STATE_COUNT; ++k) {
|
||||
if (tskbar->state_pix[k]) XFreePixmap(server.dsp, tskbar->state_pix[k]);
|
||||
}
|
||||
free_area (&tskbar->area);
|
||||
// remove taskbar from the panel
|
||||
panel->area.list = g_slist_remove(panel->area.list, tskbar);
|
||||
|
|
|
@ -22,7 +22,6 @@ typedef struct {
|
|||
Area area;
|
||||
|
||||
int desktop;
|
||||
int current_state;
|
||||
Pixmap state_pix[TASKBAR_STATE_COUNT];
|
||||
|
||||
// task parameters
|
||||
|
@ -34,8 +33,6 @@ typedef struct {
|
|||
//always start with area
|
||||
Area area;
|
||||
Background* background[TASKBAR_STATE_COUNT];
|
||||
//Background* bg;
|
||||
//Background* bg_active;
|
||||
} Global_taskbar;
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue