[gimp/gimp-2-10] plug-ins: clearer plug-in-screenshot parameter description.



commit 8df6f4c8a66f9e7e798f5ecda740f0cdeb6c1c42
Author: Jehan <jehan girinstud io>
Date:   Sun Jun 17 22:11:26 2018 +0200

    plug-ins: clearer plug-in-screenshot parameter description.
    
    Our plug-ins have no "optional" parameters per-se. Clarify the
    description to make explicit that the last 4 parameters are simply only
    taken into account when the shoot type is SHOOT-REGION.
    
    (cherry picked from commit 3a0c03a61ceec273a69c1ac0c766bfe0c5c6bb1e)

 plug-ins/screenshot/screenshot.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/plug-ins/screenshot/screenshot.c b/plug-ins/screenshot/screenshot.c
index c8e69b4f88..9c5132043a 100644
--- a/plug-ins/screenshot/screenshot.c
+++ b/plug-ins/screenshot/screenshot.c
@@ -113,10 +113,10 @@ query (void)
     { GIMP_PDB_INT32, "run-mode",   "The run mode { RUN-INTERACTIVE (0), RUN-NONINTERACTIVE (1) }"     },
     { GIMP_PDB_INT32, "shoot-type", "The Shoot type { SHOOT-WINDOW (0), SHOOT-ROOT (1), SHOOT-REGION (2) }" 
},
     { GIMP_PDB_INT32, "window-id",  "Window id for SHOOT-WINDOW"       },
-    { GIMP_PDB_INT32, "x1",         "(optional) Region left x coord"   },
-    { GIMP_PDB_INT32, "y1",         "(optional) Region top y coord"    },
-    { GIMP_PDB_INT32, "x2",         "(optional) Region right x coord"  },
-    { GIMP_PDB_INT32, "y2",         "(optional) Region bottom y coord" }
+    { GIMP_PDB_INT32, "x1",         "Region left x coord for SHOOT-REGION"   },
+    { GIMP_PDB_INT32, "y1",         "Region top y coord for SHOOT-REGION"    },
+    { GIMP_PDB_INT32, "x2",         "Region right x coord for SHOOT-REGION"  },
+    { GIMP_PDB_INT32, "y2",         "Region bottom y coord for SHOOT-REGION" }
   };
 
   static const GimpParamDef return_vals[] =


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