]> git.pld-linux.org Git - packages/dbus.git/commitdiff
- fixes python bindings
authorgrzegol <grzegol@pld-linux.org>
Sun, 21 Mar 2004 22:23:42 +0000 (22:23 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    dbus-python-signals-dze.patch -> 1.1

dbus-python-signals-dze.patch [new file with mode: 0644]

diff --git a/dbus-python-signals-dze.patch b/dbus-python-signals-dze.patch
new file mode 100644 (file)
index 0000000..ece4b16
--- /dev/null
@@ -0,0 +1,33 @@
+Index: dbus.py
+===================================================================
+RCS file: /cvs/dbus/dbus/python/dbus.py,v
+retrieving revision 1.2
+diff -u -r1.2 dbus.py
+--- dbus.py    30 Sep 2003 02:40:49 -0000      1.2
++++ dbus.py    24 Nov 2003 20:20:35 -0000
+@@ -75,7 +75,15 @@
+         self._match_rule_to_receivers[match_rule].append(receiver)
+         
+         dbus_bindings.bus_add_match(self._connection, match_rule)
+-        
++
++    def remove_signal_receiver(self, receiver, interface=None, service=None, path=None):
++        match_rule = self._get_match_rule(interface, service, path)
++
++        if self._match_rule_to_receivers.has_key(match_rule):
++            if self._match_rule_to_receivers[match_rule].__contains__(receiver):
++                self._match_rule_to_receivers[match_rule].remove(receiver)
++                dbus_bindings.bus_remove_match(self._connection, match_rule)
++
+     def get_connection(self):
+         """Get the dbus_bindings.Connection object associated with this Bus"""
+         return self._connection
+@@ -103,7 +111,7 @@
+         if (self._match_rule_to_receivers.has_key(match_rule)):
+             receivers = self._match_rule_to_receivers[match_rule]
+-            args = [interface, member, service, path]
++            args = [interface, member, service, path, message]
+             for receiver in receivers:
+                 receiver(*args)
+         
This page took 0.122318 seconds and 4 git commands to generate.