Commit b37c8bcf authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

app/core/Makefile.am added GIMP_ERROR as general error domain.

2008-11-12  Sven Neumann  <sven@gimp.org>

	* app/core/Makefile.am
	* app/core/gimperror.[ch]: added GIMP_ERROR as general error 
domain.

	* app/core/gimpchannel.c
	* app/core/gimpdrawable-bucket-fill.c
	* app/core/gimpimage-convert.c
	* app/core/gimpimage-merge.c
	* app/core/gimpimage.c
	* app/core/gimplayer-floating-sel.c
	* app/core/gimplayer.c
	* app/core/gimplayermask.c
	* app/core/gimpselection.c
	* app/core/gimptooloptions.c
	* app/paint/gimpbrushcore.c
	* app/paint/gimpclone.c
	* app/paint/gimpheal.c
	* app/paint/gimppaintcore-stroke.c
	* app/paint/gimpperspectiveclone.c
	* app/paint/gimpsourcecore.c
	* app/tools/gimpblendtool.c
	* app/tools/gimpbrightnesscontrasttool.c
	* app/tools/gimpcolorbalancetool.c
	* app/tools/gimpcolorizetool.c
	* app/tools/gimpcurvestool.c
	* app/tools/gimpdesaturatetool.c
	* app/tools/gimpgegltool.c
	* app/tools/gimphuesaturationtool.c
	* app/tools/gimplevelstool.c
	* app/tools/gimpposterizetool.c
	* app/tools/gimpthresholdtool.c
	* app/vectors/gimpvectors-import.c: use GIMP_ERROR as error 
domain
	instead of 0, which is not accepted by g_set_error_literal().

	* app/gui/session.c
	* app/menus/menus.c
	* app/vectors/gimpvectors-export.c
	* app/widgets/gimpdevices.c: use G_FILE_ERROR as error domain 
for
	file errors.


svn path=/trunk/; revision=27628
parent c61f6775
2008-11-12 Sven Neumann <sven@gimp.org>
* app/core/Makefile.am
* app/core/gimperror.[ch]: added GIMP_ERROR as general error domain.
* app/core/gimpchannel.c
* app/core/gimpdrawable-bucket-fill.c
* app/core/gimpimage-convert.c
* app/core/gimpimage-merge.c
* app/core/gimpimage.c
* app/core/gimplayer-floating-sel.c
* app/core/gimplayer.c
* app/core/gimplayermask.c
* app/core/gimpselection.c
* app/core/gimptooloptions.c
* app/paint/gimpbrushcore.c
* app/paint/gimpclone.c
* app/paint/gimpheal.c
* app/paint/gimppaintcore-stroke.c
* app/paint/gimpperspectiveclone.c
* app/paint/gimpsourcecore.c
* app/tools/gimpblendtool.c
* app/tools/gimpbrightnesscontrasttool.c
* app/tools/gimpcolorbalancetool.c
* app/tools/gimpcolorizetool.c
* app/tools/gimpcurvestool.c
* app/tools/gimpdesaturatetool.c
* app/tools/gimpgegltool.c
* app/tools/gimphuesaturationtool.c
* app/tools/gimplevelstool.c
* app/tools/gimpposterizetool.c
* app/tools/gimpthresholdtool.c
* app/vectors/gimpvectors-import.c: use GIMP_ERROR as error domain
instead of 0, which is not accepted by g_set_error_literal().
* app/gui/session.c
* app/menus/menus.c
* app/vectors/gimpvectors-export.c
* app/widgets/gimpdevices.c: use G_FILE_ERROR as error domain for
file errors.
2008-11-12 Sven Neumann <sven@gimp.org>
* app/plug-in/plug-in-icc-profile.c: use the GIMP_PLUG_IN_ERROR
......
......@@ -164,6 +164,8 @@ libappcore_a_sources = \
gimpdrawablestack.h \
gimpdrawableundo.c \
gimpdrawableundo.h \
gimperror.c \
gimperror.h \
gimpfilloptions.c \
gimpfilloptions.h \
gimpfloatingselundo.c \
......
......@@ -43,6 +43,7 @@
#include "gimp-utils.h"
#include "gimpcontainer.h"
#include "gimpdrawable-convert.h"
#include "gimperror.h"
#include "gimpimage.h"
#include "gimpimage-quick-mask.h"
#include "gimpimage-undo.h"
......@@ -715,7 +716,7 @@ gimp_channel_stroke (GimpItem *item,
&n_segs_in, &n_segs_out,
0, 0, 0, 0))
{
g_set_error_literal (error, 0, 0,
g_set_error_literal (error, GIMP_ERROR, GIMP_FAILED,
_("Cannot stroke empty channel."));
return FALSE;
}
......
......@@ -38,6 +38,7 @@
#include "gimpcontext.h"
#include "gimpdrawable.h"
#include "gimpdrawable-bucket-fill.h"
#include "gimperror.h"
#include "gimpimage.h"
#include "gimpimage-contiguous-region.h"
#include "gimppattern.h"
......@@ -87,7 +88,7 @@ gimp_drawable_bucket_fill (GimpDrawable *drawable,
if (! pattern)
{
g_set_error_literal (error, 0, 0,
g_set_error_literal (error, GIMP_ERROR, GIMP_FAILED,
_("No patterns available for this operation."));
return FALSE;
}
......
/* GIMP - The GNU Image Manipulation Program
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include <glib-object.h>
#include "gimperror.h"
/**
* gimp_error_quark:
*
* This function is never called directly. Use GIMP_ERROR() instead.
*
* Return value: the #GQuark that defines the general GIMP error domain.
**/
GQuark
gimp_error_quark (void)
{
return g_quark_from_static_string ("gimp-error-quark");
}
/* GIMP - The GNU Image Manipulation Program
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifndef __GIMP_ERROR_H__
#define __GIMP_ERROR_H__
typedef enum
{
GIMP_FAILED, /* generic error condition */
} GimpErrorCode;
#define GIMP_ERROR (gimp_error_quark ())
GQuark gimp_error_quark (void) G_GNUC_CONST;
#endif /* __GIMP_ERROR_H__ */
......@@ -148,6 +148,7 @@
#include "gimpcontainer.h"
#include "gimpdrawable.h"
#include "gimpdrawable-convert.h"
#include "gimperror.h"
#include "gimpimage.h"
#include "gimpimage-colormap.h"
#include "gimpimage-undo.h"
......@@ -787,7 +788,7 @@ gimp_image_convert (GimpImage *image,
if (custom_palette->n_colors < 1)
{
g_set_error_literal (error, 0, 0,
g_set_error_literal (error, GIMP_ERROR, GIMP_FAILED,
_("Cannot convert image: palette is empty."));
return FALSE;
}
......
......@@ -37,6 +37,7 @@
#include "gimp.h"
#include "gimpcontainer.h"
#include "gimpcontext.h"
#include "gimperror.h"
#include "gimpimage.h"
#include "gimpimage-colorhash.h"
#include "gimpimage-merge.h"
......@@ -285,7 +286,7 @@ gimp_image_merge_visible_vectors (GimpImage *image,
}
else
{
g_set_error_literal (error, 0, 0,
g_set_error_literal (error, GIMP_ERROR, GIMP_FAILED,
_("Not enough visible paths for a merge. "
"There must be at least two."));
return NULL;
......
......@@ -40,6 +40,7 @@
#include "gimpcontext.h"
#include "gimpdrawablestack.h"
#include "gimpgrid.h"
#include "gimperror.h"
#include "gimpguide.h"
#include "gimpimage.h"
#include "gimpimage-colorhash.h"
......@@ -3150,7 +3151,8 @@ gimp_image_raise_layer (GimpImage *image,
if (index == 0)
{
g_set_error_literal (error, 0, 0, _("Layer cannot be raised higher."));
g_set_error_literal (error, GIMP_ERROR, GIMP_FAILED,
_("Layer cannot be raised higher."));
return FALSE;
}
......@@ -3174,7 +3176,8 @@ gimp_image_lower_layer (GimpImage *image,
if (index == gimp_container_num_children (image->layers) - 1)
{
g_set_error_literal (error, 0, 0, _("Layer cannot be lowered more."));
g_set_error_literal (error, GIMP_ERROR, GIMP_FAILED,
_("Layer cannot be lowered more."));
return FALSE;
}
......@@ -3379,7 +3382,8 @@ gimp_image_raise_channel (GimpImage *image,
if (index == 0)
{
g_set_error_literal (error, 0, 0, _("Channel cannot be raised higher."));
g_set_error_literal (error, GIMP_ERROR, GIMP_FAILED,
_("Channel cannot be raised higher."));
return FALSE;
}
......@@ -3415,7 +3419,8 @@ gimp_image_lower_channel (GimpImage *image,
if (index == gimp_container_num_children (image->channels) - 1)
{
g_set_error_literal (error, 0, 0, _("Channel cannot be lowered more."));
g_set_error_literal (error, GIMP_ERROR, GIMP_FAILED,
_("Channel cannot be lowered more."));
return FALSE;
}
......@@ -3585,7 +3590,8 @@ gimp_image_raise_vectors (GimpImage *image,
if (index == 0)
{
g_set_error_literal (error, 0, 0, _("Path cannot be raised higher."));
g_set_error_literal (error, GIMP_ERROR, GIMP_FAILED,
_("Path cannot be raised higher."));
return FALSE;
}
......@@ -3620,7 +3626,8 @@ gimp_image_lower_vectors (GimpImage *image,
if (index == gimp_container_num_children (image->vectors) - 1)
{
g_set_error_literal (error, 0, 0, _("Path cannot be lowered more."));
g_set_error_literal (error, GIMP_ERROR, GIMP_FAILED,
_("Path cannot be lowered more."));
return FALSE;
}
......
......@@ -31,6 +31,7 @@
#include "paint-funcs/paint-funcs.h"
#include "gimp.h"
#include "gimperror.h"
#include "gimpimage.h"
#include "gimpimage-undo.h"
#include "gimpimage-undo-push.h"
......@@ -133,7 +134,7 @@ floating_sel_to_layer (GimpLayer *layer,
/* Check if the floating layer belongs to a channel... */
if (GIMP_IS_CHANNEL (layer->fs.drawable))
{
g_set_error_literal (error, 0, 0,
g_set_error_literal (error, GIMP_ERROR, GIMP_FAILED,
_("Cannot create a new layer from the floating "
"selection because it belongs to a layer mask "
"or channel."));
......
......@@ -41,6 +41,7 @@
#include "gimpcontainer.h"
#include "gimpdrawable-convert.h"
#include "gimpdrawable-invert.h"
#include "gimperror.h"
#include "gimpimage-undo-push.h"
#include "gimpimage-undo.h"
#include "gimpimage.h"
......@@ -667,7 +668,7 @@ gimp_layer_rename (GimpItem *item,
{
if (GIMP_IS_CHANNEL (layer->fs.drawable))
{
g_set_error_literal (error, 0, 0,
g_set_error_literal (error, GIMP_ERROR, GIMP_FAILED,
_("Cannot create a new layer from the floating "
"selection because it belongs to a layer mask "
"or channel."));
......@@ -1286,7 +1287,7 @@ gimp_layer_add_mask (GimpLayer *layer,
if (layer->mask)
{
g_set_error_literal (error, 0, 0,
g_set_error_literal (error, GIMP_ERROR, GIMP_FAILED,
_("Unable to add a layer mask since "
"the layer already has one."));
return NULL;
......@@ -1297,7 +1298,7 @@ gimp_layer_add_mask (GimpLayer *layer,
(gimp_item_get_height (GIMP_ITEM (layer)) !=
gimp_item_get_height (GIMP_ITEM (mask))))
{
g_set_error_literal (error, 0, 0,
g_set_error_literal (error, GIMP_ERROR, GIMP_FAILED,
_("Cannot add layer mask of different "
"dimensions than specified layer."));
return NULL;
......
......@@ -27,6 +27,7 @@
#include "core-types.h"
#include "gimperror.h"
#include "gimpimage.h"
#include "gimpimage-undo-push.h"
#include "gimplayer.h"
......@@ -157,7 +158,8 @@ gimp_layer_mask_rename (GimpItem *item,
{
/* reject renaming, layer masks are always named "<layer name> mask" */
g_set_error (error, 0, 0, _("Cannot rename layer masks."));
g_set_error (error, GIMP_ERROR, GIMP_FAILED,
_("Cannot rename layer masks."));
return FALSE;
}
......
......@@ -32,6 +32,7 @@
#include "gimp.h"
#include "gimpcontext.h"
#include "gimperror.h"
#include "gimpimage.h"
#include "gimpimage-undo.h"
#include "gimpimage-undo-push.h"
......@@ -271,7 +272,7 @@ gimp_selection_stroke (GimpItem *item,
&num_dummy_in, &num_dummy_out,
0, 0, 0, 0))
{
g_set_error_literal (error, 0, 0,
g_set_error_literal (error, GIMP_ERROR, GIMP_FAILED,
_("There is no selection to stroke."));
return FALSE;
}
......@@ -659,7 +660,7 @@ gimp_selection_extract (GimpChannel *selection,
if (non_empty && ((x1 == x2) || (y1 == y2)))
{
g_set_error_literal (error, 0, 0,
g_set_error_literal (error, GIMP_ERROR, GIMP_FAILED,
_("Unable to cut or copy because the "
"selected region is empty."));
return NULL;
......@@ -832,7 +833,7 @@ gimp_selection_float (GimpChannel *selection,
if (! gimp_drawable_mask_bounds (drawable, &x1, &y1, &x2, &y2) ||
(x1 == x2 || y1 == y2))
{
g_set_error_literal (error, 0, 0,
g_set_error_literal (error, GIMP_ERROR, GIMP_FAILED,
_("Cannot float selection because the selected "
"region is empty."));
return NULL;
......
......@@ -36,6 +36,7 @@
#include "core-types.h"
#include "gimp.h"
#include "gimperror.h"
#include "gimptoolinfo.h"
#include "gimptooloptions.h"
......@@ -228,7 +229,8 @@ gimp_tool_options_delete (GimpToolOptions *tool_options,
if (g_unlink (filename) != 0 && errno != ENOENT)
{
retval = FALSE;
g_set_error (error, 0, 0, _("Deleting \"%s\" failed: %s"),
g_set_error (error, GIMP_ERROR, GIMP_FAILED,
_("Deleting \"%s\" failed: %s"),
gimp_filename_to_utf8 (filename), g_strerror (errno));
}
......
......@@ -304,7 +304,8 @@ session_clear (Gimp *gimp,
if (g_unlink (filename) != 0 && errno != ENOENT)
{
g_set_error (error, 0, 0, _("Deleting \"%s\" failed: %s"),
g_set_error (error, G_FILE_ERROR, g_file_error_from_errno (errno),
_("Deleting \"%s\" failed: %s"),
gimp_filename_to_utf8 (filename), g_strerror (errno));
success = FALSE;
}
......
......@@ -438,7 +438,8 @@ menus_clear (Gimp *gimp,
}
else if (g_unlink (filename) != 0 && errno != ENOENT)
{
g_set_error (error, 0, 0, _("Deleting \"%s\" failed: %s"),
g_set_error (error, G_FILE_ERROR, g_file_error_from_errno (errno),
_("Deleting \"%s\" failed: %s"),
gimp_filename_to_utf8 (filename), g_strerror (errno));
success = FALSE;
}
......
......@@ -34,6 +34,7 @@
#include "core/gimpbrush.h"
#include "core/gimpdrawable.h"
#include "core/gimperror.h"
#include "core/gimpimage.h"
#include "core/gimpmarshal.h"
......@@ -349,7 +350,7 @@ gimp_brush_core_start (GimpPaintCore *paint_core,
if (! core->main_brush)
{
g_set_error_literal (error, 0, 0,
g_set_error_literal (error, GIMP_ERROR, GIMP_FAILED,
_("No brushes available for use with this tool."));
return FALSE;
}
......
......@@ -34,6 +34,7 @@
#include "core/gimp.h"
#include "core/gimpdrawable.h"
#include "core/gimperror.h"
#include "core/gimpimage.h"
#include "core/gimppattern.h"
#include "core/gimppickable.h"
......@@ -136,7 +137,7 @@ gimp_clone_start (GimpPaintCore *paint_core,
{
if (! gimp_context_get_pattern (GIMP_CONTEXT (options)))
{
g_set_error_literal (error, 0, 0,
g_set_error_literal (error, GIMP_ERROR, GIMP_FAILED,
_("No patterns available for use with this tool."));
return FALSE;
}
......
......@@ -32,10 +32,11 @@
#include "base/pixel-region.h"
#include "base/temp-buf.h"
#include "core/gimppickable.h"
#include "core/gimpimage.h"
#include "core/gimpdrawable.h"
#include "core/gimpbrush.h"
#include "core/gimpdrawable.h"
#include "core/gimperror.h"
#include "core/gimpimage.h"
#include "core/gimppickable.h"
#include "gimpheal.h"
#include "gimpsourceoptions.h"
......@@ -150,7 +151,7 @@ gimp_heal_start (GimpPaintCore *paint_core,
if (! source_core->set_source && gimp_drawable_is_indexed (drawable))
{
g_set_error_literal (error, 0, 0,
g_set_error_literal (error, GIMP_ERROR, GIMP_FAILED,
_("Healing does not operate on indexed layers."));
return FALSE;
}
......
......@@ -25,6 +25,7 @@
#include "base/boundary.h"
#include "core/gimpdrawable.h"
#include "core/gimperror.h"
#include "vectors/gimpstroke.h"
#include "vectors/gimpvectors.h"
......@@ -328,11 +329,10 @@ gimp_paint_core_stroke_vectors (GimpPaintCore *core,
gimp_paint_core_cleanup (core);
}
if (! initialized &&
due_to_lack_of_points &&
*error == NULL)
if (! initialized && due_to_lack_of_points && *error == NULL)
{
g_set_error (error, 0, 0, _("Not enough points to stroke"));
g_set_error_literal (error, GIMP_ERROR, GIMP_FAILED,
_("Not enough points to stroke"));
}
return initialized;
......
......@@ -36,6 +36,7 @@
#include "core/gimp.h"
#include "core/gimpdrawable.h"
#include "core/gimperror.h"
#include "core/gimpimage.h"
#include "core/gimppickable.h"
#include "core/gimp-transform-region.h"
......@@ -158,8 +159,9 @@ gimp_perspective_clone_start (GimpPaintCore *paint_core,
if (! source_core->set_source && gimp_drawable_is_indexed (drawable))
{
g_set_error_literal (error, 0, 0,
_("Perspective Clone does not operate on indexed layers."));
g_set_error_literal (error, GIMP_ERROR, GIMP_FAILED,
_("Perspective Clone does not operate on "
"indexed layers."));
return FALSE;
}
......
......@@ -30,6 +30,7 @@
#include "core/gimp.h"
#include "core/gimpdrawable.h"
#include "core/gimperror.h"
#include "core/gimpimage.h"
#include "core/gimppickable.h"
......@@ -224,7 +225,8 @@ gimp_source_core_start (GimpPaintCore *paint_core,
{
if (! source_core->src_drawable)
{
g_set_error_literal (error, 0, 0, _("Set a source image first."));
g_set_error_literal (error, GIMP_ERROR, GIMP_FAILED,
_("Set a source image first."));
return FALSE;
}
......
......@@ -29,6 +29,7 @@
#include "core/gimpdrawable.h"
#include "core/gimpdrawable-blend.h"
#include "core/gimperror.h"
#include "core/gimpgradient.h"
#include "core/gimpimage.h"
#include "core/gimpprogress.h"
......@@ -159,7 +160,7 @@ gimp_blend_tool_initialize (GimpTool *tool,
if (gimp_drawable_is_indexed (drawable))
{
g_set_error_literal (error, 0, 0,
g_set_error_literal (error, GIMP_ERROR, GIMP_FAILED,
_("Blend does not operate on indexed layers."));
return FALSE;
}
......
......@@ -34,6 +34,7 @@
#include "gegl/gimpbrightnesscontrastconfig.h"
#include "core/gimpdrawable.h"
#include "core/gimperror.h"
#include "core/gimpimage.h"
#include "widgets/gimphelp-ids.h"
......@@ -179,7 +180,7 @@ gimp_brightness_contrast_tool_initialize (GimpTool *tool,
if (gimp_drawable_is_indexed (drawable))
{
g_set_error_literal (error, 0, 0,
g_set_error_literal (error, GIMP_ERROR, GIMP_FAILED,
_("Brightness-Contrast does not operate "
"on indexed layers."));
return FALSE;
......
......@@ -33,6 +33,7 @@
#include "gegl/gimpcolorbalanceconfig.h"
#include "core/gimpdrawable.h"
#include "core/gimperror.h"
#include "core/gimpimage.h"
#include "widgets/gimphelp-ids.h"
......@@ -159,7 +160,7 @@ gimp_color_balance_tool_initialize (GimpTool *tool,
if (! gimp_drawable_is_rgb (drawable))
{
g_set_error_literal (error, 0, 0,
g_set_error_literal (error, GIMP_ERROR, GIMP_FAILED,
_("Color Balance operates only on RGB color layers."));
return FALSE;
}
......
......@@ -33,6 +33,7 @@
#include "gegl/gimpcolorizeconfig.h"
#include "core/gimpdrawable.h"
#include "core/gimperror.h"
#include "core/gimpimage.h"
#include "widgets/gimphelp-ids.h"
......@@ -152,8 +153,8 @@ gimp_colorize_tool_initialize (GimpTool *tool,
if (! gimp_drawable_is_rgb (drawable))
{
g_set_error (error, 0, 0,
_("Colorize operates only on RGB color layers."));
g_set_error_literal (error, GIMP_ERROR, GIMP_FAILED,
_("Colorize operates only on RGB color layers."));
return FALSE;
}
......
......@@ -43,6 +43,7 @@
#include "core/gimpcurve-map.h"
#include "core/gimpdrawable.h"
#include "core/gimpdrawable-histogram.h"
#include "core/gimperror.h"
#include "core/gimpimage.h"
#include "widgets/gimpcolorbar.h"
......@@ -217,7 +218,7 @@ gimp_curves_tool_initialize (GimpTool *tool,
if (gimp_drawable_is_indexed (drawable))
{
g_set_error_literal (error, 0, 0,
g_set_error_literal (error, GIMP_ERROR, GIMP_FAILED,
_("Curves does not operate on indexed layers."));
return FALSE;
}
......
......@@ -32,6 +32,7 @@
#include "gegl/gimpdesaturateconfig.h"
#include "core/gimpdrawable.h"
#include "core/gimperror.h"
#include "core/gimpimage.h"
#include "widgets/gimphelp-ids.h"
......@@ -121,7 +122,7 @@ gimp_desaturate_tool_initialize (GimpTool *tool,
if (! gimp_drawable_is_rgb (drawable))
{
g_set_error_literal (error, 0, 0,
g_set_error_literal (error, GIMP_ERROR, GIMP_FAILED,
_("Desaturate does only operate on RGB layers."));
return FALSE;
}
......
......@@ -32,6 +32,7 @@
#include "tools-types.h"
#include "core/gimpdrawable.h"
#include "core/gimperror.h"
#include "core/gimpimage.h"
#include "core/gimpimagemap.h"
......@@ -154,7 +155,7 @@ gimp_gegl_tool_initialize (GimpTool *tool,
if (gimp_drawable_is_indexed (drawable))
{
g_set_error_literal (error, 0, 0,
g_set_error_literal (error, GIMP_ERROR, GIMP_FAILED,
_("GEGL operations do not operate on indexed layers."));
return FALSE;
}
......
......@@ -34,6 +34,7 @@
#include "gegl/gimpoperationhuesaturation.h"
#include "core/gimpdrawable.h"
#include "core/gimperror.h"
#include "core/gimpimage.h"
#include "widgets/gimphelp-ids.h"
......@@ -167,7 +168,7 @@ gimp_hue_saturation_tool_initialize (GimpTool *tool,