Bugfix: unselect item when menu is closed
authorThomas Leonard <talex5@gmail.com>
Wed, 7 Apr 2010 14:44:57 +0000 (7 15:44 +0100)
committerThomas Leonard <talex5@gmail.com>
Wed, 7 Apr 2010 14:44:57 +0000 (7 15:44 +0100)
We used to listen for "unmap_event", but this is no longer emitted in recent
versions of GTK. Switched to using "selection-done" instead.

Closes #2925212 (reported by Barry Kauler).

ROX-Filer/src/menu.c

index 611918d..bf4bae3 100644 (file)
@@ -322,9 +322,9 @@ gboolean ensure_filer_menu(void)
        GET_SSMENU_ITEM(item, "filer", "Window", "New Window");
        filer_new_window = GTK_BIN(item)->child;
 
-       g_signal_connect(filer_menu, "unmap_event",
+       g_signal_connect(filer_menu, "selection-done",
                        G_CALLBACK(menu_closed), NULL);
-       g_signal_connect(filer_file_menu, "unmap_event",
+       g_signal_connect(filer_file_menu, "selection-done",
                        G_CALLBACK(menu_closed), NULL);
 
        g_signal_connect(filer_keys, "accel_changed",