[libsocialweb/vala: 5/9] introspection: Workaround the wrong element type for tables in structs



commit 6c9000b7fd0ded313100f5decfd159d056afce09
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]