Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions bindinate/gir2gapi.xslt.in
Original file line number Diff line number Diff line change
Expand Up @@ -1074,6 +1074,9 @@
<xsl:with-param name="deprecated" select="@deprecated"/>
<xsl:with-param name="deprecated-version" select="@deprecated-version"/>
</xsl:call-template>
<xsl:call-template name="output-element-type">
<xsl:with-param name="atype" select="gir:type/gir:type/@name"/>
</xsl:call-template>
</property>
</xsl:if>

Expand All @@ -1085,6 +1088,32 @@


<!-- Helper templates -->
<xsl:template name="output-element-type">
<xsl:param name="atype"/>
<xsl:if test="$atype">
<xsl:variable name="merged">
<xsl:for-each select="$atype">
<xsl:variable name="rtype">
<xsl:choose>
<xsl:when test="exsl:node-set($typemappings)/mappings/mapping[@from=current()]">
<xsl:value-of select="exsl:node-set($typemappings)/mappings/mapping[@from=current()]/@to"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="current()"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:choose>
<xsl:when test="position() = 1"><xsl:value-of select="$rtype"/></xsl:when>
<xsl:otherwise>;<xsl:value-of select="$rtype"/></xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</xsl:variable>
<xsl:attribute name="element_type">
<xsl:value-of select="$merged"/>
</xsl:attribute>
</xsl:if>
</xsl:template>

<xsl:template name="output-method">
<xsl:param name="shared">false</xsl:param>
Expand Down Expand Up @@ -1349,6 +1378,9 @@
</xsl:if>
</xsl:otherwise>
</xsl:choose>
<xsl:call-template name="output-element-type">
<xsl:with-param name="atype" select="gir:array/gir:type/@name"/>
</xsl:call-template>
</xsl:if>


Expand Down