[gimp/pippin/linear-is-the-new-black: 9/13] regenerated files from pdb - unsure if this gives sRGB in some places where linear layer/paint mode



commit 62ab7217e9effdc672ae2c9d78420606ba8adf80
Author: Øyvind Kolås <pippin gimp org>
Date:   Mon Dec 26 16:27:54 2016 +0100

    regenerated files from pdb - unsure if this gives sRGB in some places where linear layer/paint mode is 
desired

 app/pdb/brush-select-cmds.c   |    4 ++--
 app/pdb/brushes-cmds.c        |    2 +-
 app/pdb/context-cmds.c        |    4 ++--
 app/pdb/edit-cmds.c           |    6 +++---
 app/pdb/gradient-cmds.c       |    6 +++---
 app/pdb/layer-cmds.c          |    6 +++---
 app/pdb/plug-in-compat-cmds.c |    2 +-
 tools/pdbgen/enums.pl         |    9 +++++----
 8 files changed, 20 insertions(+), 19 deletions(-)
---
diff --git a/app/pdb/brush-select-cmds.c b/app/pdb/brush-select-cmds.c
index a28baff..1999fc3 100644
--- a/app/pdb/brush-select-cmds.c
+++ b/app/pdb/brush-select-cmds.c
@@ -204,7 +204,7 @@ register_brush_select_procs (GimpPDB *pdb)
                                                   "paint mode",
                                                   "The initial paint mode",
                                                   GIMP_TYPE_LAYER_MODE_EFFECTS,
-                                                  GIMP_NORMAL_MODE,
+                                                  GIMP_NORMAL_SRGB_MODE,
                                                   GIMP_PARAM_READWRITE));
   gimp_pdb_register_procedure (pdb, procedure);
   g_object_unref (procedure);
@@ -278,7 +278,7 @@ register_brush_select_procs (GimpPDB *pdb)
                                                   "paint mode",
                                                   "The initial paint mode",
                                                   GIMP_TYPE_LAYER_MODE_EFFECTS,
-                                                  GIMP_NORMAL_MODE,
+                                                  GIMP_NORMAL_SRGB_MODE,
                                                   GIMP_PARAM_READWRITE));
   gimp_pdb_register_procedure (pdb, procedure);
   g_object_unref (procedure);
diff --git a/app/pdb/brushes-cmds.c b/app/pdb/brushes-cmds.c
index 30e7e84..5e6fff6 100644
--- a/app/pdb/brushes-cmds.c
+++ b/app/pdb/brushes-cmds.c
@@ -440,7 +440,7 @@ register_brushes_procs (GimpPDB *pdb)
                                                       "paint mode",
                                                       "The paint mode",
                                                       GIMP_TYPE_LAYER_MODE_EFFECTS,
-                                                      GIMP_NORMAL_MODE,
+                                                      GIMP_NORMAL_SRGB_MODE,
                                                       GIMP_PARAM_READWRITE));
   gimp_procedure_add_return_value (procedure,
                                    gimp_param_spec_int32 ("width",
diff --git a/app/pdb/context-cmds.c b/app/pdb/context-cmds.c
index 7be3ed0..d7926ee 100644
--- a/app/pdb/context-cmds.c
+++ b/app/pdb/context-cmds.c
@@ -3139,7 +3139,7 @@ register_context_procs (GimpPDB *pdb)
                                                       "paint mode",
                                                       "The paint mode",
                                                       GIMP_TYPE_LAYER_MODE_EFFECTS,
-                                                      GIMP_NORMAL_MODE,
+                                                      GIMP_NORMAL_SRGB_MODE,
                                                       GIMP_PARAM_READWRITE));
   gimp_pdb_register_procedure (pdb, procedure);
   g_object_unref (procedure);
@@ -3163,7 +3163,7 @@ register_context_procs (GimpPDB *pdb)
                                                   "paint mode",
                                                   "The paint mode",
                                                   GIMP_TYPE_LAYER_MODE_EFFECTS,
-                                                  GIMP_NORMAL_MODE,
+                                                  GIMP_NORMAL_SRGB_MODE,
                                                   GIMP_PARAM_READWRITE));
   gimp_pdb_register_procedure (pdb, procedure);
   g_object_unref (procedure);
diff --git a/app/pdb/edit-cmds.c b/app/pdb/edit-cmds.c
index c792750..3ed4d37 100644
--- a/app/pdb/edit-cmds.c
+++ b/app/pdb/edit-cmds.c
@@ -1349,7 +1349,7 @@ register_edit_procs (GimpPDB *pdb)
                                                   "paint mode",
                                                   "The paint application mode",
                                                   GIMP_TYPE_LAYER_MODE_EFFECTS,
-                                                  GIMP_NORMAL_MODE,
+                                                  GIMP_NORMAL_SRGB_MODE,
                                                   GIMP_PARAM_READWRITE));
   gimp_procedure_add_argument (procedure,
                                g_param_spec_double ("opacity",
@@ -1416,7 +1416,7 @@ register_edit_procs (GimpPDB *pdb)
                                                   "paint mode",
                                                   "The paint application mode",
                                                   GIMP_TYPE_LAYER_MODE_EFFECTS,
-                                                  GIMP_NORMAL_MODE,
+                                                  GIMP_NORMAL_SRGB_MODE,
                                                   GIMP_PARAM_READWRITE));
   gimp_procedure_add_argument (procedure,
                                g_param_spec_double ("opacity",
@@ -1496,7 +1496,7 @@ register_edit_procs (GimpPDB *pdb)
                                                   "paint mode",
                                                   "The paint application mode",
                                                   GIMP_TYPE_LAYER_MODE_EFFECTS,
-                                                  GIMP_NORMAL_MODE,
+                                                  GIMP_NORMAL_SRGB_MODE,
                                                   GIMP_PARAM_READWRITE));
   gimp_procedure_add_argument (procedure,
                                g_param_spec_enum ("gradient-type",
diff --git a/app/pdb/gradient-cmds.c b/app/pdb/gradient-cmds.c
index 0db5999..615b19f 100644
--- a/app/pdb/gradient-cmds.c
+++ b/app/pdb/gradient-cmds.c
@@ -47,10 +47,10 @@
 static GimpGradient *
 gradient_get (Gimp                 *gimp,
               const gchar          *name,
-              gboolean              writable,
+             gboolean              writable,
               gint                  segment,
               GimpGradientSegment **seg,
-              GError              **error)
+             GError              **error)
 {
   GimpGradient *gradient = gimp_pdb_get_gradient (gimp, name, writable, error);
 
@@ -69,7 +69,7 @@ gradient_get_range (Gimp                 *gimp,
                     gint                  end_segment,
                     GimpGradientSegment **start_seg,
                     GimpGradientSegment **end_seg,
-                    GError              **error)
+                   GError              **error)
 {
   GimpGradient *gradient = gimp_pdb_get_gradient (gimp, name, TRUE, error);
 
diff --git a/app/pdb/layer-cmds.c b/app/pdb/layer-cmds.c
index f7764ec..c36f154 100644
--- a/app/pdb/layer-cmds.c
+++ b/app/pdb/layer-cmds.c
@@ -1212,7 +1212,7 @@ register_layer_procs (GimpPDB *pdb)
                                                   "mode",
                                                   "The layer combination mode",
                                                   GIMP_TYPE_LAYER_MODE_EFFECTS,
-                                                  GIMP_NORMAL_MODE,
+                                                  GIMP_NORMAL_SRGB_MODE,
                                                   GIMP_PARAM_READWRITE));
   gimp_procedure_add_return_value (procedure,
                                    gimp_param_spec_layer_id ("layer",
@@ -2148,7 +2148,7 @@ register_layer_procs (GimpPDB *pdb)
                                                       "mode",
                                                       "The layer combination mode",
                                                       GIMP_TYPE_LAYER_MODE_EFFECTS,
-                                                      GIMP_NORMAL_MODE,
+                                                      GIMP_NORMAL_SRGB_MODE,
                                                       GIMP_PARAM_READWRITE));
   gimp_pdb_register_procedure (pdb, procedure);
   g_object_unref (procedure);
@@ -2178,7 +2178,7 @@ register_layer_procs (GimpPDB *pdb)
                                                   "mode",
                                                   "The new layer combination mode",
                                                   GIMP_TYPE_LAYER_MODE_EFFECTS,
-                                                  GIMP_NORMAL_MODE,
+                                                  GIMP_NORMAL_SRGB_MODE,
                                                   GIMP_PARAM_READWRITE));
   gimp_pdb_register_procedure (pdb, procedure);
   g_object_unref (procedure);
diff --git a/app/pdb/plug-in-compat-cmds.c b/app/pdb/plug-in-compat-cmds.c
index ca4f277..e86deb5 100644
--- a/app/pdb/plug-in-compat-cmds.c
+++ b/app/pdb/plug-in-compat-cmds.c
@@ -338,7 +338,7 @@ gaussian_blur (GimpDrawable  *drawable,
                                   "operation",    "gegl:gaussian-blur",
                                   "std-dev-x",    horizontal * 0.32,
                                   "std-dev-y",    vertical   * 0.32,
-                                  "abyss-policy", 1,
+                                 "abyss-policy", 1,
                                   NULL);
 
       node = wrap_in_gamma_cast (node, drawable);
diff --git a/tools/pdbgen/enums.pl b/tools/pdbgen/enums.pl
index 0d6839f..65827a6 100644
--- a/tools/pdbgen/enums.pl
+++ b/tools/pdbgen/enums.pl
@@ -694,7 +694,7 @@ package Gimp::CodeGen::enums;
     GimpLayerModeEffects =>
        { contig => 1,
          header => 'core/core-enums.h',
-         symbols => [ qw(GIMP_NORMAL_MODE GIMP_DISSOLVE_MODE
+         symbols => [ qw(GIMP_NORMAL_SRGB_MODE GIMP_DISSOLVE_MODE
                          GIMP_BEHIND_MODE GIMP_MULTIPLY_MODE
                          GIMP_SCREEN_MODE GIMP_OVERLAY_MODE
                          GIMP_DIFFERENCE_MODE GIMP_ADDITION_MODE
@@ -707,8 +707,8 @@ package Gimp::CodeGen::enums;
                          GIMP_GRAIN_MERGE_MODE GIMP_COLOR_ERASE_MODE
                          GIMP_NEW_OVERLAY_MODE GIMP_LCH_HUE_MODE
                          GIMP_LCH_CHROMA_MODE GIMP_LCH_COLOR_MODE
-                         GIMP_LCH_LIGHTNESS_MODE) ],
-         mapping => { GIMP_NORMAL_MODE => '0',
+                         GIMP_LCH_LIGHTNESS_MODE GIMP_NORMAL_MODE) ],
+         mapping => { GIMP_NORMAL_SRGB_MODE => '0',
                       GIMP_DISSOLVE_MODE => '1',
                       GIMP_BEHIND_MODE => '2',
                       GIMP_MULTIPLY_MODE => '3',
@@ -735,7 +735,8 @@ package Gimp::CodeGen::enums;
                       GIMP_LCH_HUE_MODE => '24',
                       GIMP_LCH_CHROMA_MODE => '25',
                       GIMP_LCH_COLOR_MODE => '26',
-                      GIMP_LCH_LIGHTNESS_MODE => '27' }
+                      GIMP_LCH_LIGHTNESS_MODE => '27',
+                      GIMP_NORMAL_MODE => '28' }
        },
     GimpBrushApplicationMode =>
        { contig => 1,


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