diff options
author | Colin Walters <walters@verbum.org> | 2014-07-28 17:54:14 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2014-09-05 18:49:22 -0400 |
commit | bce199127da5368700f3105e0bd19bc338810915 (patch) | |
tree | deb2f4889590a3a575d068c566e79e5a5ff942a5 /tests/scanner/regress.c | |
parent | 9b2effedf08c5842f9ac49896875e5df1f63db4d (diff) | |
download | gobject-introspection-bce199127da5368700f3105e0bd19bc338810915.tar.gz |
scanner: Honor nested types on array declarations as well
We have special code to look at (type GLib.List(utf8)), but (type
GLib.PtrArray(utf8)) didn't work.
This allows NetworkManager to annotate the ActiveConnections property.
https://bugzilla.gnome.org/show_bug.cgi?id=733879
Diffstat (limited to 'tests/scanner/regress.c')
-rw-r--r-- | tests/scanner/regress.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/scanner/regress.c b/tests/scanner/regress.c index 48d9e931..3d3cfdde 100644 --- a/tests/scanner/regress.c +++ b/tests/scanner/regress.c @@ -2021,6 +2021,7 @@ enum PROP_TEST_OBJ_BOXED, PROP_TEST_OBJ_HASH_TABLE, PROP_TEST_OBJ_LIST, + PROP_TEST_OBJ_PPTRARRAY, PROP_TEST_OBJ_HASH_TABLE_OLD, PROP_TEST_OBJ_LIST_OLD, PROP_TEST_OBJ_INT, @@ -2490,6 +2491,17 @@ regress_test_obj_class_init (RegressTestObjClass *klass) pspec); /** + * RegressTestObj:pptrarray: (type GLib.PtrArray(utf8)) (transfer none) + */ + pspec = g_param_spec_pointer ("pptrarray", + "PtrArray property as a pointer", + "Test annotating with GLib.PtrArray", + G_PARAM_READWRITE); + g_object_class_install_property (gobject_class, + PROP_TEST_OBJ_PPTRARRAY, + pspec); + + /** * RegressTestObj:hash-table-old: (type GLib.HashTable<utf8,gint8>) (transfer container) */ pspec = g_param_spec_boxed ("hash-table-old", |