gdbus-testserver: port to pygi

Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>

https://bugzilla.gnome.org/show_bug.cgi?id=685608
This commit is contained in:
Marc-Antoine Perennou 2012-10-06 14:56:36 +02:00 committed by Matthias Clasen
parent bb7c56dff8
commit 0015668d39

View File

@ -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()