---
examples/python/goi-device-state-ip4config.py | 4 ++--
examples/python/goi-list-connections.py | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/examples/python/goi-device-state-ip4config.py
b/examples/python/goi-device-state-ip4config.py
index 48116dc..be19b99 100755
--- a/examples/python/goi-device-state-ip4config.py
+++ b/examples/python/goi-device-state-ip4config.py
@@ -21,7 +21,7 @@
#
import sys
-from gi.repository import GObject, NetworkManager, NMClient
+from gi.repository import GLib, NetworkManager, NMClient
#
# This example shows how to get NMIP4Config from NMDevice after it is
activated.
@@ -59,6 +59,6 @@ if __name__ == "__main__":
print "---"
dev.connect('state-changed', state_changed)
-main_loop = GObject.MainLoop()
+main_loop = GLib.MainLoop()
main_loop.run()
diff --git a/examples/python/goi-list-connections.py
b/examples/python/goi-list-connections.py
index 1b617ae..b6452d3 100755
--- a/examples/python/goi-list-connections.py
+++ b/examples/python/goi-list-connections.py
@@ -18,7 +18,7 @@
# Copyright (C) 2012 Red Hat, Inc.
#
-from gi.repository import GObject, NetworkManager, NMClient
+from gi.repository import GLib, NetworkManager, NMClient
# This example asks settings service for all configured connections.
# Unfortunately, at this time since libnm-glib still makes heavy use of
@@ -40,7 +40,7 @@ def connections_read(settings):
main_loop.quit()
if __name__ == "__main__":
-main_loop = GObject.MainLoop()
+main_loop = GLib.MainLoop()
settings = NMClient.RemoteSettings.new(None);
# connections are read asynchronously, so we need to wait for the
--
1.8.3.1
___
networkmanager-list mailing list
networkmanager-list@gnome.org
https://mail.gnome.org/mailman/listinfo/networkmanager-list