From c8934d9de9dfb3b63b31a09cad985dbcc02988da Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20Dj=C3=A4rv?= Date: Thu, 3 Feb 2005 19:50:08 +0000 Subject: [PATCH] * 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. --- src/gtkutil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5