temp fix (this code just won't die...)

we need to actually add menu API to handle removing items on a realized menu (rather than mucking with the internals).
but this is at least better than before


SVN revision: 12720
This commit is contained in:
rephorm 2005-01-04 01:49:21 +00:00 committed by rephorm
parent 1a48844b7f
commit 370cbce9e3
1 changed files with 2 additions and 12 deletions

View File

@ -301,6 +301,8 @@ _e_int_menus_desktops_pre_cb(void *data, E_Menu *m)
e_object_free(E_OBJECT(mi));
}
}
evas_list_free(m->items);
m->items = NULL;
mi = e_menu_item_new(m);
e_menu_item_label_set(mi, "Add New Desktop");
@ -388,18 +390,6 @@ _e_int_menus_clients_pre_cb(void *data, E_Menu *m)
if (m->realized) return;
/* clear the list */
if (m->items)
{
Evas_List *l;
for (l = m->items; l; l = l->next)
{
E_Menu_Item *mi = l->data;
e_object_free(E_OBJECT(mi));
}
}
root = e_menu_root_get(m);
/* get the current containers clients */
if (root && root->con)