+/* Copyright Massachusetts Institute of Technology 1985 */
+
#include "copyright.h"
-/* $Header: /gd/gnu/cvsroot/emacs/oldXMenu/Post.c,v 1.1 1999/10/03 19:35:10 fx Exp $ */
-/* Copyright Massachusetts Institute of Technology 1985 */
/*
* XMenu: MIT Project Athena, X Window system menu package
* XMenuPost - Maps a given menu to the display and activates
* the menu for user selection. The user is allowed to
* specify the mouse button event mask that will be used
- * to identify a selection request. When a selection
+ * to identify a selection request. When a selection
* request is received (i.e., when the specified mouse
* event occurs) the data returned will be either the
* data associated with the particular selection active
#include "XMenuInt.h"
char *
-XMenuPost(display, menu, p_num, s_num, x_pos, y_pos, event_mask)
- register Display *display; /* Previously opened display. */
- register XMenu *menu; /* Menu to post. */
- register int *p_num; /* Pane number selected. */
- register int *s_num; /* Selection number selected. */
- register int x_pos; /* X coordinate of menu position. */
- register int y_pos; /* Y coordinate of menu position. */
- int event_mask; /* Mouse button event mask. */
+XMenuPost(register Display *display, register XMenu *menu, register int *p_num, register int *s_num, register int x_pos, register int y_pos, int event_mask)
+ /* Previously opened display. */
+ /* Menu to post. */
+ /* Pane number selected. */
+ /* Selection number selected. */
+ /* X coordinate of menu position. */
+ /* Y coordinate of menu position. */
+ /* Mouse button event mask. */
{
register int stat; /* Routine call return status. */
char *data; /* Return data. */
* Make the procedure call.
*/
stat = XMenuActivate(
- display,
+ display,
menu,
- p_num, s_num,
- x_pos, y_pos,
- event_mask,
+ p_num, s_num,
+ x_pos, y_pos,
+ event_mask,
&data, 0);
/*
return(data);
}
}
+