NetworkManager/examples
Thomas Haller db6f8315e5 python: use gi.require_version() in generate-setting-docs.py and examples
gi now emits a warning when not loading a specific library
version [1]:

  ./generate-setting-docs.py:21: PyGIWarning: NM was imported without specifying a version first. Use gi.require_version(NM, 1.0) before import to ensure that the right version gets loaded.
    from gi.repository import NM, GObject

Seems require_version() is reasonably old to just always use it without
breaking on older versions [2].

[1] Related: https://bugzilla.gnome.org/show_bug.cgi?id=727379
[2] https://git.gnome.org/browse/pygobject/commit/?id=76758efb6579752237a0dc4d56cf9518de6c6e55

(cherry picked from commit 8d1233e67e)
2015-11-11 15:47:13 +01:00
..
C build: extract version macros from "nm-version.h" to new header file "nm-version-macros.h" 2015-09-30 23:35:52 +02:00
dispatcher dispatcher: fix ifcfg-rh example dispatcher script (rh #1160013) 2015-01-27 13:52:16 -05:00
python python: use gi.require_version() in generate-setting-docs.py and examples 2015-11-11 15:47:13 +01:00
ruby examples: update python examples 2014-11-15 09:31:49 -05:00
shell examples: bash: print errors int stderr 2015-03-18 15:08:31 -05:00
Makefile.am examples: add dispatcher example for exclusive wired/wifi 2012-09-20 10:19:11 -05:00