Enlightenment CVS committal
Author : rephorm
Project : e17
Module : apps/e
Dir : e17/apps/e/src/bin
Modified Files:
e_int_menus.c
Log Message:
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
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_int_menus.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -3 -r1.16 -r1.17
--- e_int_menus.c 3 Jan 2005 22:04:04 -0000 1.16
+++ e_int_menus.c 4 Jan 2005 01:49:21 -0000 1.17
@@ -301,6 +301,8 @@
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 @@
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)
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs