diff options
author | Paul Reilly <pmr@pajato.com> | 1994-09-24 00:12:06 +0000 |
---|---|---|
committer | Paul Reilly <pmr@pajato.com> | 1994-09-24 00:12:06 +0000 |
commit | cd9da8acfbe7658ca08e3b6ad303f36c67b88830 (patch) | |
tree | f588de0126f7daed2ae328829e2c5f8371f61bda /lwlib/xlwmenu.c | |
parent | 5d9d15ab57ddeefc7b0c38c5fe754af97ff6baa1 (diff) | |
download | emacs-cd9da8acfbe7658ca08e3b6ad303f36c67b88830.tar.gz |
*** empty log message ***
Diffstat (limited to 'lwlib/xlwmenu.c')
-rw-r--r-- | lwlib/xlwmenu.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/lwlib/xlwmenu.c b/lwlib/xlwmenu.c index 7b7c3b3adbf..0df7a477bdd 100644 --- a/lwlib/xlwmenu.c +++ b/lwlib/xlwmenu.c @@ -14,7 +14,7 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 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 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #include <sys/types.h> #include <X11/Xos.h> #include <X11/IntrinsicP.h> +#include <X11/ObjectP.h> #include <X11/StringDefs.h> #include <X11/cursorfont.h> #include <X11/bitmaps/gray> @@ -1383,8 +1384,8 @@ Select (w, ev, params, num_params) { 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 @@ pop_up_menu (mw, event) 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 @@ pop_up_menu (mw, event) 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; |