summaryrefslogtreecommitdiff
path: root/examples/client/python/ensure-channel.py
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2011-09-02 10:11:55 +0200
committerXavier Claessens <xclaesse@gmail.com>2011-09-02 10:11:55 +0200
commit83c90bef429392a99e97c077a098b8890a833e51 (patch)
tree3ad0a78cf382abb0fdbd20d964480510f44222a9 /examples/client/python/ensure-channel.py
parent56729b46480a21d43da33bc7dc9e854d9ed3093a (diff)
Do not mix static and dynamic GObject bindings in python examples
Diffstat (limited to 'examples/client/python/ensure-channel.py')
-rwxr-xr-xexamples/client/python/ensure-channel.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/client/python/ensure-channel.py b/examples/client/python/ensure-channel.py
index c480600fe..344b7dbd5 100755
--- a/examples/client/python/ensure-channel.py
+++ b/examples/client/python/ensure-channel.py
@@ -1,8 +1,8 @@
#!/usr/bin/env python
import sys
-import gobject
-gobject.threads_init()
+from gi.repository import GObject
+GObject.threads_init()
from gi.repository import TelepathyGLib
@@ -61,7 +61,7 @@ if __name__ == '__main__':
# FIXME: for some reason TelepathyGLib.USER_ACTION_TIME_CURRENT_TIME is
# not defined (bgo #639206)
- main_loop = gobject.MainLoop()
+ main_loop = GObject.MainLoop()
request.ensure_channel_async("", None, ensure_channel_cb, main_loop)