Tweak to michael's patch, makes listener deregistration rules match
authorbillh <billh@e2bd861d-eb25-0410-b326-f6ed22b6b98c>
Wed, 25 May 2005 11:28:44 +0000 (11:28 +0000)
committerbillh <billh@e2bd861d-eb25-0410-b326-f6ed22b6b98c>
Wed, 25 May 2005 11:28:44 +0000 (11:28 +0000)
event emission filter rules.

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

ChangeLog
registryd/registry.c

index 9dce19e..a059453 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-05-25  Bill Haneman <bill.haneman@sun.com>
+
+       * registryd/registry.c (remove_listener_cb):
+       Make deregistration filter rules match the event emission rules.
+
 2005-05-25  Michael Meeks  <michael.meeks@novell.com>
 
        * registryd/registry.c (remove_listener_cb),
index 39855bb..0c8218f 100644 (file)
@@ -438,7 +438,8 @@ remove_listener_cb (GList * const *list, gpointer user_data)
 
   CORBA_exception_init (&ev);
 
-  if (cl->remove_all || (cl->etype.minor == ls->event_type_quark &&
+  if (cl->remove_all || (((cl->etype.minor == ls->event_type_quark) || 
+                        (cl->etype.major == ls->event_type_quark)) &&
                         cl->etype.type_cat == ls->event_type_cat ) )
   {
     if (CORBA_Object_is_equivalent (ls->listener, cl->listener, &ev))