Commit 6e971a3f authored by Michael Natterer's avatar Michael Natterer 😴

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.
parent 238748c3
......@@ -635,8 +635,7 @@ gimp_plug_in_procedure_add_menu_path (GimpPlugInProcedure *proc,
goto failure;
}
if (g_str_has_prefix (menu_path, "<Toolbox>") ||
g_str_has_prefix (menu_path, "<Image>"))
if (g_str_has_prefix (menu_path, "<Image>"))
{
if ((procedure->num_args < 1) ||
! GIMP_IS_PARAM_SPEC_INT32 (procedure->args[0]))
......
......@@ -42,26 +42,6 @@ struct _MenuPathMapping
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/New", NULL, "<Image>/File/Create" },
{ "<Image>/Image/Mode/Color Profile", NULL, "<Image>/Image/Color Management" },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment