[glib/glib-2-34] gdbus-testserver: port to pygi
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/glib-2-34] gdbus-testserver: port to pygi
- Date: Tue, 16 Oct 2012 01:50:57 +0000 (UTC)
commit 0015668d3950ac86a48aac0e2e2b423d80360295
Author: Marc-Antoine Perennou <Marc-Antoine Perennou com>
Date: Sat Oct 6 14:56:36 2012 +0200
gdbus-testserver: port to pygi
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine Perennou com>
https://bugzilla.gnome.org/show_bug.cgi?id=685608
gio/tests/gdbus-testserver.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
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()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]