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
9d1536a6
Commit
9d1536a6
authored
Apr 27, 2007
by
Jan Djärv
Browse files
(xg_update_menubar, create_menus): Create empty
submenu for menu bar items.
parent
7d9e0340
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 @
9d1536a6
2007-04-27 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
* gtkutil.c (xg_update_menubar, create_menus): Create empty
submenu for menu bar items.
2007-04-24 Chong Yidong <cyd@stupidchicken.com>
* xdisp.c (redisplay_window): Use BEG_UNCHANGED and END_UNCHANGED
...
...
src/gtkutil.c
View file @
9d1536a6
...
...
@@ -2192,7 +2192,9 @@ create_menus (data, f, select_cb, deactivate_cb, highlight_cb,
cl_data
,
&
group
);
if
(
item
->
contents
)
/* Create a possibly empty submenu for menu bar items, since some
themes don't highlight items correctly without it. */
if
(
item
->
contents
||
menu_bar_p
)
{
GtkWidget
*
submenu
=
create_menus
(
item
->
contents
,
f
,
...
...
@@ -2479,8 +2481,14 @@ xg_update_menubar (menubar, f, list, iter, pos, val,
cl_data
,
&
group
);
/* Create a possibly empty submenu for menu bar items, since some
themes don't highlight items correctly without it. */
GtkWidget
*
submenu
=
create_menus
(
NULL
,
f
,
select_cb
,
NULL
,
highlight_cb
,
0
,
0
,
0
,
0
,
cl_data
,
0
);
gtk_widget_set_name
(
w
,
MENU_ITEM_NAME
);
gtk_menu_shell_insert
(
GTK_MENU_SHELL
(
menubar
),
w
,
pos
);
gtk_menu_item_set_submenu
(
GTK_MENU_ITEM
(
w
),
submenu
);
g_list_free
(
*
list
);
*
list
=
iter
=
gtk_container_get_children
(
GTK_CONTAINER
(
menubar
));
...
...
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