Mercurial > emacs
changeset 97075:864ac210d576
* xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
open menu.
* gtkutil.c (menu_nav_ended): Remove.
(create_menus): Remove signal connect for menu_nav_ended.
author | Jan Djärv <jan.h.d@swipnet.se> |
---|---|
date | Tue, 29 Jul 2008 09:25:04 +0000 |
parents | 8b6a3348313d |
children | beddfc5fd435 |
files | src/xmenu.c |
diffstat | 1 files changed, 6 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xmenu.c Tue Jul 29 02:07:26 2008 +0000 +++ b/src/xmenu.c Tue Jul 29 09:25:04 2008 +0000 @@ -884,11 +884,12 @@ /* 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;