Gimp.Procedure.add_menu_path
@accepts(Gimp.Procedure, unicode)
@returns(none)
def add_menu_path(self, menu_path):
# Python wrapper for gimp_procedure_add_menu_path()
Adds a menu path to the procedure. Only procedures which have a menu label can add a menu path.
Menu paths are untranslated paths to known menus and submenus with the syntax `<Prefix>/Path/To/Submenu`, for example `<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:
``` gimp_procedure_add_menu_path (procedure, g_build_path ("/", "<Image>/Layer", _("Create"), NULL)); ```
See also: Gimp.PlugIn.add_menu_branch.
Since 3.0
- self
- menu_path
The self's additional menu path.