diff options
Diffstat (limited to 'examples/python/gi')
| -rwxr-xr-x | examples/python/gi/device-state-ip4config.py | 4 | ||||
| -rwxr-xr-x | examples/python/gi/firewall-zone.py | 4 | ||||
| -rwxr-xr-x | examples/python/gi/list-connections.py | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/examples/python/gi/device-state-ip4config.py b/examples/python/gi/device-state-ip4config.py index 48116dc627..be19b9966d 100755 --- a/examples/python/gi/device-state-ip4config.py +++ b/examples/python/gi/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/gi/firewall-zone.py b/examples/python/gi/firewall-zone.py index 9a9751d1e2..848d4e9269 100755 --- a/examples/python/gi/firewall-zone.py +++ b/examples/python/gi/firewall-zone.py @@ -20,7 +20,7 @@ # import sys -from gi.repository import GObject, NetworkManager, NMClient +from gi.repository import GLib, NetworkManager, NMClient # # This example demonstrates how to get and change firewall zone in a @@ -77,7 +77,7 @@ if __name__ == "__main__": if len(sys.argv) != 2 and len(sys.argv) != 3: sys.exit('Usage: %s <connection name or UUID> [new zone]' % sys.argv[0]) - main_loop = GObject.MainLoop() + main_loop = GLib.MainLoop() settings = NMClient.RemoteSettings.new(None); # Connections are read asynchronously, so we have to wait for the diff --git a/examples/python/gi/list-connections.py b/examples/python/gi/list-connections.py index 1b617ae7b7..b6452d35aa 100755 --- a/examples/python/gi/list-connections.py +++ b/examples/python/gi/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 |
