/**
- * Constant
+ * Constant - might error out, this should be fixed upstream now
+ *
+ * <union name="Argument" c:type="GIArgument">
+
+ * NEEDS <function name="constant_info_get_value"
+ c:identifier="g_constant_info_get_value"
+ introspectable="1">
+ <type name="Argument" c:type="GIArgument*"/>
+
+
+g-ir-compiler /usr/share/gir-1.0/GIRepository-2.0.gir -o /usr/lib/girepository-1.0/GIRepository-2.0.typelib
+
*/
function(prop, memberOf, saveto, keylist) {
this.name = prop.get_name();
- var tif = prop.get_type(); //GI.constant_info_get_type(prop);
+ var tif = GI.constant_info_get_type(prop);
var ty = GI.type_tag_to_string( GI.type_info_get_tag(tif));
this.type = this.typeToName(GI.constant_info_get_type(prop));
if (ty != 'interface') {
- var argm = new GI._Argument();
- GI.constant_info_get_value ( prop ,argm);
+ var argm = new GI.Argument();
+
+ GI.constant_info_get_value ( prop ,argm)
+
+
if (ty != 'utf8') {
this.value = argm.v_long;
} else {