summaryrefslogtreecommitdiff
path: root/tests/scanner
diff options
context:
space:
mode:
authorJohan Bilien <jobi@litl.com>2010-01-14 17:02:36 -0500
committerJohan Bilien <jobi@litl.com>2010-01-14 19:20:53 -0500
commit18d8b801792595760e2695dedae868db6e5b22d8 (patch)
tree5fca7de10b5c9aaaa65961f6787e1d0bc9968a10 /tests/scanner
parent3c24bd60ae2b1f5326893a3e85a664255e298377 (diff)
downloadgobject-introspection-18d8b801792595760e2695dedae868db6e5b22d8.tar.gz
scanner: Always explicitely set the scope of callbacks
default to 'call' as stated in the annotation documentation. https://bugzilla.gnome.org/show_bug.cgi?id=607026
Diffstat (limited to 'tests/scanner')
-rw-r--r--tests/scanner/annotation-1.0-expected.gir5
-rw-r--r--tests/scanner/annotation-1.0-expected.tgir6
2 files changed, 6 insertions, 5 deletions
diff --git a/tests/scanner/annotation-1.0-expected.gir b/tests/scanner/annotation-1.0-expected.gir
index 2eef2100..ab81ae18 100644
--- a/tests/scanner/annotation-1.0-expected.gir
+++ b/tests/scanner/annotation-1.0-expected.gir
@@ -463,7 +463,7 @@ type.">
<parameter name="user_data" transfer-ownership="none">
<type name="any" c:type="gpointer"/>
</parameter>
- <parameter name="destroy" transfer-ownership="none">
+ <parameter name="destroy" transfer-ownership="none" scope="call">
<type name="GLib.DestroyNotify" c:type="GDestroyNotify"/>
</parameter>
</parameters>
@@ -555,12 +555,13 @@ detection, and fixing it via annotations.">
<parameters>
<parameter name="callback"
transfer-ownership="none"
+ scope="call"
closure="2"
destroy="1"
doc="Destroy notification">
<type name="Callback" c:type="AnnotationCallback"/>
</parameter>
- <parameter name="destroy" transfer-ownership="none">
+ <parameter name="destroy" transfer-ownership="none" scope="call">
<type name="NotifyFunc" c:type="AnnotationNotifyFunc"/>
</parameter>
<parameter name="data" transfer-ownership="none">
diff --git a/tests/scanner/annotation-1.0-expected.tgir b/tests/scanner/annotation-1.0-expected.tgir
index 15071748..9e9370b4 100644
--- a/tests/scanner/annotation-1.0-expected.tgir
+++ b/tests/scanner/annotation-1.0-expected.tgir
@@ -345,7 +345,7 @@
<parameter name="user_data" transfer-ownership="none">
<type name="any"/>
</parameter>
- <parameter name="destroy" transfer-ownership="none">
+ <parameter name="destroy" transfer-ownership="none" scope="call">
<type name="GLib.DestroyNotify"/>
</parameter>
</parameters>
@@ -409,10 +409,10 @@
<type name="none"/>
</return-value>
<parameters>
- <parameter name="callback" transfer-ownership="none" closure="2" destroy="1">
+ <parameter name="callback" transfer-ownership="none" scope="call" closure="2" destroy="1">
<type name="Callback"/>
</parameter>
- <parameter name="destroy" transfer-ownership="none">
+ <parameter name="destroy" transfer-ownership="none" scope="call">
<type name="NotifyFunc"/>
</parameter>
<parameter name="data" transfer-ownership="none">