<?xml version="1.0"?>
<page id="Gimp.PlugIn.add_menu_branch"
      type="topic"
      style="method"
      xmlns="http://projectmallard.org/1.0/"
      xmlns:api="http://projectmallard.org/experimental/api/"
      xmlns:ui="http://projectmallard.org/1.0/ui/">
  <info>
    <link xref="Gimp.PlugIn" group="method" type="guide"/>
    <api:function>
      <api:returns>
        <api:type>none</api:type>
      </api:returns>
      <api:name>gimp_plug_in_add_menu_branch</api:name>
      <api:arg>
        <api:type>Gimp.PlugIn</api:type>
        <api:name>self</api:name>
      </api:arg>
      <api:arg>
        <api:type>unicode</api:type>
        <api:name>menu_path</api:name>
      </api:arg>
      <api:arg>
        <api:type>unicode</api:type>
        <api:name>menu_label</api:name>
      </api:arg>
    </api:function>
  </info>
  <title>Gimp.PlugIn.add_menu_branch</title>
  <synopsis><code mime="text/x-python">
@accepts(Gimp.PlugIn, unicode, unicode)
@returns(none)
def add_menu_branch(self, menu_path, menu_label):
    # Python wrapper for gimp_plug_in_add_menu_branch()
  </code></synopsis>
  <p>Add a new sub-menu to the GIMP menus.</p>  <p>This function installs a sub-menu which does not belong to any
procedure at the location <code>menu_path</code>.</p>  <p>For translations of <code>menu_label</code> to work properly, <code>menu_label</code>
should only be marked for translation but passed to this function
untranslated, for example using N_("Submenu"). GIMP will look up
the translation in the textdomain registered for the plug-in.</p>  <p>See also: <link xref="Gimp.Procedure.add_menu_path"/>.</p>
  <p>Since 3.0</p>
<terms>
<item>
<title><code>self</code></title>
  <p>A <link xref="Gimp.PlugIn"/></p>
</item>
<item>
<title><code>menu_path</code></title>
  <p>The sub-menu's menu path.</p>
</item>
<item>
<title><code>menu_label</code></title>
  <p>The menu label of the sub-menu.</p>
</item>
</terms>

</page>
