app: remove the <Toolbox> compat menu path for plug-ins

Plug-ins will now get an error when trying to register something
in <Toolbox> which has been deprecated for ages.
This commit is contained in:
Michael Natterer 2018-07-10 11:49:05 +02:00
parent 238748c3ce
commit 6e971a3fe2
2 changed files with 1 additions and 22 deletions

View File

@ -635,8 +635,7 @@ gimp_plug_in_procedure_add_menu_path (GimpPlugInProcedure *proc,
goto failure; goto failure;
} }
if (g_str_has_prefix (menu_path, "<Toolbox>") || if (g_str_has_prefix (menu_path, "<Image>"))
g_str_has_prefix (menu_path, "<Image>"))
{ {
if ((procedure->num_args < 1) || if ((procedure->num_args < 1) ||
! GIMP_IS_PARAM_SPEC_INT32 (procedure->args[0])) ! GIMP_IS_PARAM_SPEC_INT32 (procedure->args[0]))

View File

@ -42,26 +42,6 @@ struct _MenuPathMapping
static const MenuPathMapping menu_path_mappings[] = static const MenuPathMapping menu_path_mappings[] =
{ {
{ "<Toolbox>/Xtns/Languages", NULL, "<Image>/Filters/Languages" },
{ "<Toolbox>/Xtns/Extensions", NULL, "<Image>/Filters/Extensions" },
{ "<Toolbox>/Xtns/Buttons", NULL, "<Image>/File/Create/Buttons" },
{ "<Toolbox>/Xtns/Logos", NULL, "<Image>/File/Create/Logos" },
{ "<Toolbox>/Xtns/Misc", NULL, "<Image>/File/Create/Misc" },
{ "<Toolbox>/Xtns/Patterns", NULL, "<Image>/File/Create/Patterns" },
{ "<Toolbox>/Xtns/Web Page Themes", NULL, "<Image>/File/Create/Web Page Themes" },
{ "<Toolbox>/Xtns", "Buttons", "<Image>/File/Create" },
{ "<Toolbox>/Xtns", "Logos", "<Image>/File/Create" },
{ "<Toolbox>/Xtns", "Misc", "<Image>/File/Create" },
{ "<Toolbox>/Xtns", "Patterns", "<Image>/File/Create" },
{ "<Toolbox>/Xtns", "Web Page Themes", "<Image>/File/Create" },
{ "<Toolbox>/Xtns", NULL, "<Image>/Filters/Extensions" },
{ "<Toolbox>/Help", NULL, "<Image>/Help" },
{ "<Toolbox>/File/Acquire", NULL, "<Image>/File/Create/Acquire" },
{ "<Toolbox>", NULL, "<Image>" },
{ "<Image>/File/Acquire", NULL, "<Image>/File/Create/Acquire" }, { "<Image>/File/Acquire", NULL, "<Image>/File/Create/Acquire" },
{ "<Image>/File/New", NULL, "<Image>/File/Create" }, { "<Image>/File/New", NULL, "<Image>/File/Create" },
{ "<Image>/Image/Mode/Color Profile", NULL, "<Image>/Image/Color Management" }, { "<Image>/Image/Mode/Color Profile", NULL, "<Image>/Image/Color Management" },