X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/bb892cdec70b2f937e6b7f7597c5f1c7f467c9ea..b1dc1905623f3efd80620eaf510b4165e43f5b10:/oldXMenu/Activate.c diff --git a/oldXMenu/Activate.c b/oldXMenu/Activate.c index 2b4257e1ac..8f1b548406 100644 --- a/oldXMenu/Activate.c +++ b/oldXMenu/Activate.c @@ -3,8 +3,7 @@ #include "copyright.h" /* -Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 - Free Software Foundation, Inc. +Copyright (C) 2001-2013 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -79,7 +78,7 @@ along with this program. If not, see . */ * * 3) The application has enabled asynchronous event * queuing mode. In this mode all foreign events - * will be queued up untill XMenuActivate + * will be queued up until XMenuActivate * terminates; at which time they will be * returned to the X event queue. As long as * AEQ mode is enabled any asynchronous event @@ -96,39 +95,33 @@ along with this program. If not, see . */ * */ -#include #include "XMenuInt.h" #include /* For debug, set this to 0 to not grab the keyboard on menu popup */ int x_menu_grab_keyboard = 1; -typedef void (*Wait_func)(); - static Wait_func wait_func; static void* wait_data; void -XMenuActivateSetWaitFunction (func, data) - Wait_func func; - void *data; +XMenuActivateSetWaitFunction (Wait_func func, void *data) { wait_func = func; wait_data = data; } int -XMenuActivate(display, menu, p_num, s_num, x_pos, y_pos, event_mask, data, - help_callback) - register Display *display; /* Display to put menu on. */ - register XMenu *menu; /* Menu to activate. */ - int *p_num; /* Pane number selected. */ - int *s_num; /* Selection number selected. */ - int x_pos; /* X coordinate of menu position. */ - int y_pos; /* Y coordinate of menu position. */ - unsigned int event_mask; /* Mouse button event mask. */ - char **data; /* Pointer to return data value. */ - void (* help_callback) (); /* Help callback. */ +XMenuActivate( + register Display *display, /* Display to put menu on. */ + register XMenu *menu, /* Menu to activate. */ + int *p_num, /* Pane number selected. */ + int *s_num, /* Selection number selected. */ + int x_pos, /* X coordinate of menu position. */ + int y_pos, /* Y coordinate of menu position. */ + unsigned int event_mask, /* Mouse button event mask. */ + char **data, /* Pointer to return data value. */ + void (*help_callback) (char const *, int, int)) /* Help callback. */ { int status; /* X routine call status. */ int orig_x; /* Upper left menu origin X coord. */ @@ -612,6 +605,3 @@ XMenuActivate(display, menu, p_num, s_num, x_pos, y_pos, event_mask, data, return(ret_val); } - -/* arch-tag: 6b90b578-ecea-4328-b460-a0c96963f872 - (do not change this comment) */