projects
/
fso-scripts.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d8fcc5
)
fso-make-call.py: add the mainloop specifier
author
Antonio Ospite <ospite@studenti.unina.it>
Wed, 15 Sep 2010 11:13:57 +0000
(13:13 +0200)
committer
Antonio Ospite <ospite@studenti.unina.it>
Wed, 15 Sep 2010 11:13:57 +0000
(13:13 +0200)
In order to have signals working we need to set the DBusGMainLoop.
fso-make-call.py
patch
|
blob
|
history
diff --git
a/fso-make-call.py
b/fso-make-call.py
index
aec370e
..
0dc936e
100755
(executable)
--- a/
fso-make-call.py
+++ b/
fso-make-call.py
@@
-4,6
+4,9
@@
import sys
import time
import dbus
+from dbus.mainloop.glib import DBusGMainLoop
+DBusGMainLoop(set_as_default=True)
+
def onCallStatus(sender = "", *args, **kwargs):
status = str(args[0])
if (args[1].has_key("peer")):