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
5be883cd
Commit
5be883cd
authored
Oct 08, 2009
by
Jan Djärv
Browse files
gtkutil.c (create_menus): Call gtk_widget_set_size_request for
menu bar with a small width so it doesn't enlarge the frame.
parent
a6b98754
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletion
+14
-1
src/ChangeLog
src/ChangeLog
+5
-0
src/gtkutil.c
src/gtkutil.c
+9
-1
No files found.
src/ChangeLog
View file @
5be883cd
2009-10-08 Jan Djärv <jan.h.d@swipnet.se>
* gtkutil.c (create_menus): Call gtk_widget_set_size_request for
menu bar with a small width so it doesn't enlarge the frame.
2009-10-08 Juanma Barranquero <lekktu@gmail.com>
* fontset.c (Fset_fontset_font): Fix typos in error messages.
...
...
src/gtkutil.c
View file @
5be883cd
...
...
@@ -2194,7 +2194,15 @@ create_menus (data, f, select_cb, deactivate_cb, highlight_cb,
G_CALLBACK
(
menuitem_highlight_callback
),
NULL
);
}
else
wmenu
=
gtk_menu_bar_new
();
else
{
wmenu
=
gtk_menu_bar_new
();
// Set width of menu bar to a small value so it doesn't enlarge
// a small initial frame size. The width will be set to the
// width of the frame later on when it is added to a container.
// height -1: Natural height.
gtk_widget_set_size_request
(
wmenu
,
1
,
-
1
);
}
/* Put cl_data on the top menu for easier access. */
cl_data
=
make_cl_data
(
cl_data
,
f
,
highlight_cb
);
...
...
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