NetworkManager/examples
Thomas Haller 8d1233e67e 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
2015-11-11 10:56:05 +01:00
..
C build: extract version macros from "nm-version.h" to new header file "nm-version-macros.h" 2015-09-30 23:10:29 +02:00
dispatcher dispatcher: fix ifcfg-rh example dispatcher script (rh #1160013) 2015-01-27 13:51:45 -05:00
lua examples: add flags and mode parsing to show-wifi-networks.[lua|py] 2015-08-24 12:33:04 +02:00
python python: use gi.require_version() in generate-setting-docs.py and examples 2015-11-11 10:56:05 +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:07:59 -05:00
Makefile.am examples: add some examples in Lua using lgi library 2015-01-30 14:41:13 +01:00