mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-22 12:32:37 +00:00
f63a7153ef
2008-03-21 Michael Natterer <mitch@gimp.org> Remove the toolbox menu: * configure.in: remove --enable-toolbox-menu option. * menus/Makefile.am * menus/toolbox-menu.xml.in: removed. * menus/image-menu.xml.in: add the debug menu here. * menus/menus.xsl: remove transformations depending on whether there is a toolbox menu or not. * app/menus/Makefile.am * app/menus/toolbox-menu.[ch]: removed. * app/menus/menus.c: remove the toolbox menu but keep the <Toolbox> UI manager around so we can configure its actions separate from normal docks. * app/actions/image-actions.c (image_actions): remove the action for the toolbox menubar. * app/widgets/gimptoolbox.c: remove all menu code. * app/plug-in/plug-in-menu-path.c: map plug-in registered toolbox menu items to their new location in the image menu unconditionally. * plug-ins/common/screenshot.c * plug-ins/common/uniteditor.c * plug-ins/script-fu/script-fu.c * plug-ins/script-fu/scripts/web-browser.scm * plug-ins/twain/twain.c * plug-ins/winsnap/winsnap.c: remove menu registrations under <Toolbox>/File and change <Toolbox>/Help to <Image>/Help. Leave <Toolbox>/Xtns untouched until its final location and name are decided. svn path=/trunk/; revision=25156
61 lines
1.7 KiB
XML
61 lines
1.7 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: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>
|
|
|
|
<!-- 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>
|