Commit 3f9e8200 authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer

renamed this class...

2008-10-12  Michael Natterer  <mitch@gimp.org>

	* app/gegl/gimpoperationpointcomposer.[ch]: renamed this class...

	* app/gegl/gimpoperationlayermode.[ch]: ...to this and add
	an own process() virtual function so we are free to hack even
	more badly in order to support legacy layer modes and proper
	ones which do meningfiul things to alpha. Simply redirect
	GeglOperationPointComposer's compose() calls to our own vfunc
	for now.

	* app/gegl/gegl-types.h
	* app/gegl/Makefile.am: changed accordingly.

	* app/gegl/gimpoperation*mode.[ch]: changed parent class and
	implemented process() method accordingly.


svn path=/trunk/; revision=27251
parent 931482e5
2008-10-12 Michael Natterer <mitch@gimp.org>
* app/gegl/gimpoperationpointcomposer.[ch]: renamed this class...
* app/gegl/gimpoperationlayermode.[ch]: ...to this and add
an own process() virtual function so we are free to hack even
more badly in order to support legacy layer modes and proper
ones which do meningfiul things to alpha. Simply redirect
GeglOperationPointComposer's compose() calls to our own vfunc
for now.
* app/gegl/gegl-types.h
* app/gegl/Makefile.am: changed accordingly.
* app/gegl/gimpoperation*mode.[ch]: changed parent class and
implemented process() method accordingly.
2008-10-12 Michael Natterer <mitch@gimp.org>
* app/gegl/gimpoperationadditionmode.c: commit some #if 0'ed
......
......@@ -64,8 +64,8 @@ libappgegl_a_SOURCES = \
gimpoperationthreshold.c \
gimpoperationthreshold.h \
\
gimpoperationpointcomposer.c \
gimpoperationpointcomposer.h \
gimpoperationlayermode.c \
gimpoperationlayermode.h \
gimpoperationdissolvemode.c \
gimpoperationdissolvemode.h \
gimpoperationbehindmode.c \
......
......@@ -40,7 +40,7 @@ typedef struct _GimpOperationLevels GimpOperationLevels;
typedef struct _GimpOperationPosterize GimpOperationPosterize;
typedef struct _GimpOperationThreshold GimpOperationThreshold;
typedef struct _GimpOperationPointComposer GimpOperationPointComposer;
typedef struct _GimpOperationLayerMode GimpOperationLayerMode;
typedef struct _GimpOperationDissolveMode GimpOperationDissolveMode;
typedef struct _GimpOperationBehindMode GimpOperationBehindMode;
typedef struct _GimpOperationMultiplyMode GimpOperationMultiplyMode;
......
......@@ -37,19 +37,19 @@ static gboolean gimp_operation_addition_mode_process (GeglOperation *opera
G_DEFINE_TYPE (GimpOperationAdditionMode, gimp_operation_addition_mode,
GIMP_TYPE_OPERATION_POINT_COMPOSER)
GIMP_TYPE_OPERATION_LAYER_MODE)
static void
gimp_operation_addition_mode_class_init (GimpOperationAdditionModeClass *klass)
{
GeglOperationClass *operation_class = GEGL_OPERATION_CLASS (klass);
GeglOperationPointComposerClass *point_class = GEGL_OPERATION_POINT_COMPOSER_CLASS (klass);
GeglOperationClass *operation_class = GEGL_OPERATION_CLASS (klass);
GimpOperationLayerModeClass *mode_class = GIMP_OPERATION_LAYER_MODE_CLASS (klass);
operation_class->name = "gimp-addition-mode";
operation_class->description = "GIMP addition mode operation";
point_class->process = gimp_operation_addition_mode_process;
mode_class->process = gimp_operation_addition_mode_process;
}
static void
......@@ -71,7 +71,7 @@ gimp_operation_addition_mode_process (GeglOperation *operation,
while (samples--)
{
if 1
#if 1
dest[RED_PIX] = src[RED_PIX] + aux[RED_PIX];
dest[GREEN_PIX] = src[GREEN_PIX] + aux[GREEN_PIX];
dest[BLUE_PIX] = src[BLUE_PIX] + aux[BLUE_PIX];
......
......@@ -23,7 +23,7 @@
#define __GIMP_OPERATION_ADDITION_MODE_H__
#include "gimpoperationpointcomposer.h"
#include "gimpoperationlayermode.h"
#define GIMP_TYPE_OPERATION_ADDITION_MODE (gimp_operation_addition_mode_get_type ())
......@@ -38,12 +38,12 @@ typedef struct _GimpOperationAdditionModeClass GimpOperationAdditionModeClass;
struct _GimpOperationAdditionMode
{
GimpOperationPointComposer parent_instance;
GimpOperationLayerMode parent_instance;
};
struct _GimpOperationAdditionModeClass
{
GimpOperationPointComposerClass parent_class;
GimpOperationLayerModeClass parent_class;
};
......
......@@ -37,19 +37,19 @@ static gboolean gimp_operation_anti_erase_mode_process (GeglOperation *ope
G_DEFINE_TYPE (GimpOperationAntiEraseMode, gimp_operation_anti_erase_mode,
GIMP_TYPE_OPERATION_POINT_COMPOSER)
GIMP_TYPE_OPERATION_LAYER_MODE)
static void
gimp_operation_anti_erase_mode_class_init (GimpOperationAntiEraseModeClass *klass)
{
GeglOperationClass *operation_class = GEGL_OPERATION_CLASS (klass);
GeglOperationPointComposerClass *point_class = GEGL_OPERATION_POINT_COMPOSER_CLASS (klass);
GeglOperationClass *operation_class = GEGL_OPERATION_CLASS (klass);
GimpOperationLayerModeClass *mode_class = GIMP_OPERATION_LAYER_MODE_CLASS (klass);
operation_class->name = "gimp-anti-erase-mode";
operation_class->description = "GIMP anti erase mode operation";
point_class->process = gimp_operation_anti_erase_mode_process;
mode_class->process = gimp_operation_anti_erase_mode_process;
}
static void
......
......@@ -23,7 +23,7 @@
#define __GIMP_OPERATION_ANTI_ERASE_MODE_H__
#include "gimpoperationpointcomposer.h"
#include "gimpoperationlayermode.h"
#define GIMP_TYPE_OPERATION_ANTI_ERASE_MODE (gimp_operation_anti_erase_mode_get_type ())
......@@ -38,12 +38,12 @@ typedef struct _GimpOperationAntiEraseModeClass GimpOperationAntiEraseModeClass;
struct _GimpOperationAntiEraseMode
{
GimpOperationPointComposer parent_instance;
GimpOperationLayerMode parent_instance;
};
struct _GimpOperationAntiEraseModeClass
{
GimpOperationPointComposerClass parent_class;
GimpOperationLayerModeClass parent_class;
};
......
......@@ -37,19 +37,19 @@ static gboolean gimp_operation_behind_mode_process (GeglOperation *operati
G_DEFINE_TYPE (GimpOperationBehindMode, gimp_operation_behind_mode,
GIMP_TYPE_OPERATION_POINT_COMPOSER)
GIMP_TYPE_OPERATION_LAYER_MODE)
static void
gimp_operation_behind_mode_class_init (GimpOperationBehindModeClass *klass)
{
GeglOperationClass *operation_class = GEGL_OPERATION_CLASS (klass);
GeglOperationPointComposerClass *point_class = GEGL_OPERATION_POINT_COMPOSER_CLASS (klass);
GeglOperationClass *operation_class = GEGL_OPERATION_CLASS (klass);
GimpOperationLayerModeClass *mode_class = GIMP_OPERATION_LAYER_MODE_CLASS (klass);
operation_class->name = "gimp-behind-mode";
operation_class->description = "GIMP behind mode operation";
point_class->process = gimp_operation_behind_mode_process;
mode_class->process = gimp_operation_behind_mode_process;
}
static void
......
......@@ -23,7 +23,7 @@
#define __GIMP_OPERATION_BEHIND_MODE_H__
#include "gimpoperationpointcomposer.h"
#include "gimpoperationlayermode.h"
#define GIMP_TYPE_OPERATION_BEHIND_MODE (gimp_operation_behind_mode_get_type ())
......@@ -38,12 +38,12 @@ typedef struct _GimpOperationBehindModeClass GimpOperationBehindModeClass;
struct _GimpOperationBehindMode
{
GimpOperationPointComposer parent_instance;
GimpOperationLayerMode parent_instance;
};
struct _GimpOperationBehindModeClass
{
GimpOperationPointComposerClass parent_class;
GimpOperationLayerModeClass parent_class;
};
......
......@@ -37,19 +37,19 @@ static gboolean gimp_operation_burn_mode_process (GeglOperation *operation
G_DEFINE_TYPE (GimpOperationBurnMode, gimp_operation_burn_mode,
GIMP_TYPE_OPERATION_POINT_COMPOSER)
GIMP_TYPE_OPERATION_LAYER_MODE)
static void
gimp_operation_burn_mode_class_init (GimpOperationBurnModeClass *klass)
{
GeglOperationClass *operation_class = GEGL_OPERATION_CLASS (klass);
GeglOperationPointComposerClass *point_class = GEGL_OPERATION_POINT_COMPOSER_CLASS (klass);
GeglOperationClass *operation_class = GEGL_OPERATION_CLASS (klass);
GimpOperationLayerModeClass *mode_class = GIMP_OPERATION_LAYER_MODE_CLASS (klass);
operation_class->name = "gimp-burn-mode";
operation_class->description = "GIMP burn mode operation";
point_class->process = gimp_operation_burn_mode_process;
mode_class->process = gimp_operation_burn_mode_process;
}
static void
......
......@@ -23,7 +23,7 @@
#define __GIMP_OPERATION_BURN_MODE_H__
#include "gimpoperationpointcomposer.h"
#include "gimpoperationlayermode.h"
#define GIMP_TYPE_OPERATION_BURN_MODE (gimp_operation_burn_mode_get_type ())
......@@ -38,12 +38,12 @@ typedef struct _GimpOperationBurnModeClass GimpOperationBurnModeClass;
struct _GimpOperationBurnMode
{
GimpOperationPointComposer parent_instance;
GimpOperationLayerMode parent_instance;
};
struct _GimpOperationBurnModeClass
{
GimpOperationPointComposerClass parent_class;
GimpOperationLayerModeClass parent_class;
};
......
......@@ -37,19 +37,19 @@ static gboolean gimp_operation_color_erase_mode_process (GeglOperation *op
G_DEFINE_TYPE (GimpOperationColorEraseMode, gimp_operation_color_erase_mode,
GIMP_TYPE_OPERATION_POINT_COMPOSER)
GIMP_TYPE_OPERATION_LAYER_MODE)
static void
gimp_operation_color_erase_mode_class_init (GimpOperationColorEraseModeClass *klass)
{
GeglOperationClass *operation_class = GEGL_OPERATION_CLASS (klass);
GeglOperationPointComposerClass *point_class = GEGL_OPERATION_POINT_COMPOSER_CLASS (klass);
GeglOperationClass *operation_class = GEGL_OPERATION_CLASS (klass);
GimpOperationLayerModeClass *mode_class = GIMP_OPERATION_LAYER_MODE_CLASS (klass);
operation_class->name = "gimp-color-erase-mode";
operation_class->description = "GIMP color erase mode operation";
point_class->process = gimp_operation_color_erase_mode_process;
mode_class->process = gimp_operation_color_erase_mode_process;
}
static void
......
......@@ -23,7 +23,7 @@
#define __GIMP_OPERATION_COLOR_ERASE_MODE_H__
#include "gimpoperationpointcomposer.h"
#include "gimpoperationlayermode.h"
#define GIMP_TYPE_OPERATION_COLOR_ERASE_MODE (gimp_operation_color_erase_mode_get_type ())
......@@ -38,12 +38,12 @@ typedef struct _GimpOperationColorEraseModeClass GimpOperationColorEraseModeClas
struct _GimpOperationColorEraseMode
{
GimpOperationPointComposer parent_instance;
GimpOperationLayerMode parent_instance;
};
struct _GimpOperationColorEraseModeClass
{
GimpOperationPointComposerClass parent_class;
GimpOperationLayerModeClass parent_class;
};
......
......@@ -37,19 +37,19 @@ static gboolean gimp_operation_color_mode_process (GeglOperation *operatio
G_DEFINE_TYPE (GimpOperationColorMode, gimp_operation_color_mode,
GIMP_TYPE_OPERATION_POINT_COMPOSER)
GIMP_TYPE_OPERATION_LAYER_MODE)
static void
gimp_operation_color_mode_class_init (GimpOperationColorModeClass *klass)
{
GeglOperationClass *operation_class = GEGL_OPERATION_CLASS (klass);
GeglOperationPointComposerClass *point_class = GEGL_OPERATION_POINT_COMPOSER_CLASS (klass);
GeglOperationClass *operation_class = GEGL_OPERATION_CLASS (klass);
GimpOperationLayerModeClass *mode_class = GIMP_OPERATION_LAYER_MODE_CLASS (klass);
operation_class->name = "gimp-color-mode";
operation_class->description = "GIMP color mode operation";
point_class->process = gimp_operation_color_mode_process;
mode_class->process = gimp_operation_color_mode_process;
}
static void
......
......@@ -23,7 +23,7 @@
#define __GIMP_OPERATION_COLOR_MODE_H__
#include "gimpoperationpointcomposer.h"
#include "gimpoperationlayermode.h"
#define GIMP_TYPE_OPERATION_COLOR_MODE (gimp_operation_color_mode_get_type ())
......@@ -38,12 +38,12 @@ typedef struct _GimpOperationColorModeClass GimpOperationColorModeClass;
struct _GimpOperationColorMode
{
GimpOperationPointComposer parent_instance;
GimpOperationLayerMode parent_instance;
};
struct _GimpOperationColorModeClass
{
GimpOperationPointComposerClass parent_class;
GimpOperationLayerModeClass parent_class;
};
......
......@@ -37,19 +37,19 @@ static gboolean gimp_operation_darken_only_mode_process (GeglOperation *op
G_DEFINE_TYPE (GimpOperationDarkenOnlyMode, gimp_operation_darken_only_mode,
GIMP_TYPE_OPERATION_POINT_COMPOSER)
GIMP_TYPE_OPERATION_LAYER_MODE)
static void
gimp_operation_darken_only_mode_class_init (GimpOperationDarkenOnlyModeClass *klass)
{
GeglOperationClass *operation_class = GEGL_OPERATION_CLASS (klass);
GeglOperationPointComposerClass *point_class = GEGL_OPERATION_POINT_COMPOSER_CLASS (klass);
GeglOperationClass *operation_class = GEGL_OPERATION_CLASS (klass);
GimpOperationLayerModeClass *mode_class = GIMP_OPERATION_LAYER_MODE_CLASS (klass);
operation_class->name = "gimp-darken-only-mode";
operation_class->description = "GIMP darken only mode operation";
point_class->process = gimp_operation_darken_only_mode_process;
mode_class->process = gimp_operation_darken_only_mode_process;
}
static void
......
......@@ -23,7 +23,7 @@
#define __GIMP_OPERATION_DARKEN_ONLY_MODE_H__
#include "gimpoperationpointcomposer.h"
#include "gimpoperationlayermode.h"
#define GIMP_TYPE_OPERATION_DARKEN_ONLY_MODE (gimp_operation_darken_only_mode_get_type ())
......@@ -38,12 +38,12 @@ typedef struct _GimpOperationDarkenOnlyModeClass GimpOperationDarkenOnlyModeClas
struct _GimpOperationDarkenOnlyMode
{
GimpOperationPointComposer parent_instance;
GimpOperationLayerMode parent_instance;
};
struct _GimpOperationDarkenOnlyModeClass
{
GimpOperationPointComposerClass parent_class;
GimpOperationLayerModeClass parent_class;
};
......
......@@ -37,19 +37,19 @@ static gboolean gimp_operation_difference_mode_process (GeglOperation *ope
G_DEFINE_TYPE (GimpOperationDifferenceMode, gimp_operation_difference_mode,
GIMP_TYPE_OPERATION_POINT_COMPOSER)
GIMP_TYPE_OPERATION_LAYER_MODE)
static void
gimp_operation_difference_mode_class_init (GimpOperationDifferenceModeClass *klass)
{
GeglOperationClass *operation_class = GEGL_OPERATION_CLASS (klass);
GeglOperationPointComposerClass *point_class = GEGL_OPERATION_POINT_COMPOSER_CLASS (klass);
GeglOperationClass *operation_class = GEGL_OPERATION_CLASS (klass);
GimpOperationLayerModeClass *mode_class = GIMP_OPERATION_LAYER_MODE_CLASS (klass);
operation_class->name = "gimp-difference-mode";
operation_class->description = "GIMP difference mode operation";
point_class->process = gimp_operation_difference_mode_process;
mode_class->process = gimp_operation_difference_mode_process;
}
static void
......
......@@ -23,7 +23,7 @@
#define __GIMP_OPERATION_DIFFERENCE_MODE_H__
#include "gimpoperationpointcomposer.h"
#include "gimpoperationlayermode.h"
#define GIMP_TYPE_OPERATION_DIFFERENCE_MODE (gimp_operation_difference_mode_get_type ())
......@@ -38,12 +38,12 @@ typedef struct _GimpOperationDifferenceModeClass GimpOperationDifferenceModeClas
struct _GimpOperationDifferenceMode
{
GimpOperationPointComposer parent_instance;
GimpOperationLayerMode parent_instance;
};
struct _GimpOperationDifferenceModeClass
{
GimpOperationPointComposerClass parent_class;
GimpOperationLayerModeClass parent_class;
};
......
......@@ -37,19 +37,19 @@ static gboolean gimp_operation_dissolve_mode_process (GeglOperation *opera
G_DEFINE_TYPE (GimpOperationDissolveMode, gimp_operation_dissolve_mode,
GIMP_TYPE_OPERATION_POINT_COMPOSER)
GIMP_TYPE_OPERATION_LAYER_MODE)
static void
gimp_operation_dissolve_mode_class_init (GimpOperationDissolveModeClass *klass)
{
GeglOperationClass *operation_class = GEGL_OPERATION_CLASS (klass);
GeglOperationPointComposerClass *point_class = GEGL_OPERATION_POINT_COMPOSER_CLASS (klass);
GeglOperationClass *operation_class = GEGL_OPERATION_CLASS (klass);
GimpOperationLayerModeClass *mode_class = GIMP_OPERATION_LAYER_MODE_CLASS (klass);
operation_class->name = "gimp-dissolve-mode";
operation_class->description = "GIMP dissolve mode operation";
point_class->process = gimp_operation_dissolve_mode_process;
mode_class->process = gimp_operation_dissolve_mode_process;
}
static void
......
......@@ -23,7 +23,7 @@
#define __GIMP_OPERATION_DISSOLVE_MODE_H__
#include "gimpoperationpointcomposer.h"
#include "gimpoperationlayermode.h"
#define GIMP_TYPE_OPERATION_DISSOLVE_MODE (gimp_operation_dissolve_mode_get_type ())
......@@ -38,12 +38,12 @@ typedef struct _GimpOperationDissolveModeClass GimpOperationDissolveModeClass;
struct _GimpOperationDissolveMode
{
GimpOperationPointComposer parent_instance;
GimpOperationLayerMode parent_instance;
};
struct _GimpOperationDissolveModeClass
{
GimpOperationPointComposerClass parent_class;
GimpOperationLayerModeClass parent_class;
};
......
......@@ -37,19 +37,19 @@ static gboolean gimp_operation_divide_mode_process (GeglOperation *operati
G_DEFINE_TYPE (GimpOperationDivideMode, gimp_operation_divide_mode,
GIMP_TYPE_OPERATION_POINT_COMPOSER)
GIMP_TYPE_OPERATION_LAYER_MODE)
static void
gimp_operation_divide_mode_class_init (GimpOperationDivideModeClass *klass)
{
GeglOperationClass *operation_class = GEGL_OPERATION_CLASS (klass);
GeglOperationPointComposerClass *point_class = GEGL_OPERATION_POINT_COMPOSER_CLASS (klass);
GeglOperationClass *operation_class = GEGL_OPERATION_CLASS (klass);
GimpOperationLayerModeClass *mode_class = GIMP_OPERATION_LAYER_MODE_CLASS (klass);
operation_class->name = "gimp-divide-mode";
operation_class->description = "GIMP divide mode operation";
point_class->process = gimp_operation_divide_mode_process;
mode_class->process = gimp_operation_divide_mode_process;
}
static void
......
......@@ -23,7 +23,7 @@
#define __GIMP_OPERATION_DIVIDE_MODE_H__
#include "gimpoperationpointcomposer.h"
#include "gimpoperationlayermode.h"
#define GIMP_TYPE_OPERATION_DIVIDE_MODE (gimp_operation_divide_mode_get_type ())
......@@ -38,12 +38,12 @@ typedef struct _GimpOperationDivideModeClass GimpOperationDivideModeClass;
struct _GimpOperationDivideMode
{
GimpOperationPointComposer parent_instance;
GimpOperationLayerMode parent_instance;
};
struct _GimpOperationDivideModeClass
{
GimpOperationPointComposerClass parent_class;
GimpOperationLayerModeClass parent_class;
};
......
......@@ -37,19 +37,19 @@ static gboolean gimp_operation_dodge_mode_process (GeglOperation *operatio
G_DEFINE_TYPE (GimpOperationDodgeMode, gimp_operation_dodge_mode,
GIMP_TYPE_OPERATION_POINT_COMPOSER)
GIMP_TYPE_OPERATION_LAYER_MODE)
static void
gimp_operation_dodge_mode_class_init (GimpOperationDodgeModeClass *klass)
{
GeglOperationClass *operation_class = GEGL_OPERATION_CLASS (klass);
GeglOperationPointComposerClass *point_class = GEGL_OPERATION_POINT_COMPOSER_CLASS (klass);
GeglOperationClass *operation_class = GEGL_OPERATION_CLASS (klass);
GimpOperationLayerModeClass *mode_class = GIMP_OPERATION_LAYER_MODE_CLASS (klass);
operation_class->name = "gimp-dodge-mode";
operation_class->description = "GIMP dodge mode operation";
point_class->process = gimp_operation_dodge_mode_process;
mode_class->process = gimp_operation_dodge_mode_process;
}
static void
......
......@@ -23,7 +23,7 @@
#define __GIMP_OPERATION_DODGE_MODE_H__
#include "gimpoperationpointcomposer.h"
#include "gimpoperationlayermode.h"
#define GIMP_TYPE_OPERATION_DODGE_MODE (gimp_operation_dodge_mode_get_type ())
......@@ -38,12 +38,12 @@ typedef struct _GimpOperationDodgeModeClass GimpOperationDodgeModeClass;
struct _GimpOperationDodgeMode
{
GimpOperationPointComposer parent_instance;
GimpOperationLayerMode parent_instance;
};
struct _GimpOperationDodgeModeClass
{
GimpOperationPointComposerClass parent_class;
GimpOperationLayerModeClass parent_class;
};
......
......@@ -37,19 +37,19 @@ static gboolean gimp_operation_erase_mode_process (GeglOperation *operatio
G_DEFINE_TYPE (GimpOperationEraseMode, gimp_operation_erase_mode,
GIMP_TYPE_OPERATION_POINT_COMPOSER)
GIMP_TYPE_OPERATION_LAYER_MODE)
static void
gimp_operation_erase_mode_class_init (GimpOperationEraseModeClass *klass)
{
GeglOperationClass *operation_class = GEGL_OPERATION_CLASS (klass);
GeglOperationPointComposerClass *point_class = GEGL_OPERATION_POINT_COMPOSER_CLASS (klass);
GeglOperationClass *operation_class = GEGL_OPERATION_CLASS (klass);
GimpOperationLayerModeClass *mode_class = GIMP_OPERATION_LAYER_MODE_CLASS (klass);
operation_class->name = "gimp-erase-mode";
operation_class->description = "GIMP erase mode operation";
point_class->process = gimp_operation_erase_mode_process;
mode_class->process = gimp_operation_erase_mode_process;
}
static void
......
......@@ -23,7 +23,7 @@
#define __GIMP_OPERATION_ERASE_MODE_H__
#include "gimpoperationpointcomposer.h"
#include "gimpoperationlayermode.h"
#define GIMP_TYPE_OPERATION_ERASE_MODE (gimp_operation_erase_mode_get_type ())
......@@ -38,12 +38,12 @@ typedef struct _GimpOperationEraseModeClass GimpOperationEraseModeClass;
struct _GimpOperationEraseMode
{
GimpOperationPointComposer parent_instance;
GimpOperationLayerMode parent_instance;
};
struct _GimpOperationEraseModeClass
{
GimpOperationPointComposerClass parent_class;
GimpOperationLayerModeClass parent_class;
};
......
......@@ -37,19 +37,19 @@ static gboolean gimp_operation_grain_extract_mode_process (GeglOperation *
G_DEFINE_TYPE (GimpOperationGrainExtractMode, gimp_operation_grain_extract_mode,
GIMP_TYPE_OPERATION_POINT_COMPOSER)
GIMP_TYPE_OPERATION_LAYER_MODE)
static void
gimp_operation_grain_extract_mode_class_init (GimpOperationGrainExtractModeClass *klass)
{
GeglOperationClass *operation_class = GEGL_OPERATION_CLASS (klass);
GeglOperationPointComposerClass *point_class = GEGL_OPERATION_POINT_COMPOSER_CLASS (klass);
GeglOperationClass *operation_class = GEGL_OPERATION_CLASS (klass);
GimpOperationLayerModeClass *mode_class = GIMP_OPERATION_LAYER_MODE_CLASS (klass);
operation_class->name = "gimp-grain-extract-mode";
operation_class->description = "GIMP grain extract mode operation";
point_class->process = gimp_operation_grain_extract_mode_process;
mode_class->process = gimp_operation_grain_extract_mode_process;
}
static void
......
......@@ -23,7 +23,7 @@
#define __GIMP_OPERATION_GRAIN_EXTRACT_MODE_H__
#include "gimpoperationpointcomposer.h"
#include "gimpoperationlayermode.h"
#define GIMP_TYPE_OPERATION_GRAIN_EXTRACT_MODE (gimp_operation_grain_extract_mode_get_type ())
......@@ -38,12 +38,12 @@ typedef struct _GimpOperationGrainExtractModeClass GimpOperationGrainExtractMode
struct _GimpOperationGrainExtractMode
{
GimpOperationPointComposer parent_instance;
GimpOperationLayerMode parent_instance;
};
struct _GimpOperationGrainExtractModeClass
{
GimpOperationPointComposerClass parent_class;
GimpOperationLayerModeClass parent_class;
};
......
......@@ -37,19 +37,19 @@ static gboolean gimp_operation_grain_merge_mode_process (GeglOperation *op
G_DEFINE_TYPE (GimpOperationGrainMergeMode, gimp_operation_grain_merge_mode,
GIMP_TYPE_OPERATION_POINT_COMPOSER)
GIMP_TYPE_OPERATION_LAYER_MODE)
static void
gimp_operation_grain_merge_mode_class_init (GimpOperationGrainMergeModeClass *klass)
{
GeglOperationClass *operation_class = GEGL_OPERATION_CLASS (klass);
GeglOperationPointComposerClass *point_class = GEGL_OPERATION_POINT_COMPOSER_CLASS (klass);
GeglOperationClass *operation_class = GEGL_OPERATION_CLASS (klass);
GimpOperationLayerModeClass *mode_class = GIMP_OPERATION_LAYER_MODE_CLASS (klass);
operation_class->name = "gimp-grain-merge-mode";
operation_class->description = "GIMP grain merge mode operation";
point_class->process = gimp_operation_grain_merge_mode_process;
mode_class->process = gimp_operation_grain_merge_mode_process;
}
static void
......