mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-23 13:01:42 +00:00
399b6639de
2007-08-30 Michael Natterer <mitch@gimp.org> * app/gui/sync-menu.c: take over cosmetic fix from upstream. * configure.in: add HAVE_CARBON as AM_CONDITIONAL * menus/image-menu.xml.in: add the Help menu to the image menu. * menus/Makefile.am * menus/menus.xsl: filter it away if we are not on carbon. * app/menus/menus.c: added the "help" action group to the image UI manager. svn path=/trunk/; revision=23412
68 lines
1.9 KiB
XML
68 lines
1.9 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<!-- This is an XSL transformation that we use to generate XML menu
|
|
files. So far it contains a template to generate a menubar and a
|
|
popup with identical content.
|
|
-->
|
|
|
|
<xsl:stylesheet version="1.0"
|
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
|
|
|
<xsl:param name="debug-menu" />
|
|
<xsl:param name="help-menu" />
|
|
|
|
<xsl:output method="xml"
|
|
version="1.0"
|
|
encoding="utf-8"
|
|
indent="yes"
|
|
doctype-system="gtkuimanager.dtd" />
|
|
|
|
<xsl:template match="/">
|
|
<xsl:comment> This file is automatically generated. Do not edit! </xsl:comment>
|
|
<xsl:apply-templates />
|
|
</xsl:template>
|
|
|
|
<xsl:template match="menubar-and-popup">
|
|
<menubar>
|
|
<xsl:attribute name="action"><xsl:value-of select="@action-name"/>-menubar</xsl:attribute>
|
|
<xsl:apply-templates />
|
|
</menubar>
|
|
<menubar name="dummy-menubar">
|
|
<menu>
|
|
<xsl:attribute name="action"><xsl:value-of select="@action-name"/>-popup</xsl:attribute>
|
|
<xsl:apply-templates />
|
|
</menu>
|
|
</menubar>
|
|
</xsl:template>
|
|
|
|
<xsl:template match="menuitems">
|
|
<xsl:apply-templates />
|
|
</xsl:template>
|
|
|
|
<xsl:template match="menu[@action='debug-menu']">
|
|
<xsl:if test="$debug-menu='yes'">
|
|
<xsl:call-template name="identity" />
|
|
</xsl:if>
|
|
</xsl:template>
|
|
|
|
<xsl:template match="menubar-and-popup/menu[@action='help-menu']">
|
|
<xsl:if test="$help-menu='yes'">
|
|
<xsl:call-template name="identity" />
|
|
</xsl:if>
|
|
</xsl:template>
|
|
|
|
<!-- need to strip the XInclude namespace declaration from the ui element -->
|
|
<xsl:template match="ui">
|
|
<ui>
|
|
<xsl:apply-templates />
|
|
</ui>
|
|
</xsl:template>
|
|
|
|
<xsl:template match="@*|node()" name="identity">
|
|
<xsl:copy>
|
|
<xsl:apply-templates select="@*|node()" />
|
|
</xsl:copy>
|
|
</xsl:template>
|
|
|
|
</xsl:stylesheet>
|