]> git.eshelyaron.com Git - emacs.git/commitdiff
* gtkutil.c (create_menus): Connect selection-done event instead of
authorJan Djärv <jan.h.d@swipnet.se>
Thu, 3 Feb 2005 19:50:08 +0000 (19:50 +0000)
committerJan Djärv <jan.h.d@swipnet.se>
Thu, 3 Feb 2005 19:50:08 +0000 (19:50 +0000)
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

index aecc4e2eaea3f4737049dda13452dde2e9f60dbf..6bf0c25f350db27c898a8f606003e9a2f1dff383 100644 (file)
@@ -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);