mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-24 05:47:36 +00:00
(Fx_menu_bar_open_internal): Use activate_item signal to open menu.
This commit is contained in:
parent
9cce74cd96
commit
bb08f2900c
1 changed files with 6 additions and 5 deletions
11
src/xmenu.c
11
src/xmenu.c
|
|
@ -1412,11 +1412,12 @@ If FRAME is nil or not given, use the selected frame. */)
|
|||
/* Activate the first menu. */
|
||||
GList *children = gtk_container_get_children (GTK_CONTAINER (menubar));
|
||||
|
||||
gtk_menu_shell_select_item (GTK_MENU_SHELL (menubar),
|
||||
GTK_WIDGET (children->data));
|
||||
|
||||
popup_activated_flag = 1;
|
||||
g_list_free (children);
|
||||
if (children)
|
||||
{
|
||||
g_signal_emit_by_name (children->data, "activate_item");
|
||||
popup_activated_flag = 1;
|
||||
g_list_free (children);
|
||||
}
|
||||
}
|
||||
UNBLOCK_INPUT;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue