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
ccc1cac0
Commit
ccc1cac0
authored
Jul 26, 1997
by
Richard M. Stallman
Browse files
(display_menu): If an item is disabled,
don't display its submenu (if any).
parent
7cf45b04
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
lwlib/xlwmenu.c
lwlib/xlwmenu.c
+11
-2
No files found.
lwlib/xlwmenu.c
View file @
ccc1cac0
...
...
@@ -644,6 +644,9 @@ display_menu (mw, level, just_compute_p, highlighted_pos, hit, hit_return,
int
horizontal_p
=
mw
->
menu
.
horizontal
&&
(
level
==
0
);
int
highlighted_p
;
int
just_compute_this_one_p
;
/* This is set nonzero if the element containing HIGHLIGHTED_POS
is disabled, so that we do not return any subsequent element either. */
int
no_return
=
0
;
if
(
level
>=
mw
->
menu
.
old_depth
)
abort
();
...
...
@@ -688,8 +691,14 @@ display_menu (mw, level, just_compute_p, highlighted_pos, hit, hit_return,
if
(
hit
&&
!*
hit_return
&&
(
horizontal_p
?
hit
->
x
<
where
.
x
:
hit
->
y
<
where
.
y
)
&&
!
all_dashes_p
(
val
->
name
))
*
hit_return
=
val
;
&&
!
all_dashes_p
(
val
->
name
)
&&
!
no_return
)
{
if
(
val
->
enabled
)
*
hit_return
=
val
;
else
no_return
=
1
;
}
if
(
horizontal_p
)
where
.
y
=
0
;
...
...
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