[gimp] app: remove obsolete check from gimp_plug_in_menu_register()



commit a63779e5a8bdacbdcad534c9e6e90d873a08dea5
Author: Michael Natterer <mitch gimp org>
Date:   Sat Sep 7 20:02:01 2019 +0200

    app: remove obsolete check from gimp_plug_in_menu_register()
    
    Plug-ins can't set a full menu path at procedure installation time any
    longer, no need to check and warn about it here.

 app/plug-in/gimpplugin.c | 17 -----------------
 1 file changed, 17 deletions(-)
---
diff --git a/app/plug-in/gimpplugin.c b/app/plug-in/gimpplugin.c
index d1d4f2d9ea..424d79472a 100644
--- a/app/plug-in/gimpplugin.c
+++ b/app/plug-in/gimpplugin.c
@@ -925,23 +925,6 @@ gimp_plug_in_menu_register (GimpPlugIn  *plug_in,
     }
 
   if (! proc->menu_label)
-    {
-      gimp_message (plug_in->manager->gimp, NULL, GIMP_MESSAGE_ERROR,
-                    "Plug-in \"%s\"\n(%s)\n"
-                    "attempted to register the menu item \"%s\" "
-                    "for procedure \"%s\".\n"
-                    "The menu label given in gimp_install_procedure() "
-                    "already contained a path.  To make this work, "
-                    "pass just the menu's label to "
-                    "gimp_install_procedure().",
-                    gimp_object_get_name (plug_in),
-                    gimp_file_get_utf8_name (plug_in->file),
-                    menu_path, proc_name);
-
-      return FALSE;
-    }
-
-  if (! strlen (proc->menu_label))
     {
       gimp_message (plug_in->manager->gimp, NULL, GIMP_MESSAGE_ERROR,
                     "Plug-in \"%s\"\n(%s)\n"


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