forked from enlightenment/enlightenment
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:
parent
d63c007828
commit
40aa3ecdce
|
@ -749,15 +749,18 @@ _e_int_menus_clients_pre_cb(void *data, E_Menu *m)
|
||||||
mi = e_menu_item_new(m);
|
mi = e_menu_item_new(m);
|
||||||
e_menu_item_separator_set(mi, 1);
|
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;
|
for (l = alt; l; l = l->next)
|
||||||
|
{
|
||||||
_e_int_menus_clients_item_create(bd, m);
|
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);
|
mi = e_menu_item_new(m);
|
||||||
e_menu_item_label_set(mi, _("Cleanup Windows"));
|
e_menu_item_label_set(mi, _("Cleanup Windows"));
|
||||||
s = e_path_find(path_icons, "default.edj");
|
s = e_path_find(path_icons, "default.edj");
|
||||||
|
|
Loading…
Reference in New Issue