[gimp/blend-tool-fun: 2/5] operations: Make GimpOperationBlend a filter.
- From: Michael Henning <mhenning src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/blend-tool-fun: 2/5] operations: Make GimpOperationBlend a filter.
- Date: Mon, 27 Apr 2015 03:15:24 +0000 (UTC)
commit 9e0dc028e0ac2c82827e09582963d30a779535f7
Author: Michael Henning <drawoc darkrefraction com>
Date: Sun Apr 26 22:39:41 2015 -0400
operations: Make GimpOperationBlend a filter.
app/operations/gimpoperationblend.c | 8 +++++---
app/operations/gimpoperationblend.h | 4 ++--
2 files changed, 7 insertions(+), 5 deletions(-)
---
diff --git a/app/operations/gimpoperationblend.c b/app/operations/gimpoperationblend.c
index 36aa5f6..5759e32 100644
--- a/app/operations/gimpoperationblend.c
+++ b/app/operations/gimpoperationblend.c
@@ -160,12 +160,13 @@ static void gradient_put_pixel (gint x,
gpointer put_pixel_data);
static gboolean gimp_operation_blend_process (GeglOperation *operation,
+ GeglBuffer *input,
GeglBuffer *output,
const GeglRectangle *result,
gint level);
G_DEFINE_TYPE (GimpOperationBlend, gimp_operation_blend,
- GEGL_TYPE_OPERATION_SOURCE)
+ GEGL_TYPE_OPERATION_FILTER)
#define parent_class gimp_operation_blend_parent_class
@@ -174,7 +175,7 @@ gimp_operation_blend_class_init (GimpOperationBlendClass *klass)
{
GObjectClass *object_class = G_OBJECT_CLASS (klass);
GeglOperationClass *operation_class = GEGL_OPERATION_CLASS (klass);
- GeglOperationSourceClass *source_class = GEGL_OPERATION_SOURCE_CLASS (klass);
+ GeglOperationFilterClass *filter_class = GEGL_OPERATION_FILTER_CLASS (klass);
object_class->dispose = gimp_operation_blend_dispose;
object_class->set_property = gimp_operation_blend_set_property;
@@ -183,7 +184,7 @@ gimp_operation_blend_class_init (GimpOperationBlendClass *klass)
operation_class->prepare = gimp_operation_blend_prepare;
operation_class->get_bounding_box = gimp_operation_blend_get_bounding_box;
- source_class->process = gimp_operation_blend_process;
+ filter_class->process = gimp_operation_blend_process;
gegl_operation_class_set_keys (operation_class,
"name", "gimp:blend",
@@ -969,6 +970,7 @@ gradient_put_pixel (gint x,
static gboolean
gimp_operation_blend_process (GeglOperation *operation,
+ GeglBuffer *input,
GeglBuffer *output,
const GeglRectangle *result,
gint level)
diff --git a/app/operations/gimpoperationblend.h b/app/operations/gimpoperationblend.h
index c121651..61bd319 100644
--- a/app/operations/gimpoperationblend.h
+++ b/app/operations/gimpoperationblend.h
@@ -38,7 +38,7 @@ typedef struct _GimpOperationBlendClass GimpOperationBlendClass;
struct _GimpOperationBlend
{
- GeglOperationSource parent_instance;
+ GeglOperationFilter parent_instance;
GimpContext *context;
@@ -58,7 +58,7 @@ struct _GimpOperationBlend
struct _GimpOperationBlendClass
{
- GeglOperationSourceClass parent_class;
+ GeglOperationFilterClass parent_class;
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]