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



commit 6e971a3fe209f5802a28e94c2c5373c8aae78444
Author: Michael Natterer <mitch gimp org>
Date:   Tue Jul 10 11:49:05 2018 +0200

    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.

 app/plug-in/gimppluginprocedure.c |  3 +--
 app/plug-in/plug-in-menu-path.c   | 20 --------------------
 2 files changed, 1 insertion(+), 22 deletions(-)
---
diff --git a/app/plug-in/gimppluginprocedure.c b/app/plug-in/gimppluginprocedure.c
index 6556640bba..478f03cc5d 100644
--- a/app/plug-in/gimppluginprocedure.c
+++ b/app/plug-in/gimppluginprocedure.c
@@ -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]))
diff --git a/app/plug-in/plug-in-menu-path.c b/app/plug-in/plug-in-menu-path.c
index 07f14c1f64..b349277783 100644
--- a/app/plug-in/plug-in-menu-path.c
+++ b/app/plug-in/plug-in-menu-path.c
@@ -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"    },


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]