summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMartin Pitt <martinpitt@gnome.org>2013-04-17 07:08:52 +0200
committerDan Winship <danw@gnome.org>2013-04-19 09:43:56 -0400
commit6226fb9b5971c33077ec7828d3b07565ad8a0ee3 (patch)
treed4ad74ad58779b64b62e563d49879e5fd5222492 /examples
parentd5fb24b5b56573f39fd6c562794f58e75b1f351f (diff)
downloadNetworkManager-6226fb9b5971c33077ec7828d3b07565ad8a0ee3.tar.gz
libnm-util: Fix transfer annotations of nm_{connection,setting}_need_secrets()
The various need_secrets() implementation do allocate a fresh GPtrArray, but add static strings to them without dup'ing. Thus callers must _not_ free the array elements, only the array itself. Adjust documentation and annotations accordingly. Also adjust the corresponding comment in the goi-list-connections.py example. https://bugzilla.gnome.org/show_bug.cgi?id=698175
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/python/goi-list-connections.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/examples/python/goi-list-connections.py b/examples/python/goi-list-connections.py
index 10b93b8e89..1b617ae7b7 100755
--- a/examples/python/goi-list-connections.py
+++ b/examples/python/goi-list-connections.py
@@ -23,10 +23,8 @@ from gi.repository import GObject, NetworkManager, NMClient
# This example asks settings service for all configured connections.
# Unfortunately, at this time since libnm-glib still makes heavy use of
# GValue and GHashTable (rather than GVariant), libnm-glib isn't fully
-# usable from GObject Introspection-ready languages. Most functions will
-# work fine, but those involving connection secrets (like
-# nm_remote_connection_get_secrets() or nm_connection_to_hash()) cause assertion
-# failures since pygobject cannot handle complex GHashTable elements.
+# usable from GObject Introspection-ready languages. Most functions will
+# work fine, but e. g. nm_connection_to_hash() causes assertion failures.
main_loop = None