[gimp] app: fix the build after the GimpGradientBlendColorSpace commit
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: fix the build after the GimpGradientBlendColorSpace commit
- Date: Fri, 13 Apr 2018 21:13:33 +0000 (UTC)
commit 99ea6f91e20868838062fc156cb6f9c112e2979f
Author: Michael Natterer <mitch gimp org>
Date: Fri Apr 13 23:12:21 2018 +0200
app: fix the build after the GimpGradientBlendColorSpace commit
Somehow, gimppalette-import.c was not rebuilt on my system,
leaving one gimp_gradient_get_color_at() unchanged.
app/core/gimppalette-import.c | 14 ++++++++------
app/core/gimppalette-import.h | 1 +
app/dialogs/palette-import-dialog.c | 1 +
3 files changed, 10 insertions(+), 6 deletions(-)
---
diff --git a/app/core/gimppalette-import.c b/app/core/gimppalette-import.c
index 1666693..b48a838 100644
--- a/app/core/gimppalette-import.c
+++ b/app/core/gimppalette-import.c
@@ -46,11 +46,12 @@
/* create a palette from a gradient ****************************************/
GimpPalette *
-gimp_palette_import_from_gradient (GimpGradient *gradient,
- GimpContext *context,
- gboolean reverse,
- const gchar *palette_name,
- gint n_colors)
+gimp_palette_import_from_gradient (GimpGradient *gradient,
+ GimpContext *context,
+ gboolean reverse,
+ GimpGradientBlendColorSpace blend_color_space,
+ const gchar *palette_name,
+ gint n_colors)
{
GimpPalette *palette;
GimpGradientSegment *seg = NULL;
@@ -70,7 +71,8 @@ gimp_palette_import_from_gradient (GimpGradient *gradient,
for (i = 0, cur_x = 0; i < n_colors; i++, cur_x += dx)
{
seg = gimp_gradient_get_color_at (gradient, context,
- seg, cur_x, reverse, &color);
+ seg, cur_x, reverse, blend_color_space,
+ &color);
gimp_palette_add_entry (palette, -1, NULL, &color);
}
diff --git a/app/core/gimppalette-import.h b/app/core/gimppalette-import.h
index 2597842..69dcc1c 100644
--- a/app/core/gimppalette-import.h
+++ b/app/core/gimppalette-import.h
@@ -22,6 +22,7 @@
GimpPalette * gimp_palette_import_from_gradient (GimpGradient *gradient,
GimpContext *context,
gboolean reverse,
+ GimpGradientBlendColorSpace blend_color_space,
const gchar *palette_name,
gint n_colors);
GimpPalette * gimp_palette_import_from_image (GimpImage *image,
diff --git a/app/dialogs/palette-import-dialog.c b/app/dialogs/palette-import-dialog.c
index 261b125..4ca95b8 100644
--- a/app/dialogs/palette-import-dialog.c
+++ b/app/dialogs/palette-import-dialog.c
@@ -792,6 +792,7 @@ palette_import_make_palette (ImportDialog *private)
palette = gimp_palette_import_from_gradient (gradient,
private->context,
FALSE,
+ GIMP_GRADIENT_BLEND_RGB_PERCEPTUAL,
palette_name,
n_colors);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]