diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2012-05-02 10:39:29 +0100 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2012-05-02 10:39:29 +0100 |
commit | ba3f3ff253982c9ad3b5a33df5b120e5692c9d29 (patch) | |
tree | e0c2e456cdccb30bfa594a83b4d8797bf925995f /test | |
parent | f264e37f13720898d941f3636f77c489a9a1d845 (diff) |
Rename gobject_service (PyGI version) to gi_service
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=48904
Diffstat (limited to 'test')
-rwxr-xr-x | test/test-service.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/test-service.py b/test/test-service.py index a4448f6..a7bf469 100755 --- a/test/test-service.py +++ b/test/test-service.py @@ -39,8 +39,8 @@ import dbus.service import dbus.glib import random -from dbus.gobject_service import ExportedGObject -from gi.repository import GObject as gobject +from dbus.gi_service import ExportedGObject +from gi.repository import GObject from dbus._compat import is_py2, is_py3 @@ -263,7 +263,7 @@ class TestObject(dbus.service.Object, TestInterface): def AsynchronousMethod(self, async, fail, variant, return_cb, error_cb): try: if async: - gobject.timeout_add(500, self.AsynchronousMethod, False, fail, + GObject.timeout_add(500, self.AsynchronousMethod, False, fail, variant, return_cb, error_cb) return else: @@ -310,7 +310,7 @@ class TestObject(dbus.service.Object, TestInterface): def return_from_async_wait(): return_cb() return False - gobject.timeout_add(500, return_from_async_wait) + GObject.timeout_add(500, return_from_async_wait) @dbus.service.method(IFACE, in_signature='', out_signature='') def RaiseValueError(self): @@ -356,7 +356,7 @@ def main(): logger.info('making Fallback') fallback_object = Fallback(session_bus) logger.info('creating mainloop') - loop = gobject.MainLoop() + loop = GObject.MainLoop() logger.info('running') loop.run() logger.info('done') |