]> git.pld-linux.org Git - packages/dbus.git/blob - dbus-python-signals-dze.patch
- updated to 0.21
[packages/dbus.git] / dbus-python-signals-dze.patch
1 Index: dbus.py
2 ===================================================================
3 RCS file: /cvs/dbus/dbus/python/dbus.py,v
4 retrieving revision 1.2
5 diff -u -r1.2 dbus.py
6 --- dbus.py     30 Sep 2003 02:40:49 -0000      1.2
7 +++ dbus.py     24 Nov 2003 20:20:35 -0000
8 @@ -75,7 +75,15 @@
9          self._match_rule_to_receivers[match_rule].append(receiver)
10          
11          dbus_bindings.bus_add_match(self._connection, match_rule)
12 -        
13 +
14 +    def remove_signal_receiver(self, receiver, interface=None, service=None, path=None):
15 +        match_rule = self._get_match_rule(interface, service, path)
16 +
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)
21 +
22      def get_connection(self):
23          """Get the dbus_bindings.Connection object associated with this Bus"""
24          return self._connection
25 @@ -103,7 +111,7 @@
26  
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:
32                  receiver(*args)
33          
This page took 0.074432 seconds and 3 git commands to generate.