mirror of https://github.com/GNOME/gimp.git
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:
parent
238748c3ce
commit
6e971a3fe2
|
@ -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]))
|
||||||
|
|
|
@ -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" },
|
||||||
|
|
Loading…
Reference in New Issue