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
1d1c1567
Commit
1d1c1567
authored
May 24, 1995
by
Karl Heuer
Browse files
(set_frame_menubar): Set menubar_height field.
parent
00983aba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
src/xmenu.c
src/xmenu.c
+19
-0
No files found.
src/xmenu.c
View file @
1d1c1567
...
...
@@ -67,6 +67,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#include <X11/CoreP.h>
#include <X11/StringDefs.h>
#include <X11/Shell.h>
#include <X11/Xaw/Paned.h>
#include "../lwlib/lwlib.h"
#else
/* not USE_X_TOOLKIT */
#include "../oldXMenu/XMenu.h"
...
...
@@ -1555,6 +1556,24 @@ set_frame_menubar (f, first_time)
popup_deactivate_callback
);
f
->
display
.
x
->
menubar_widget
=
menubar_widget
;
}
{
int
menubar_size
=
(
f
->
display
.
x
->
menubar_widget
?
(
f
->
display
.
x
->
menubar_widget
->
core
.
height
+
f
->
display
.
x
->
menubar_widget
->
core
.
border_width
)
:
0
);
if
(
FRAME_EXTERNAL_MENU_BAR
(
f
))
{
Dimension
ibw
=
0
;
XtVaGetValues
(
f
->
display
.
x
->
column_widget
,
XtNinternalBorderWidth
,
&
ibw
,
NULL
);
menubar_size
+=
ibw
;
}
f
->
display
.
x
->
menubar_height
=
menubar_size
;
}
free_menubar_widget_value_tree
(
first_wv
);
...
...
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