systray: we dont want an ugly white box when there's no elements on the systray

SVN revision: 44377
This commit is contained in:
Samuel F. Baggen 2009-12-11 18:00:07 +00:00
parent 8d1cc9b70c
commit a54753e2e4
1 changed files with 5 additions and 0 deletions

View File

@ -188,6 +188,11 @@ _systray_size_apply_do(Instance *inst)
if (w < 1) w = 1;
if (h < 1) h = 1;
if (eina_list_count(inst->icons) == 0)
ecore_x_window_hide(inst->win.base);
else
ecore_x_window_show(inst->win.base);
e_gadcon_client_aspect_set(inst->gcc, w, h);
e_gadcon_client_min_size_set(inst->gcc, w, h);