Mercurial > emacs
changeset 82269:52d28c9f374b
(xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
add comment explaining why.
author | Jan Djärv <jan.h.d@swipnet.se> |
---|---|
date | Sat, 04 Aug 2007 09:48:27 +0000 |
parents | c1afebeec697 |
children | cedad56cfd8c |
files | src/gtkutil.c |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gtkutil.c Sat Aug 04 04:44:00 2007 +0000 +++ b/src/gtkutil.c Sat Aug 04 09:48:27 2007 +0000 @@ -3372,8 +3372,16 @@ key = AREF (f->tool_bar_items, idx + TOOL_BAR_ITEM_KEY); XSETFRAME (frame, f); + + /* We generate two events here. The first one is to set the prefix + to `(tool_bar)', see keyboard.c. */ event.kind = TOOL_BAR_EVENT; event.frame_or_window = frame; + event.arg = frame; + kbd_buffer_store_event (&event); + + event.kind = TOOL_BAR_EVENT; + event.frame_or_window = frame; event.arg = key; /* Convert between the modifier bits GDK uses and the modifier bits Emacs uses. This assumes GDK an X masks are the same, which they are when