libgimpcolor, app, modules, plug-ins: remove GEGL_ITERATOR2 define
... it's no longer needed, since GEGL commit gegl@9dcd2cde63f95a080bf16a58c10e9ffbdd99aace. Partially reverts commits:6fca9959c7cc10af72cc49c53568d78edbc0d49129f63616d23a2014984dee48ec68774165a315d5764085278fb7633c722e6ab12061b7754a3c5b1822b4b647bd55b3438328c6d23add65f03a84d607822f9f0d2b95358ca1facdda37f4ee41e80356356761da42b2fb5d7832a897ed7817d846e9036578ea9c5e6a4924fbdfb591beb4ecb2384b77831e03fcf113a39c567ffe94ff
This commit is contained in:
parent
dac9bfe334
commit
053e5edc93
41 changed files with 6 additions and 63 deletions
|
|
@ -18,7 +18,6 @@
|
|||
#include "config.h"
|
||||
|
||||
#include <cairo.h>
|
||||
#define GEGL_ITERATOR2_API
|
||||
#include <gegl.h>
|
||||
#include <gdk-pixbuf/gdk-pixbuf.h>
|
||||
|
||||
|
|
|
|||
|
|
@ -15,8 +15,6 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#define GEGL_ITERATOR2_API
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
|
|
|
|||
|
|
@ -17,8 +17,6 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#define GEGL_ITERATOR2_API
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <string.h>
|
||||
|
|
|
|||
|
|
@ -136,7 +136,6 @@
|
|||
|
||||
#include <cairo.h>
|
||||
#include <gdk-pixbuf/gdk-pixbuf.h>
|
||||
#define GEGL_ITERATOR2_API
|
||||
#include <gegl.h>
|
||||
|
||||
#include "libgimpcolor/gimpcolor.h"
|
||||
|
|
|
|||
|
|
@ -20,7 +20,6 @@
|
|||
|
||||
#include "config.h"
|
||||
|
||||
#define GEGL_ITERATOR2_API
|
||||
#include <gegl.h>
|
||||
|
||||
#include "libgimpmath/gimpmath.h"
|
||||
|
|
|
|||
|
|
@ -18,7 +18,6 @@
|
|||
#include "config.h"
|
||||
|
||||
#include <cairo.h>
|
||||
#define GEGL_ITERATOR2_API
|
||||
#include <gegl.h>
|
||||
#include <gdk-pixbuf/gdk-pixbuf.h>
|
||||
|
||||
|
|
|
|||
|
|
@ -20,7 +20,6 @@
|
|||
#include <stdlib.h>
|
||||
|
||||
#include <cairo.h>
|
||||
#define GEGL_ITERATOR2_API
|
||||
#include <gegl.h>
|
||||
#include <gdk-pixbuf/gdk-pixbuf.h>
|
||||
|
||||
|
|
|
|||
|
|
@ -20,7 +20,6 @@
|
|||
#include <string.h>
|
||||
|
||||
#include <gdk-pixbuf/gdk-pixbuf.h>
|
||||
#define GEGL_ITERATOR2_API
|
||||
#include <gegl.h>
|
||||
|
||||
#include <cairo.h>
|
||||
|
|
|
|||
|
|
@ -24,7 +24,6 @@
|
|||
|
||||
#include <cairo.h>
|
||||
#include <gdk-pixbuf/gdk-pixbuf.h>
|
||||
#define GEGL_ITERATOR2_API
|
||||
#include <gegl.h>
|
||||
|
||||
extern "C"
|
||||
|
|
|
|||
|
|
@ -20,7 +20,6 @@
|
|||
#include <string.h>
|
||||
|
||||
#include <gio/gio.h>
|
||||
#define GEGL_ITERATOR2_API
|
||||
#include <gegl.h>
|
||||
|
||||
#include "libgimpbase/gimpbase.h"
|
||||
|
|
|
|||
|
|
@ -17,7 +17,6 @@
|
|||
|
||||
#include "config.h"
|
||||
|
||||
#define GEGL_ITERATOR2_API
|
||||
#include <gegl.h>
|
||||
|
||||
#include "gimp-gegl-types.h"
|
||||
|
|
|
|||
|
|
@ -20,7 +20,6 @@
|
|||
#include "config.h"
|
||||
|
||||
#include <gdk-pixbuf/gdk-pixbuf.h>
|
||||
#define GEGL_ITERATOR2_API
|
||||
#include <gegl.h>
|
||||
|
||||
#include "libgimpmath/gimpmath.h"
|
||||
|
|
|
|||
|
|
@ -20,7 +20,6 @@
|
|||
#include "config.h"
|
||||
|
||||
#include <cairo.h>
|
||||
#define GEGL_ITERATOR2_API
|
||||
#include <gegl.h>
|
||||
#include <gdk-pixbuf/gdk-pixbuf.h>
|
||||
|
||||
|
|
|
|||
|
|
@ -23,7 +23,6 @@
|
|||
#include "config.h"
|
||||
|
||||
#include <cairo.h>
|
||||
#define GEGL_ITERATOR2_API
|
||||
#include <gegl.h>
|
||||
#include <gdk-pixbuf/gdk-pixbuf.h>
|
||||
|
||||
|
|
|
|||
|
|
@ -81,7 +81,7 @@ gimp_operation_mask_components_class_init (GimpOperationMaskComponentsClass *kla
|
|||
NULL);
|
||||
|
||||
operation_class->prepare = gimp_operation_mask_components_prepare;
|
||||
//operation_class->process = gimp_operation_mask_components_parent_process;
|
||||
operation_class->process = gimp_operation_mask_components_parent_process;
|
||||
|
||||
point_class->process = gimp_operation_mask_components_process;
|
||||
|
||||
|
|
@ -172,7 +172,7 @@ gimp_operation_mask_components_parent_process (GeglOperation *operation,
|
|||
gint level)
|
||||
{
|
||||
GimpOperationMaskComponents *self = GIMP_OPERATION_MASK_COMPONENTS (operation);
|
||||
#if 0
|
||||
|
||||
if (self->mask == 0)
|
||||
{
|
||||
GObject *input = gegl_operation_context_get_object (context, "input");
|
||||
|
|
@ -189,7 +189,7 @@ gimp_operation_mask_components_parent_process (GeglOperation *operation,
|
|||
|
||||
return TRUE;
|
||||
}
|
||||
#endif
|
||||
|
||||
return GEGL_OPERATION_CLASS (parent_class)->process (operation, context,
|
||||
output_prop, result,
|
||||
level);
|
||||
|
|
@ -211,24 +211,10 @@ gimp_operation_mask_components_process (GeglOperation *operation,
|
|||
GimpComponentMask mask = self->mask;
|
||||
static const gfloat nothing[] = { 0.0, 0.0, 0.0, 1.0 };
|
||||
|
||||
#if 0
|
||||
if (self->mask == 0)
|
||||
{
|
||||
if (in_buf != out_buf)
|
||||
memcpy (out_buf, in_buf, sizeof (float) * 4 * samples);
|
||||
}
|
||||
else if (self->mask == GIMP_COMPONENT_MASK_ALL && aux_buf)
|
||||
{
|
||||
if (aux_buf != out_buf)
|
||||
memcpy (out_buf, aux_buf, sizeof (float) * 4 * samples);
|
||||
}
|
||||
else
|
||||
#endif
|
||||
{
|
||||
if (! aux)
|
||||
aux = (gfloat *) nothing;
|
||||
if (! aux)
|
||||
aux = (gfloat *) nothing;
|
||||
|
||||
while (samples--)
|
||||
while (samples--)
|
||||
{
|
||||
dest[RED] = (mask & GIMP_COMPONENT_MASK_RED) ? aux[RED] : src[RED];
|
||||
dest[GREEN] = (mask & GIMP_COMPONENT_MASK_GREEN) ? aux[GREEN] : src[GREEN];
|
||||
|
|
@ -242,7 +228,6 @@ gimp_operation_mask_components_process (GeglOperation *operation,
|
|||
|
||||
dest += 4;
|
||||
}
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,7 +20,6 @@
|
|||
#include <string.h>
|
||||
|
||||
#include <gdk-pixbuf/gdk-pixbuf.h>
|
||||
#define GEGL_ITERATOR2_API
|
||||
#include <gegl.h>
|
||||
|
||||
#include "libgimpmath/gimpmath.h"
|
||||
|
|
|
|||
|
|
@ -25,7 +25,6 @@
|
|||
#include <string.h>
|
||||
|
||||
#include <gdk-pixbuf/gdk-pixbuf.h>
|
||||
#define GEGL_ITERATOR2_API
|
||||
#include <gegl.h>
|
||||
|
||||
#include "libgimpbase/gimpbase.h"
|
||||
|
|
|
|||
|
|
@ -20,7 +20,6 @@
|
|||
#include <string.h>
|
||||
|
||||
#include <gdk-pixbuf/gdk-pixbuf.h>
|
||||
#define GEGL_ITERATOR2_API
|
||||
#include <gegl.h>
|
||||
|
||||
#include "libgimpmath/gimpmath.h"
|
||||
|
|
|
|||
|
|
@ -16,7 +16,6 @@
|
|||
*/
|
||||
|
||||
#include "config.h"
|
||||
#define GEGL_ITERATOR2_API
|
||||
#include <gegl.h>
|
||||
|
||||
#include <mypaint-surface.h>
|
||||
|
|
|
|||
|
|
@ -16,7 +16,6 @@
|
|||
*/
|
||||
|
||||
#include "config.h"
|
||||
#define GEGL_ITERATOR2_API
|
||||
#include <gegl.h>
|
||||
#include <gdk-pixbuf/gdk-pixbuf.h>
|
||||
|
||||
|
|
|
|||
|
|
@ -46,7 +46,6 @@
|
|||
|
||||
#include <stdlib.h>
|
||||
|
||||
#define GEGL_ITERATOR2_API
|
||||
#include <gegl.h>
|
||||
#include <gtk/gtk.h>
|
||||
#include <gdk/gdkkeysyms.h>
|
||||
|
|
|
|||
|
|
@ -28,7 +28,6 @@
|
|||
#include <lcms2.h>
|
||||
|
||||
#include <gio/gio.h>
|
||||
#define GEGL_ITERATOR2_API
|
||||
#include <gegl.h>
|
||||
|
||||
#include "libgimpbase/gimpbase.h"
|
||||
|
|
|
|||
|
|
@ -17,7 +17,6 @@
|
|||
|
||||
#include "config.h"
|
||||
|
||||
#define GEGL_ITERATOR2_API
|
||||
#include <gegl.h>
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
|
|
|
|||
|
|
@ -20,7 +20,6 @@
|
|||
|
||||
#include <string.h>
|
||||
|
||||
#define GEGL_ITERATOR2_API
|
||||
#include <gegl.h>
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
|
|
|
|||
|
|
@ -29,7 +29,6 @@
|
|||
|
||||
#include <string.h>
|
||||
|
||||
#define GEGL_ITERATOR2_API
|
||||
#include <gegl.h>
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
|
|
|
|||
|
|
@ -17,7 +17,6 @@
|
|||
|
||||
#include "config.h"
|
||||
|
||||
#define GEGL_ITERATOR2_API
|
||||
#include <gegl.h>
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
|
|
|
|||
|
|
@ -17,7 +17,6 @@
|
|||
|
||||
#include "config.h"
|
||||
|
||||
#define GEGL_ITERATOR2_API
|
||||
#include <gegl.h>
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
|
|
|
|||
|
|
@ -17,7 +17,6 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#define GEGL_ITERATOR2_API
|
||||
#include "config.h"
|
||||
|
||||
#include <libgimp/gimp.h>
|
||||
|
|
|
|||
|
|
@ -27,7 +27,6 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#define GEGL_ITERATOR2_API
|
||||
#include "config.h"
|
||||
|
||||
#include <string.h>
|
||||
|
|
|
|||
|
|
@ -34,7 +34,6 @@
|
|||
* They can be dropped for GIMP 3.0
|
||||
*/
|
||||
|
||||
#define GEGL_ITERATOR2_API
|
||||
#include "config.h"
|
||||
|
||||
#include <string.h>
|
||||
|
|
|
|||
|
|
@ -25,7 +25,6 @@
|
|||
* merged into the officical plug-in by Sven Neumann.
|
||||
*/
|
||||
|
||||
#define GEGL_ITERATOR2_API
|
||||
#include "config.h"
|
||||
|
||||
#include <string.h>
|
||||
|
|
|
|||
|
|
@ -38,7 +38,6 @@
|
|||
* see ChangeLog
|
||||
*/
|
||||
|
||||
#define GEGL_ITERATOR2_API
|
||||
#include "config.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
|
|
|
|||
|
|
@ -18,7 +18,6 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#define GEGL_ITERATOR2_API
|
||||
#include "config.h"
|
||||
#include <string.h>
|
||||
|
||||
|
|
|
|||
|
|
@ -26,7 +26,6 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#define GEGL_ITERATOR2_API
|
||||
#include "config.h"
|
||||
|
||||
#include <string.h>
|
||||
|
|
|
|||
|
|
@ -18,7 +18,6 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#define GEGL_ITERATOR2_API
|
||||
#include "config.h"
|
||||
|
||||
#include <string.h>
|
||||
|
|
|
|||
|
|
@ -63,7 +63,6 @@
|
|||
* BUGS:
|
||||
*/
|
||||
|
||||
#define GEGL_ITERATOR2_API
|
||||
#include "config.h"
|
||||
|
||||
#include <errno.h>
|
||||
|
|
|
|||
|
|
@ -42,7 +42,6 @@
|
|||
* other special, indirect and consequential damages.
|
||||
*/
|
||||
|
||||
#define GEGL_ITERATOR2_API
|
||||
#include "config.h"
|
||||
|
||||
#include <errno.h>
|
||||
|
|
|
|||
|
|
@ -27,7 +27,6 @@
|
|||
* 2. Figure out if we need multiple phases for supersampled brushes.
|
||||
*/
|
||||
|
||||
#define GEGL_ITERATOR2_API
|
||||
#include "config.h"
|
||||
|
||||
#include <string.h>
|
||||
|
|
|
|||
|
|
@ -39,7 +39,6 @@
|
|||
* 1.0: (July '04)
|
||||
* - Code cleanup, added reverse gradient option.
|
||||
*/
|
||||
#define GEGL_ITERATOR2_API
|
||||
#include "config.h"
|
||||
|
||||
#include <libgimp/gimp.h>
|
||||
|
|
|
|||
|
|
@ -15,7 +15,6 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#define GEGL_ITERATOR2_API
|
||||
#include "config.h"
|
||||
|
||||
#include <string.h>
|
||||
|
|
|
|||
|
|
@ -20,7 +20,6 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#define GEGL_ITERATOR2_API
|
||||
#include "config.h"
|
||||
|
||||
#include <libgimp/gimp.h>
|
||||
|
|
|
|||
Loading…
Reference in a new issue