--- gnome-menus/libmenu/menu-monitor.c	24 Aug 2005 14:53:25 -0000	1.7
+++ gnome-menus/libmenu/menu-monitor.c	7 Sep 2005 17:23:22 -0000
@@ -191,7 +191,10 @@ queue_fam_event (MenuMonitor *monitor,
     {
       event = tmp->data;
 
-      if (strcmp (event->path, path) == 0)
+      if ((strcmp (event->path, path) == 0) && (
+	((fam_event->code == FAMChanged) && (event->event == MENU_MONITOR_EVENT_CHANGED))
+       || ((fam_event->code == FAMCreated) && (event->event == MENU_MONITOR_EVENT_CREATED))
+       || ((fam_event->code == FAMDeleted) && (event->event == MENU_MONITOR_EVENT_DELETED))))
 	break;
 
       event = NULL;
