Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tests/scanner/foo-1.0-expected.gir
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2009-02-19 17:16:17 (GMT)
committer Colin Walters <walters@verbum.org>2009-03-16 18:05:23 (GMT)
commit6531a094d73703c0c16777bdc82252688d1c7d51 (patch)
treeddcb4921fc322d27381e90060f2e2776f4dfada7 /tests/scanner/foo-1.0-expected.gir
parent90526643ceb248c56e40f5b6755c3cbb91c3857c (diff)
Bug 565147 - Add (type) annotation to override the C type definition
We previously supported (type) on signals only, extend it to all cases. This is useful for a few cases where libraries use a superclass like GtkWidget* for C convenience, where the actual type is a subclass.
Diffstat (limited to 'tests/scanner/foo-1.0-expected.gir')
-rw-r--r--tests/scanner/foo-1.0-expected.gir8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/scanner/foo-1.0-expected.gir b/tests/scanner/foo-1.0-expected.gir
index 086170e..59efffd 100644
--- a/tests/scanner/foo-1.0-expected.gir
+++ b/tests/scanner/foo-1.0-expected.gir
@@ -290,6 +290,14 @@ and/or use gtk-doc annotations. -->
<type name="int" c:type="int"/>
</return-value>
</function>
+ <function name="get_default"
+ c:identifier="foo_object_get_default"
+ doc="This function is intended to match clutter_stage_get_default which
+uses a C sugar return type.">
+ <return-value transfer-ownership="full" doc="The global #FooSubobject">
+ <type name="Subobject" c:type="FooObject*"/>
+ </return-value>
+ </function>
<virtual-method name="virtual_method" invoker="virtual_method">
<return-value transfer-ownership="none">
<type name="boolean" c:type="gboolean"/>