panel_items : fixed hide/unhide of baterry and systray

git-svn-id: http://tint2.googlecode.com/svn/trunk@560 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
thilor77
2010-09-22 19:33:10 +00:00
parent f8e31774b6
commit b4fb372f52
5 changed files with 37 additions and 18 deletions

View File

@@ -107,9 +107,9 @@ void init_systray_panel(void *p)
count++;
}
if (count == 0)
systray.area.on_screen = 0;
hide(&systray.area);
else
systray.area.on_screen = 1;
show(&systray.area);
refresh_systray = 0;
}
@@ -426,7 +426,7 @@ gboolean add_icon(Window id)
traywin->damage = 0;
if (systray.area.on_screen == 0)
systray.area.on_screen = 1;
show(&systray.area);
if (systray.sort == 3)
systray.list_icons = g_slist_prepend(systray.list_icons, traywin);
@@ -488,10 +488,9 @@ void remove_icon(TrayWindow *traywin)
if (!((TrayWindow*)l->data)->hide)
count++;
}
if (count == 0) {
systray.area.on_screen = 0;
systray.area.width = 0;
}
if (count == 0)
hide(&systray.area);
// changed in systray
systray.area.resize = 1;
panel_refresh = 1;