examples: use GLib.MainLoop instead of deprecated GObject.MainLoop in python

jklimes:
made the change for new firewall-zone.py example as well.
This commit is contained in:
Jiri Popelka
2013-09-24 12:58:01 +02:00
committed by Jiří Klimeš
parent 8a04ab9135
commit a20fd994f4
3 changed files with 6 additions and 6 deletions

View File

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