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.
This commit is contained in:
@ -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
|
||||
|
@ -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>
|
||||
|
Reference in New Issue
Block a user