[gimp] menus: filter out view-use-gegl for stable releases



commit 1bc9ca2d13598e418a635e9739780ded48eedbb3
Author: Michael Natterer <mitch gimp org>
Date:   Thu May 26 20:44:55 2011 +0200

    menus: filter out view-use-gegl for stable releases
    
    Turn the "debug-menu" parameter to "unstable-menus" and use it to
    filter both the "debug" menu and the "use gegl" menu item.

 menus/Makefile.am |    4 ++--
 menus/menus.xsl   |   10 ++++++++--
 2 files changed, 10 insertions(+), 4 deletions(-)
---
diff --git a/menus/Makefile.am b/menus/Makefile.am
index 68c7715..b5a8b46 100644
--- a/menus/Makefile.am
+++ b/menus/Makefile.am
@@ -52,14 +52,14 @@ MAINTAINERCLEANFILES = $(menudata_built_files)
 
 
 if GIMP_UNSTABLE
-DEBUG_MENU_PARAMS = --stringparam debug-menu yes
+UNSTABLE_MENU_PARAMS = --stringparam unstable-menus yes
 endif
 
 SUFFIXES = .xml.in .xml
 
 .xml.in.xml: $(top_srcdir)/configure.ac $(srcdir)/menus.xsl dialogs-menuitems.xml
 if HAVE_XSLTPROC
-	$(XSLTPROC) --xinclude $(DEBUG_MENU_PARAMS) $(srcdir)/menus.xsl $< > $(@) || rm -f $(@)
+	$(XSLTPROC) --xinclude $(UNSTABLE_MENU_PARAMS) $(srcdir)/menus.xsl $< > $(@) || rm -f $(@)
 else
 	@echo "*** xsltproc is required to build the menus XML files ***"; exit 1;
 endif
diff --git a/menus/menus.xsl b/menus/menus.xsl
index 46030da..9644e21 100644
--- a/menus/menus.xsl
+++ b/menus/menus.xsl
@@ -8,7 +8,7 @@
 <xsl:stylesheet version="1.0"
                 xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
 
-  <xsl:param name="debug-menu" />
+  <xsl:param name="unstable-menus" />
 
   <xsl:output method="xml"
               version="1.0"
@@ -39,7 +39,13 @@
   </xsl:template>
 
   <xsl:template match="menu[ action='debug-menu']">
-    <xsl:if test="$debug-menu='yes'">
+    <xsl:if test="$unstable-menus='yes'">
+      <xsl:call-template name="identity" />
+    </xsl:if>
+  </xsl:template>
+
+  <xsl:template match="menu[ action='view-use-gegl']">
+    <xsl:if test="$unstable-menus='yes'">
       <xsl:call-template name="identity" />
     </xsl:if>
   </xsl:template>



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