[libsocialweb] introspection: Workaround the wrong element type for tables in structs
- From: Ross Burton <rburton src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsocialweb] introspection: Workaround the wrong element type for tables in structs
- Date: Wed, 9 Mar 2011 23:30:51 +0000 (UTC)
commit ea1f86b49f20e882b1d6e337c9fae04df42f6f60
Author: Marco Barisione <marco barisione org>
Date: Wed Oct 27 15:10:19 2010 +0100
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.
libsocialweb-client/kludge.xsl | 9 +++++++++
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>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]