summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Barisione <marco@barisione.org>2010-10-27 14:10:19 (GMT)
committerRoss Burton <ross@linux.intel.com>2011-03-09 23:23:50 (GMT)
commitea1f86b49f20e882b1d6e337c9fae04df42f6f60 (patch)
tree273fc2d2a6f65fe0fef7feb7f12a8c4a23f0edbf
parentd890cbfdf6296e40e33162c88f259e1159061a76 (diff)
downloadlibsocialweb-ea1f86b49f20e882b1d6e337c9fae04df42f6f60.tar.gz
libsocialweb-ea1f86b49f20e882b1d6e337c9fae04df42f6f60.tar.xz
introspection: Workaround the wrong element type for tables in structs
g-i doesn't support setting the element-type for GHashTables inside structs, so we fix it through XSLT.
-rw-r--r--libsocialweb-client/kludge.xsl9
1 files changed, 9 insertions, 0 deletions
diff --git a/libsocialweb-client/kludge.xsl b/libsocialweb-client/kludge.xsl
index 1457498..25a4025 100644
--- a/libsocialweb-client/kludge.xsl
+++ b/libsocialweb-client/kludge.xsl
@@ -27,4 +27,13 @@
</glib:signal>
</xsl:template>
+ <xsl:template match="gi:record[@name='Item']/gi:field[@name='props']">
+ <field name="props" writable="1">
+ <type name="GLib.HashTable" c:type="GHashTable*">
+ <type name="utf8"/>
+ <type name="utf8"/>
+ </type>
+ </field>
+ </xsl:template>
+
</xsl:stylesheet>