From: Marc-Antoine Perennou Date: Sat, 6 Oct 2012 12:56:36 +0000 (+0200) Subject: gdbus-testserver: port to pygi X-Git-Tag: 2.35.1~13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f923fb330bbf73c3aff8fb2b942e15f8e2246a25;p=platform%2Fupstream%2Fglib.git gdbus-testserver: port to pygi Signed-off-by: Marc-Antoine Perennou https://bugzilla.gnome.org/show_bug.cgi?id=685608 --- diff --git a/gio/tests/gdbus-testserver.py b/gio/tests/gdbus-testserver.py index 645a7e4..8d29fe5 100755 --- a/gio/tests/gdbus-testserver.py +++ b/gio/tests/gdbus-testserver.py @@ -1,6 +1,6 @@ #!/usr/bin/env python -import gobject +from gi.repository import GLib import time import dbus @@ -236,7 +236,7 @@ class TestService(dbus.service.Object): def return_from_async_wait(): return_cb() return False - gobject.timeout_add(msec, return_from_async_wait) + GLib.timeout_add(msec, return_from_async_wait) # ---------------------------------------------------------------------------------------------------- @@ -295,5 +295,5 @@ if __name__ == '__main__': obj.frob_props["foo"] = "a frobbed string" obj.frob_props["PropertyThatWillBeInvalidated"] = "InitialValue" - mainloop = gobject.MainLoop() + mainloop = GLib.MainLoop() mainloop.run()