mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-24 19:22:11 +01:00
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:
parent
bb7c56dff8
commit
0015668d39
@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
|
||||||
import gobject
|
from gi.repository import GLib
|
||||||
import time
|
import time
|
||||||
|
|
||||||
import dbus
|
import dbus
|
||||||
@ -236,7 +236,7 @@ class TestService(dbus.service.Object):
|
|||||||
def return_from_async_wait():
|
def return_from_async_wait():
|
||||||
return_cb()
|
return_cb()
|
||||||
return False
|
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["foo"] = "a frobbed string"
|
||||||
obj.frob_props["PropertyThatWillBeInvalidated"] = "InitialValue"
|
obj.frob_props["PropertyThatWillBeInvalidated"] = "InitialValue"
|
||||||
|
|
||||||
mainloop = gobject.MainLoop()
|
mainloop = GLib.MainLoop()
|
||||||
mainloop.run()
|
mainloop.run()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user