GNOME Bugzilla – Bug 585707
How to handle data types without a GLib GType defined.
Last modified: 2013-11-24 00:10:46 UTC
On libgda, it define a GType for GError and a GSList becouse these doesn't exist on GLib and it uses them as parameters when creating properties and events. For now may be the library (as Anjuta does) must create its own GType definition. If introspection is required then follow this rule: the name of the type must be defined as "GError" and "GSList", in order to allow g-ri-scanner to detects the currect types GError and GSList as the example. In GDA it has GDA_TYPE_ERROR and GDA_TYPE_SLIST with "GdaError" and "GdaSList", then the scanner tries to find a definition to GdaError and GdaSList but they don't exist, when changed this types' names as avobe the correct type is detected. (For more info about GDA/GObject Instrospection see bug #585351).
Adding that may ALL datatypes on GLib must have its own GType to help other libraries to use them directly with out define its self and avoid misstakes that prevents to have introspection.
GList and GSList should simply be treated as G_TYPE_POINTER. Many other GLib types have boxes type definitions in gobject now