diff options
author | Jan Djärv <jan.h.d@swipnet.se> | 2007-08-04 09:48:42 +0000 |
---|---|---|
committer | Jan Djärv <jan.h.d@swipnet.se> | 2007-08-04 09:48:42 +0000 |
commit | 991bde0d8c15ed6064ed4064283a2b1e886401d8 (patch) | |
tree | c853eb69cb9bf9027f72513f8da980f4c1599a54 /src/gtkutil.c | |
parent | a45d998e7b89bb8adfa25043683610500a13f8fe (diff) | |
download | emacs-991bde0d8c15ed6064ed4064283a2b1e886401d8.tar.gz |
(xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
add comment explaining why.
Diffstat (limited to 'src/gtkutil.c')
-rw-r--r-- | src/gtkutil.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gtkutil.c b/src/gtkutil.c index f52e68b1230..29aafc013e9 100644 --- a/src/gtkutil.c +++ b/src/gtkutil.c @@ -3372,8 +3372,16 @@ xg_tool_bar_callback (w, client_data) 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 |