# HG changeset patch # User Paul Reilly # Date 780365526 0 # Node ID 3c36c72db2bb7e4de1c81f315e50d3be02738b8f # Parent d69f3bc2e845bbe8b9a574c5dc4523f076331398 *** empty log message *** diff -r d69f3bc2e845 -r 3c36c72db2bb lwlib/xlwmenu.c --- a/lwlib/xlwmenu.c Fri Sep 23 22:49:47 1994 +0000 +++ b/lwlib/xlwmenu.c Sat Sep 24 00:12:06 1994 +0000 @@ -14,7 +14,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License -along with GNU Emacs; see the file COPYING. If not, write to +Alongalong with GNU Emacs; see the file COPYING. If not, write to the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ /* Created by devin@lucid.com */ @@ -24,6 +24,7 @@ #include #include #include +#include #include #include #include @@ -1383,8 +1384,8 @@ { mw->menu.popped_up = False; XtUngrabPointer ((Widget)mw, ev->xmotion.time); - if (XtIsShell (XtParent (mw))) - XtPopdown (XtParent (mw)); + if (XtIsShell (XtParent ((Widget) mw))) + XtPopdown (XtParent ((Widget) mw)); else { XtRemoveGrab ((Widget) mw); @@ -1414,7 +1415,7 @@ XtCallCallbackList ((Widget)mw, mw->menu.open, NULL); - if (XtIsShell (XtParent (mw))) + if (XtIsShell (XtParent ((Widget)mw))) size_menu (mw, 0); w = mw->menu.windows [0].width; @@ -1432,11 +1433,11 @@ y = HeightOfScreen (screen) - h - 2 * borderwidth; mw->menu.popped_up = True; - if (XtIsShell (XtParent (mw))) + if (XtIsShell (XtParent ((Widget)mw))) { - XtConfigureWidget (XtParent (mw), x, y, w, h, - XtParent (mw)->core.border_width); - XtPopup (XtParent (mw), XtGrabExclusive); + XtConfigureWidget (XtParent ((Widget)mw), x, y, w, h, + XtParent ((Widget)mw)->core.border_width); + XtPopup (XtParent ((Widget)mw), XtGrabExclusive); display_menu (mw, 0, False, NULL, NULL, NULL, NULL, NULL); mw->menu.windows [0].x = x + borderwidth; mw->menu.windows [0].y = y + borderwidth;