Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
4cb35c39
Commit
4cb35c39
authored
Feb 22, 1995
by
Karl Heuer
Browse files
(menubar_selection_callback): frame_or_window field of a menu-bar event now
includes both the frame and the magic cookie.
parent
b90afe71
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
src/xmenu.c
src/xmenu.c
+8
-8
No files found.
src/xmenu.c
View file @
4cb35c39
...
...
@@ -1104,40 +1104,40 @@ menubar_selection_callback (widget, id, client_data)
}
else
if
(
EQ
(
XVECTOR
(
vector
)
->
contents
[
i
],
Qt
))
{
prefix
=
XVECTOR
(
vector
)
->
contents
[
i
+
MENU_ITEMS_PANE_PREFIX
];
prefix
=
XVECTOR
(
vector
)
->
contents
[
i
+
MENU_ITEMS_PANE_PREFIX
];
i
+=
MENU_ITEMS_PANE_LENGTH
;
}
else
{
entry
=
XVECTOR
(
vector
)
->
contents
[
i
+
MENU_ITEMS_ITEM_VALUE
];
entry
=
XVECTOR
(
vector
)
->
contents
[
i
+
MENU_ITEMS_ITEM_VALUE
];
if
((
int
)
client_data
==
i
)
{
int
j
;
struct
input_event
buf
;
Lisp_Object
frame
;
XSETFRAME
(
frame
,
f
);
buf
.
kind
=
menu_bar_event
;
buf
.
frame_or_window
=
Qmenu_bar
;
buf
.
frame_or_window
=
Fcons
(
frame
,
Qmenu_bar
)
;
kbd_buffer_store_event
(
&
buf
);
for
(
j
=
0
;
j
<
submenu_depth
;
j
++
)
if
(
!
NILP
(
subprefix_stack
[
j
]))
{
buf
.
kind
=
menu_bar_event
;
buf
.
frame_or_window
=
subprefix_stack
[
j
];
buf
.
frame_or_window
=
Fcons
(
frame
,
subprefix_stack
[
j
]
)
;
kbd_buffer_store_event
(
&
buf
);
}
if
(
!
NILP
(
prefix
))
{
buf
.
kind
=
menu_bar_event
;
buf
.
frame_or_window
=
prefix
;
buf
.
frame_or_window
=
Fcons
(
frame
,
prefix
)
;
kbd_buffer_store_event
(
&
buf
);
}
buf
.
kind
=
menu_bar_event
;
buf
.
frame_or_window
=
entry
;
buf
.
frame_or_window
=
Fcons
(
frame
,
entry
)
;
kbd_buffer_store_event
(
&
buf
);
return
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment