Check that 'alt' actually has something in the list before going through it.

Basically did this to remove the extra separator that was getting added even if
'alt' did not contain anything in the list.


SVN revision: 25237
This commit is contained in:
Christopher Michael 2006-08-31 05:01:48 +00:00
parent d63c007828
commit 40aa3ecdce
1 changed files with 10 additions and 7 deletions

View File

@ -749,15 +749,18 @@ _e_int_menus_clients_pre_cb(void *data, E_Menu *m)
mi = e_menu_item_new(m);
e_menu_item_separator_set(mi, 1);
for (l = alt; l; l = l->next)
if (evas_list_count(alt) > 0)
{
E_Border *bd = l->data;
_e_int_menus_clients_item_create(bd, m);
for (l = alt; l; l = l->next)
{
E_Border *bd = l->data;
_e_int_menus_clients_item_create(bd, m);
}
mi = e_menu_item_new(m);
e_menu_item_separator_set(mi, 1);
}
mi = e_menu_item_new(m);
e_menu_item_separator_set(mi, 1);
mi = e_menu_item_new(m);
e_menu_item_label_set(mi, _("Cleanup Windows"));
s = e_path_find(path_icons, "default.edj");