changeset 59913:b3664fca53d1

* 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.
author Jan Djärv <jan.h.d@swipnet.se>
date Thu, 03 Feb 2005 19:50:08 +0000
parents ef2f9fc4fd42
children fdb9ecc63088
files src/gtkutil.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);