summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Kasprzyk <onestone@opencompositing.org>2008-03-19 14:49:25 +0100
committerDennis kasprzyk <onestone@opencompositing.org>2008-03-19 15:21:11 +0100
commit7966c5f6396049c708795db57ceb900c58c5eeb3 (patch)
tree49378a8eb0c7700301183a076135424b1b4df040
parent93a285d0ee3478525db5e8b962c88d915a160412 (diff)
downloadbcop-7966c5f6396049c708795db57ceb900c58c5eeb3.tar.gz
bcop-7966c5f6396049c708795db57ceb900c58c5eeb3.tar.bz2
Generate enums for int lists.
-rw-r--r--src/bcop.xslt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bcop.xslt b/src/bcop.xslt
index c217ec4..d5b134d 100644
--- a/src/bcop.xslt
+++ b/src/bcop.xslt
@@ -1490,7 +1490,7 @@ CompOption *</xsl:text>
<!-- generate enums/masks for restricted string options -->
<xsl:template name="printOptionEnums">
- <xsl:for-each select="/compiz/plugin[@name=$pName]/descendant-or-self::option[@type = 'int' and ./desc/value]">
+ <xsl:for-each select="/compiz/plugin[@name=$pName]/descendant-or-self::option[(@type = 'int' or (@type = 'list' and ./type/text() = 'int')) and ./desc/value]">
<xsl:text>typedef enum
{
</xsl:text>