# HG changeset patch # User Jan Dj¸«£rv # Date 1107460208 0 # Node ID b3664fca53d17ae1827ab59df4e86dd92f076d05 # Parent ef2f9fc4fd42f735aa95aed91caa4b67cc534017 * 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 -r ef2f9fc4fd42 -r b3664fca53d1 src/gtkutil.c --- a/src/gtkutil.c Thu Feb 03 19:49:43 2005 +0000 +++ b/src/gtkutil.c Thu Feb 03 19:50:08 2005 +0000 @@ -1905,7 +1905,7 @@ 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);