From 181f3514bbe2976cef66d7f0bd33ac7288d05b5f Mon Sep 17 00:00:00 2001 From: michael Date: Thu, 26 May 2005 16:04:20 +0000 Subject: [PATCH] 2005-05-26 Michael Meeks * 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 | 5 +++++ cspi/bonobo/cspi-bonobo-listener.c | 10 ++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index a0594538..50b7a491 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-05-26 Michael Meeks + + * cspi/bonobo/cspi-bonobo-listener.c + (cspi_event_list_remove_by_cb): actually filter by callback. + 2005-05-25 Bill Haneman * registryd/registry.c (remove_listener_cb): diff --git a/cspi/bonobo/cspi-bonobo-listener.c b/cspi/bonobo/cspi-bonobo-listener.c index c3c088f4..2992b4ab 100644 --- a/cspi/bonobo/cspi-bonobo-listener.c +++ b/cspi/bonobo/cspi-bonobo-listener.c @@ -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; -- 2.34.1