<?xml version="1.0"?>
<page id="Gimp.Procedure.add_menu_path"
      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.Procedure" group="method" type="guide"/>
    <api:function>
      <api:returns>
        <api:type>none</api:type>
      </api:returns>
      <api:name>gimp_procedure_add_menu_path</api:name>
      <api:arg>
        <api:type>Gimp.Procedure</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:function>
  </info>
  <title>Gimp.Procedure.add_menu_path</title>
  <synopsis><code mime="text/x-python">
@accepts(Gimp.Procedure, unicode)
@returns(none)
def add_menu_path(self, menu_path):
    # Python wrapper for gimp_procedure_add_menu_path()
  </code></synopsis>
  <p>Adds a menu path to the procedure. Only procedures which have a menu
label can add a menu path.</p>  <p>Menu paths are untranslated paths to known menus and submenus with the
syntax `&lt;Prefix>/Path/To/Submenu`, for example `&lt;Image>/Layer/Transform`.
GIMP will localize these.
Nevertheless you should localize unknown parts of the path. For instance, say
you want to create procedure to create customized layers and add a `Create`
submenu which you want to localize from your plug-in with gettext. You could
call:</p>  <p>```
gimp_procedure_add_menu_path (procedure,
                              g_build_path ("/", "&lt;Image>/Layer",
                                            _("Create"), NULL));
```</p>  <p>See also: <link xref="Gimp.PlugIn.add_menu_branch"/>.</p>
  <p>Since 3.0</p>
<terms>
<item>
<title><code>self</code></title>
  <p>A <link xref="Gimp.Procedure"/>.</p>
</item>
<item>
<title><code>menu_path</code></title>
  <p>The <code>self</code>'s additional menu path.</p>
</item>
</terms>

</page>
