From: Jan Djärv Date: Tue, 29 Jul 2008 09:25:04 +0000 (+0000) Subject: * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to X-Git-Tag: emacs-pretest-23.0.90~3829 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=32d46135ee55f11a2610745383973c0ed155daac;p=emacs.git * 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. --- diff --git a/src/xmenu.c b/src/xmenu.c index ca0bcdf7d23..c89fe86e3da 100644 --- a/src/xmenu.c +++ b/src/xmenu.c @@ -884,11 +884,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;