Enlightenment CVS committal

Author  : kwo
Project : e16
Module  : e

Dir     : e16/e/src


Modified Files:
        E.h menus.c 


Log Message:
Properly withdraw menus when closing, cleanups.
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/E.h,v
retrieving revision 1.354
retrieving revision 1.355
diff -u -3 -r1.354 -r1.355
--- E.h 31 Jan 2005 18:52:07 -0000      1.354
+++ E.h 31 Jan 2005 22:58:12 -0000      1.355
@@ -1980,7 +1980,6 @@
 void                MenusHide(void);
 void                MenusShowNamed(const char *name);
 void                MenusDestroyLoaded(void);
-void                MenusHideByWindow(Window win);
 int                 MenusEventKeyPress(XEvent * ev);
 int                 MenusEventMouseDown(XEvent * ev);
 int                 MenusEventMouseUp(XEvent * ev);
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/menus.c,v
retrieving revision 1.162
retrieving revision 1.163
diff -u -3 -r1.162 -r1.163
--- menus.c     25 Jan 2005 21:57:39 -0000      1.162
+++ menus.c     31 Jan 2005 22:58:16 -0000      1.163
@@ -170,7 +170,10 @@
 MenuHide(Menu * m)
 {
    if (m->win)
-      EUnmapWindow(disp, m->win);
+     {
+       EUnmapWindow(disp, m->win);
+       EReparentWindow(disp, m->win, VRoot.win, 0, 0);
+     }
 
    MenuActivateItem(m, NULL);
 
@@ -1066,6 +1069,7 @@
    while (found_one);
 }
 
+#if 0                          /* Unused */
 void
 MenusHideByWindow(Window win)
 {
@@ -1087,6 +1091,7 @@
        MenuHideMasker();
      }
 }
+#endif
 
 /*
  * Internal menus




-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to