summaryrefslogtreecommitdiffstats
path: root/python/dbus.py
diff options
context:
space:
mode:
authorSeth Nickell <seth@gnome.org>2004-05-28 02:16:11 +0000
committerSeth Nickell <seth@gnome.org>2004-05-28 02:16:11 +0000
commit9e262d565e9c3f4928170922f86e05356cc26ddd (patch)
tree0a034e1fb68f44ca0c5861d1cedeafb36753d42e /python/dbus.py
parentaa54f14c05569189838e430a45c7ccac5ab20d10 (diff)
2004-05-27 Seth Nickell <seth@gnome.org>
* python/dbus.py: * python/dbus_bindings.pyx.in: Fix failure to notify that a signal was not handled, resulted in hung functions.
Diffstat (limited to 'python/dbus.py')
-rw-r--r--python/dbus.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/python/dbus.py b/python/dbus.py
index 3a997da1..883d9e66 100644
--- a/python/dbus.py
+++ b/python/dbus.py
@@ -53,6 +53,8 @@ class Bus:
TYPE_SYSTEM = dbus_bindings.BUS_SYSTEM
TYPE_ACTIVATION = dbus_bindings.BUS_ACTIVATION
+ """bus_type=[Bus.TYPE_SESSION | Bus.TYPE_SYSTEM | Bus.TYPE_ACTIVATION]
+ """
def __init__(self, bus_type=TYPE_SESSION, glib_mainloop=True):
self._connection = dbus_bindings.bus_get(bus_type)
@@ -100,7 +102,7 @@ class Bus:
def _signal_func(self, connection, message):
if (message.get_type() != dbus_bindings.MESSAGE_TYPE_SIGNAL):
- return
+ return dbus_bindings.HANDLER_RESULT_NOT_YET_HANDLED
interface = message.get_interface()
service = message.get_sender()
@@ -114,7 +116,7 @@ class Bus:
args = [interface, member, service, path, message]
for receiver in receivers:
receiver(*args)
-
+
class RemoteObject:
"""A remote Object.