2005-05-26 Michael Meeks <michael.meeks@novell.com>
authormichael <michael@e2bd861d-eb25-0410-b326-f6ed22b6b98c>
Thu, 26 May 2005 16:04:20 +0000 (16:04 +0000)
committermichael <michael@e2bd861d-eb25-0410-b326-f6ed22b6b98c>
Thu, 26 May 2005 16:04:20 +0000 (16:04 +0000)
* cspi/bonobo/cspi-bonobo-listener.c
(cspi_event_list_remove_by_cb): actually filter by callback.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@755 e2bd861d-eb25-0410-b326-f6ed22b6b98c

ChangeLog
cspi/bonobo/cspi-bonobo-listener.c

index a059453..50b7a49 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-05-26  Michael Meeks  <michael.meeks@novell.com>
+
+       * cspi/bonobo/cspi-bonobo-listener.c
+       (cspi_event_list_remove_by_cb): actually filter by callback.
+
 2005-05-25  Bill Haneman <bill.haneman@sun.com>
 
        * registryd/registry.c (remove_listener_cb):
index c3c088f..2992b4a 100644 (file)
@@ -71,10 +71,12 @@ cspi_event_list_remove_by_cb (GList *list, gpointer callback)
     {
       EventHandler *eh = l->data;
       next = l->next;
-      
-      list = g_list_delete_link (list, l);
-      
-      cspi_event_handler_free (eh);
+
+      if (eh->method == callback)
+      {
+        list = g_list_delete_link (list, l);
+       cspi_event_handler_free (eh);
+      }
     }
 
   return list;