[gimp-perl] Allow <Toolbox>/(anything).



commit 3d052946f6ad4a63105e4b8da71cc8b8fe2395de
Author: Ed J <edj src gnome org>
Date:   Sat May 24 00:33:59 2014 +0100

    Allow <Toolbox>/(anything).

 Gimp/Fu.pm |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/Gimp/Fu.pm b/Gimp/Fu.pm
index 7554e61..e10fec3 100644
--- a/Gimp/Fu.pm
+++ b/Gimp/Fu.pm
@@ -310,7 +310,7 @@ sub make_ui_closure {
       }
 
       for($menupath) {
-         if (not defined $_ or m#^<Toolbox>/Xtns/#) {
+         if (not defined $_ or m#^<Toolbox>#) {
            # no-op
          } elsif (/^<Image>\//) {
            if (defined $imagetypes and length $imagetypes) {
@@ -324,7 +324,7 @@ sub make_ui_closure {
             @_ >= 4 or die __"<Save> plug-in called without the 5 standard arguments!\n";
             @pre = (shift,shift,shift,shift);
          } elsif (defined $_) {
-           die __"menupath _must_ start with <Image>, <Load>, <Save>, <Toolbox>/Xtns/, or <None>!";
+           die __"menupath _must_ start with <Image>, <Load>, <Save>, <Toolbox>, or <None>!";
          }
       }
       warn "perlsub: rm=$run_mode" if $Gimp::verbose >= 2;
@@ -725,11 +725,10 @@ Outline:
     $new_image->delete if $export == EXPORT_EXPORT;
   };
 
-=item <Toolbox>/Xtns/Label
+=item <Toolbox>/Label
 
-This will place the plugin in a special section (as of GIMP 2.8) of the
-"Filters" menu. This type of plugin will also not have the image and
-drawable passed, nor will it require it.
+This type of plugin will not have the image and drawable passed, nor
+will it require (or return) it. It I<will> still have a C<run_mode> added.
 
 =item <None>
 


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