projects
/
gnome.introspection-doc-generator
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Introspect/Constant.js
[gnome.introspection-doc-generator]
/
Introspect
/
Constant.js
diff --git
a/Introspect/Constant.js
b/Introspect/Constant.js
index
157d650
..
3d5f50a
100644
(file)
--- a/
Introspect/Constant.js
+++ b/
Introspect/Constant.js
@@
-15,11
+15,17
@@
Basic = imports.Basic.Basic;
/**
/**
- * 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">
* 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
*/
*/
@@
-40,10
+46,10
@@
Constant = XObject.define(
if (ty != 'interface') {
if (ty != 'interface') {
- var argm = new GI.
_
Argument();
- GI.constant_info_get_value ?
- GI.constant_info_get_value ( prop ,argm) :
- prop.get_value(argm);
+ var argm = new GI.Argument();
+
+ GI.constant_info_get_value ( prop ,argm)
+
if (ty != 'utf8') {
this.value = argm.v_long;
if (ty != 'utf8') {
this.value = argm.v_long;