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:

committed by
Jiří Klimeš

parent
8a04ab9135
commit
a20fd994f4
@@ -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()
|
||||
|
||||
|
Reference in New Issue
Block a user