After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 628812 - [girepository] Add c:type for <array> and <type> tags
[girepository] Add c:type for <array> and <type> tags
Status: RESOLVED OBSOLETE
Product: gobject-introspection
Classification: Platform
Component: libgirepository
unspecified
Other Linux
: High enhancement
: ---
Assigned To: gobject-introspection Maintainer(s)
gobject-introspection Maintainer(s)
Depends on:
Blocks: 628240
 
 
Reported: 2010-09-05 13:32 UTC by Serkan Kaba
Modified: 2018-02-08 11:58 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to add c:type attribute into typelib (1.82 KB, patch)
2011-03-14 19:10 UTC, Serkan Kaba
none Details | Review

Description Serkan Kaba 2010-09-05 13:32:09 UTC
I don't know if this attribute is compiled into typelib but it can't be queried by any GITypeInfo functions. Needed for java-gnome.
Comment 1 Serkan Kaba 2010-09-06 19:55:10 UTC
Am I understood right, this attribute already exists in gir XML file but I want it to be accessible from girepository API.
Comment 2 Serkan Kaba 2011-03-14 19:10:41 UTC
Created attachment 183374 [details] [review]
Patch to add c:type attribute into typelib
Comment 3 Andrew Cowie 2011-03-16 04:11:04 UTC
Is Serkan's patch ok? It would really help us if this were exposed.

AfC
Comment 4 Serkan Kaba 2011-03-20 09:16:28 UTC
I found out that this patch partially does what I need and adds nothing for complex types.

Can you help me to improve it?
Comment 5 Colin Walters 2011-03-26 13:42:30 UTC
I need more information; why do you want the c:type in the typelib?  What are you doing with it?

It's going to make typelibs larger; by how much I'm not sure, but they're already quite large I feel.
Comment 6 Serkan Kaba 2011-03-26 13:57:48 UTC
I'm planning to use it in Java-GNOME Java bindings for GTK+,GNOME and friends. In Java GNOME we're generating the bindings and function calls at runtime. Please examine g_type_info_to_string in http://bazaar.launchpad.net/~serkan-kaba/java-gnome/gir/view/head:/src/generator/com/operationaldynamics/introspection/GTypeInfo.c#L25 which I made many assumptions to get it working and not perfect. This will reduce it to a one liner or at least make it way simpler than now.

Thanks in advance.
Serkan
Comment 7 André Klapper 2015-02-07 17:18:24 UTC
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]
Comment 8 GNOME Infrastructure Team 2018-02-08 11:58:44 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gobject-introspection/issues/35.