[libsocialweb/vala: 4/9] introspection: Workaround wrong arguments for some signals
- From: Ross Burton <rburton src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsocialweb/vala: 4/9] introspection: Workaround wrong arguments for some signals
- Date: Tue, 22 Feb 2011 14:56:16 +0000 (UTC)
commit c342979c4a6a1b5b03297040d124ed613783ed9a
Author: Marco Barisione <marco barisione org>
Date: Wed Oct 27 15:15:07 2010 +0100
introspection: Workaround wrong arguments for some signals
The signals emitted when new items are added/changed/removed accept a
G_TYPE_POINTER argument that is actually a GList* of SwItems. The g-i
scanner doesn't pick the annotations for those signals, so we fix it
through XSLT.
libsocialweb-client/kludge.xsl | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/libsocialweb-client/kludge.xsl b/libsocialweb-client/kludge.xsl
index 13ee18e..1457498 100644
--- a/libsocialweb-client/kludge.xsl
+++ b/libsocialweb-client/kludge.xsl
@@ -11,4 +11,20 @@
</xsl:copy>
</xsl:template>
+ <xsl:template match="glib:signal[ name='items-added' or
+ @name='items-changed' or @name='items-removed']">
+ <glib:signal name="{ name}">
+ <return-value transfer-ownership="none">
+ <type name="none"/>
+ </return-value>
+ <parameters>
+ <parameter name="items" transfer-ownership="none">
+ <type name="GLib.List" c:type="GList*">
+ <type name="SocialWebClient.Item" c:type="SwItem*"/>
+ </type>
+ </parameter>
+ </parameters>
+ </glib:signal>
+ </xsl:template>
+
</xsl:stylesheet>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]