Enlightenment CVS committal Author : kwo Project : e16 Module : e
Dir : e16/e/src Modified Files: E.h menus-misc.c menus.c Log Message: Remove unnecessary window references. =================================================================== RCS file: /cvsroot/enlightenment/e16/e/src/E.h,v retrieving revision 1.394 retrieving revision 1.395 diff -u -3 -r1.394 -r1.395 --- E.h 20 Mar 2005 15:58:51 -0000 1.394 +++ E.h 20 Mar 2005 17:31:12 -0000 1.395 @@ -1969,7 +1969,6 @@ void MenuSetData(Menu * m, char *data); void MenuSetTimestamp(Menu * m, time_t t); const char *MenuGetName(const Menu * m); -Window MenuGetWindow(const Menu * m); const char *MenuGetData(const Menu * m); time_t MenuGetTimestamp(const Menu * m); int MenuIsNotEmpty(const Menu * m); =================================================================== RCS file: /cvsroot/enlightenment/e16/e/src/menus-misc.c,v retrieving revision 1.8 retrieving revision 1.9 diff -u -3 -r1.8 -r1.9 --- menus-misc.c 19 Mar 2005 16:40:06 -0000 1.8 +++ menus-misc.c 20 Mar 2005 17:31:13 -0000 1.9 @@ -335,8 +335,7 @@ if (!m) return; - if (!FindItem - ((char *)m, MenuGetWindow(m), LIST_FINDBY_POINTER, LIST_TYPE_MENU)) + if (!FindItem((char *)m, 0, LIST_FINDBY_POINTER, LIST_TYPE_MENU)) return; /* if the menu is up dont update */ =================================================================== RCS file: /cvsroot/enlightenment/e16/e/src/menus.c,v retrieving revision 1.176 retrieving revision 1.177 diff -u -3 -r1.176 -r1.177 --- menus.c 19 Mar 2005 16:40:06 -0000 1.176 +++ menus.c 20 Mar 2005 17:31:13 -0000 1.177 @@ -474,12 +474,6 @@ return m->name; } -Window -MenuGetWindow(const Menu * m) -{ - return m->win; -} - const char * MenuGetData(const Menu * m) { @@ -545,7 +539,7 @@ Esnprintf(s, sizeof(s), "__.%s", m->name); RemoveTimerEvent(s); - RemoveItem((char *)m, m->win, LIST_FINDBY_POINTER, LIST_TYPE_MENU); + RemoveItem((char *)m, 0, LIST_FINDBY_POINTER, LIST_TYPE_MENU); if (m->name) Efree(m->name); if (m->title) ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs