[gimp] Revert "app: save first and last color of the blend tool gradient..."
- From: Jehan Pagès <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] Revert "app: save first and last color of the blend tool gradient..."
- Date: Thu, 8 Oct 2015 17:34:45 +0000 (UTC)
commit 662ade6911a1c76993986987b79dda7ce7ba156c
Author: Jehan <jehan girinstud io>
Date: Thu Oct 8 19:14:52 2015 +0200
Revert "app: save first and last color of the blend tool gradient..."
This reverts commit 2cef834198c4e494be78d3f7b56ec26b2dd124a6.
This feature is "undiscoverable" according to Mitch, and we are not sure
how much the endpoint colors are special to the user.
app/core/gimpdrawable-blend.c | 8 --------
1 files changed, 0 insertions(+), 8 deletions(-)
---
diff --git a/app/core/gimpdrawable-blend.c b/app/core/gimpdrawable-blend.c
index 2787097..e4f92a1 100644
--- a/app/core/gimpdrawable-blend.c
+++ b/app/core/gimpdrawable-blend.c
@@ -34,7 +34,6 @@
#include "gegl/gimp-gegl-utils.h"
#include "gimp.h"
-#include "gimp-palettes.h"
#include "gimp-utils.h"
#include "gimpchannel.h"
#include "gimpcontext.h"
@@ -184,7 +183,6 @@ gimp_drawable_blend (GimpDrawable *drawable,
{
GimpImage *image;
GeglBuffer *buffer;
- GimpRGB color;
gint x, y, width, height;
g_return_if_fail (GIMP_IS_DRAWABLE (drawable));
@@ -200,12 +198,6 @@ gimp_drawable_blend (GimpDrawable *drawable,
gimp_set_busy (image->gimp);
- /* Let's save the first and last color of a gradient. */
- gimp_gradient_get_color_at (gradient, context, NULL, 0.0, FALSE, &color);
- gimp_palettes_add_color_history (context->gimp, &color);
- gimp_gradient_get_color_at (gradient, context, NULL, 1.0, FALSE, &color);
- gimp_palettes_add_color_history (context->gimp, &color);
-
/* Always create an alpha temp buf (for generality) */
buffer = gegl_buffer_new (GEGL_RECTANGLE (0, 0, width, height),
gimp_drawable_get_format_with_alpha (drawable));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]