GNOME Bugzilla – Bug 630062
[girepository] Add function to access parameterized types of GList/GSList/GHash
Last modified: 2015-02-07 16:52:40 UTC
Please add support for accessing parameterized types added for bug #581685. Would be good for Java-gnome (We can workaround by overrides but that isn't very pleasant.)
This is already supported, use: type_info = g_arg_info_get_type(arg_info); type_tag = g_type_info_get_tag(type_info); switch (type_tag) { case GI_TYPE_TAG_GSLIST: { param_type_info = g_type_info_get_param_type(type_info, 0); param_type_tag = g_type_info_get_tag(param_type_info); .. element type of GSList .. } } In general, when in doubt look at source code for gjs/seed/pygobject for examples on how to use the girepository api when the documentation is not clear enough.
Thought that was used for arrays only. Thanks for the pointers. Sorry for bugspam.
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]