Commit 66ed7d9a authored by Gerd Moellmann's avatar Gerd Moellmann
Browse files

(menu_highlight_callback): Use

kbd_buffer_store_help_event instead of setting up and input_event
structure manually.
parent be010514
......@@ -1196,7 +1196,6 @@ menu_highlight_callback (widget, id, call_data)
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 @@ menu_highlight_callback (widget, id, call_data)
/* 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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment