changeset 30215:4e401f4a55aa

(menu_highlight_callback): Use kbd_buffer_store_help_event instead of setting up and input_event structure manually.
author Gerd Moellmann <gerd@gnu.org>
date Fri, 14 Jul 2000 13:56:26 +0000
parents 793f5a4e610b
children 394c884dc496
files src/xmenu.c
diffstat 1 files changed, 1 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/xmenu.c	Fri Jul 14 13:56:09 2000 +0000
+++ b/src/xmenu.c	Fri Jul 14 13:56:26 2000 +0000
@@ -1196,7 +1196,6 @@
   widget_value *wv = (widget_value *) call_data;
   struct frame *f;
   Lisp_Object frame, help;
-  struct input_event buf;
 
   /* Determine the frame for the help event.  */
   f = menubar_id_to_frame (id);
@@ -1221,10 +1220,7 @@
 
   /* Store the help event.  */
   help = wv && wv->help ? build_string (wv->help) : Qnil;
-  buf.kind = HELP_EVENT;
-  buf.frame_or_window = frame;
-  buf.arg = help;
-  kbd_buffer_store_event (&buf);
+  kbd_buffer_store_help_event (frame, help);
 }
 
 /* This callback is called from the menu bar pulldown menu