2 ===================================================================
3 RCS file: /cvs/dbus/dbus/python/dbus.py,v
4 retrieving revision 1.2
6 --- dbus.py 30 Sep 2003 02:40:49 -0000 1.2
7 +++ dbus.py 24 Nov 2003 20:20:35 -0000
9 self._match_rule_to_receivers[match_rule].append(receiver)
11 dbus_bindings.bus_add_match(self._connection, match_rule)
14 + def remove_signal_receiver(self, receiver, interface=None, service=None, path=None):
15 + match_rule = self._get_match_rule(interface, service, path)
17 + if self._match_rule_to_receivers.has_key(match_rule):
18 + if self._match_rule_to_receivers[match_rule].__contains__(receiver):
19 + self._match_rule_to_receivers[match_rule].remove(receiver)
20 + dbus_bindings.bus_remove_match(self._connection, match_rule)
22 def get_connection(self):
23 """Get the dbus_bindings.Connection object associated with this Bus"""
24 return self._connection
27 if (self._match_rule_to_receivers.has_key(match_rule)):
28 receivers = self._match_rule_to_receivers[match_rule]
29 - args = [interface, member, service, path]
30 + args = [interface, member, service, path, message]
31 for receiver in receivers: