[gimp] menus: use one template for unstable menus instead of two



commit c73ff51b82c601579100dca55efd288bf6f6c2f5
Author: Michael Natterer <mitch gimp org>
Date:   Thu May 26 21:48:40 2011 +0200

    menus: use one template for unstable menus instead of two

 menus/menus.xsl |    9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/menus/menus.xsl b/menus/menus.xsl
index 9644e21..a6851b2 100644
--- a/menus/menus.xsl
+++ b/menus/menus.xsl
@@ -38,13 +38,8 @@
     <xsl:apply-templates />
   </xsl:template>
 
-  <xsl:template match="menu[ action='debug-menu']">
-    <xsl:if test="$unstable-menus='yes'">
-      <xsl:call-template name="identity" />
-    </xsl:if>
-  </xsl:template>
-
-  <xsl:template match="menu[ action='view-use-gegl']">
+  <xsl:template match="menu[ action='debug-menu' or
+                            @action='view-use-gegl']">
     <xsl:if test="$unstable-menus='yes'">
       <xsl:call-template name="identity" />
     </xsl:if>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]