From: Jan Djärv Date: Thu, 3 Feb 2005 19:50:08 +0000 (+0000) Subject: * gtkutil.c (create_menus): Connect selection-done event instead of X-Git-Tag: ttn-vms-21-2-B4~2424 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c8934d9de9dfb3b63b31a09cad985dbcc02988da;p=emacs.git * gtkutil.c (create_menus): Connect selection-done event instead of the deactivate event to deactivate_cb. This will make the last leave event come before the call to deactivate_cb, so the leave event does not make sit-for exit after a menu selection. --- diff --git a/src/gtkutil.c b/src/gtkutil.c index aecc4e2eaea..6bf0c25f350 100644 --- a/src/gtkutil.c +++ b/src/gtkutil.c @@ -1905,7 +1905,7 @@ create_menus (data, f, select_cb, deactivate_cb, highlight_cb, if (deactivate_cb) g_signal_connect (G_OBJECT (wmenu), - "deactivate", deactivate_cb, 0); + "selection-done", deactivate_cb, 0); g_signal_connect (G_OBJECT (wmenu), "grab-notify", G_CALLBACK (menu_grab_callback), 0);