summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDennis Kasprzyk <onestone@opencompositing.org>2007-08-30 18:50:13 +0200
committerDennis Kasprzyk <onestone@opencompositing.org>2007-08-30 18:50:13 +0200
commit4c5057c71b1a0049330ca65eabd3e1699e6385f9 (patch)
tree06d0f46586d52f40cecafa3e3749308dc5e8d1f1 /src
parent69028bfe3e67b367108801f44435281765ed872a (diff)
downloadbcop-4c5057c71b1a0049330ca65eabd3e1699e6385f9.tar.gz
bcop-4c5057c71b1a0049330ca65eabd3e1699e6385f9.tar.bz2
Handle plugins with no display options correctly.
Diffstat (limited to 'src')
-rw-r--r--src/bcop.xslt8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/bcop.xslt b/src/bcop.xslt
index 9850f88..43ae60e 100644
--- a/src/bcop.xslt
+++ b/src/bcop.xslt
@@ -1257,6 +1257,10 @@ static void </xsl:text>
<xsl:text>OptionsGetDisplayOptions,
</xsl:text>
</xsl:if>
+ <xsl:if test="not(/compiz/plugin[@name=$pName]/display//option)">
+ <xsl:text> (GetPluginObjectOptionsProc) 0,
+ </xsl:text>
+ </xsl:if>
<xsl:if test="/compiz/plugin[@name=$pName]/screen//option">
<xsl:text> (GetPluginObjectOptionsProc) </xsl:text>
<xsl:value-of select="$plugin"/>
@@ -1281,6 +1285,10 @@ static CompBool </xsl:text>
<xsl:text>OptionsSetDisplayOption,
</xsl:text>
</xsl:if>
+ <xsl:if test="not(/compiz/plugin[@name=$pName]/display//option)">
+ <xsl:text> (SetPluginObjectOptionsProc) 0,
+ </xsl:text>
+ </xsl:if>
<xsl:if test="/compiz/plugin[@name=$pName]/screen//option">
<xsl:text> (SetPluginObjectOptionProc) </xsl:text>
<xsl:value-of select="$plugin"/>