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

app/core/Makefile.am new file that holds enums that are registered with

2001-12-08  Sven Neumann  <sven@gimp.org>

	* app/core/Makefile.am
	* app/core/core-enums.h: new file that holds enums that are registered
	with the type system and is used to generate core-enums.c.

	* app/core/core-types.h: include core-enums.h

	* app/base/base-types.h: namespace cleanup. Prefix all enumeration
	types with Gimp and their values with GIMP. Moved GimpLayerModeEffects
	enum ...

	* app/base/base-enums.h: ... here.

	* app/image_map.c
	* app/base/temp-buf.c
	* app/core/gimpcontext.[ch]
	* app/core/gimpdrawable-transform.c
	* app/core/gimpdrawable.c
	* app/core/gimpedit.c
	* app/core/gimpimage-mask.c
	* app/core/gimpimage-merge.c
	* app/core/gimpimage-new.c
	* app/core/gimpimage-projection.c
	* app/core/gimpimage.[ch]
	* app/core/gimplayer.[ch]
	* app/display/gimpdisplayshell-dnd.c
	* app/display/gimpdisplayshell-render.c
	* app/gui/brush-select.c
	* app/gui/layers-commands.c
	* app/gui/preferences-dialog.c
	* app/gui/toolbox.c
	* app/paint-funcs/paint-funcs.[ch]
	* app/tools/gimpconvolvetool.c
	* app/tools/gimperasertool.c
	* app/tools/gimpiscissorstool.c
	* app/tools/gimppainttool.[ch]
	* app/tools/gimptexttool.c
	* app/tools/paint_options.c
	* app/widgets/gimplayerlistview.c
	* app/widgets/gimpwidgets-constructors.[ch]
	* app/xcf/xcf-load.c
	* tools/pdbgen/pdb/brush_select.pdb
	* tools/pdbgen/pdb/brushes.pdb
	* tools/pdbgen/pdb/color.pdb
	* tools/pdbgen/pdb/layer.pdb
	* tools/pdbgen/pdb/tools.pdb: changed accordingly.

	* libgimpbase/gimpbasetypes.h: no need to chop GIMP prefix off the
	enums any longer.

	* app/pdb/brush_select_cmds.c
	* app/pdb/brushes_cmds.c
	* app/pdb/color_cmds.c
	* app/pdb/layer_cmds.c
	* app/pdb/message_cmds.c
	* app/pdb/procedural_db_cmds.c
	* app/pdb/tools_cmds.c
	* libgimp/gimpenums.h
	* plug-ins/script-fu/script-fu-constants.c
	* tools/pdbgen/enums.pl: regenerated.

	* app/gimprc.c: removed code to parse for "plug_in" keyword which was
	left over from some very early gimp days.

	* app/plug-in/plug-in.[ch]: removed now unused function plug_in_add().
parent 00011779
2001-12-08 Sven Neumann <sven@gimp.org>
* app/core/Makefile.am
* app/core/core-enums.h: new file that holds enums that are registered
with the type system and is used to generate core-enums.c.
* app/core/core-types.h: include core-enums.h
* app/base/base-types.h: namespace cleanup. Prefix all enumeration
types with Gimp and their values with GIMP. Moved GimpLayerModeEffects
enum ...
* app/base/base-enums.h: ... here.
* app/image_map.c
* app/base/temp-buf.c
* app/core/gimpcontext.[ch]
* app/core/gimpdrawable-transform.c
* app/core/gimpdrawable.c
* app/core/gimpedit.c
* app/core/gimpimage-mask.c
* app/core/gimpimage-merge.c
* app/core/gimpimage-new.c
* app/core/gimpimage-projection.c
* app/core/gimpimage.[ch]
* app/core/gimplayer.[ch]
* app/display/gimpdisplayshell-dnd.c
* app/display/gimpdisplayshell-render.c
* app/gui/brush-select.c
* app/gui/layers-commands.c
* app/gui/preferences-dialog.c
* app/gui/toolbox.c
* app/paint-funcs/paint-funcs.[ch]
* app/tools/gimpconvolvetool.c
* app/tools/gimperasertool.c
* app/tools/gimpiscissorstool.c
* app/tools/gimppainttool.[ch]
* app/tools/gimptexttool.c
* app/tools/paint_options.c
* app/widgets/gimplayerlistview.c
* app/widgets/gimpwidgets-constructors.[ch]
* app/xcf/xcf-load.c
* tools/pdbgen/pdb/brush_select.pdb
* tools/pdbgen/pdb/brushes.pdb
* tools/pdbgen/pdb/color.pdb
* tools/pdbgen/pdb/layer.pdb
* tools/pdbgen/pdb/tools.pdb: changed accordingly.
* libgimpbase/gimpbasetypes.h: no need to chop GIMP prefix off the
enums any longer.
* app/pdb/brush_select_cmds.c
* app/pdb/brushes_cmds.c
* app/pdb/color_cmds.c
* app/pdb/layer_cmds.c
* app/pdb/message_cmds.c
* app/pdb/procedural_db_cmds.c
* app/pdb/tools_cmds.c
* libgimp/gimpenums.h
* plug-ins/script-fu/script-fu-constants.c
* tools/pdbgen/enums.pl: regenerated.
* app/gimprc.c: removed code to parse for "plug_in" keyword which was
left over from some very early gimp days.
* app/plug-in/plug-in.[ch]: removed now unused function plug_in_add().
2001-12-08 Sven Neumann <sven@gimp.org>
* app/core/Makefile.am: fixed build rules for gimpmarshal.[ch].
......
......@@ -538,7 +538,7 @@ new_layer_query_ok_callback (GtkWidget *widget,
layer = gimp_layer_new (gimage, options->xsize, options->ysize,
gimp_image_base_type_with_alpha (gimage),
layer_name, OPAQUE_OPACITY, NORMAL_MODE);
layer_name, OPAQUE_OPACITY, GIMP_NORMAL_MODE);
if (layer)
{
gimp_drawable_fill_by_type (GIMP_DRAWABLE (layer),
......
......@@ -528,65 +528,6 @@ plug_in_kill (void)
}
}
void
plug_in_add (gchar *prog,
gchar *menu_path,
gchar *accelerator)
{
PlugInProcDef *proc_def;
GSList *tmp;
g_return_if_fail (prog != NULL);
if (strncmp ("plug_in_", prog, 8) != 0)
{
gchar *t = g_strdup_printf ("plug_in_%s", prog);
g_free (prog);
prog = t;
}
tmp = gimprc_proc_defs;
while (tmp)
{
proc_def = tmp->data;
tmp = tmp->next;
if (strcmp (proc_def->db_info.name, prog) == 0)
{
if (proc_def->db_info.name)
g_free (proc_def->db_info.name);
if (proc_def->menu_path)
g_free (proc_def->menu_path);
if (proc_def->accelerator)
g_free (proc_def->accelerator);
if (proc_def->extensions)
g_free (proc_def->extensions);
if (proc_def->prefixes)
g_free (proc_def->prefixes);
if (proc_def->magics)
g_free (proc_def->magics);
if (proc_def->image_types)
g_free (proc_def->image_types);
proc_def->db_info.name = prog;
proc_def->menu_path = menu_path;
proc_def->accelerator = accelerator;
proc_def->prefixes = NULL;
proc_def->extensions = NULL;
proc_def->magics = NULL;
proc_def->image_types = NULL;
return;
}
}
proc_def = g_new0 (PlugInProcDef, 1);
proc_def->db_info.name = prog;
proc_def->menu_path = menu_path;
proc_def->accelerator = accelerator;
gimprc_proc_defs = g_slist_prepend (gimprc_proc_defs, proc_def);
}
gchar *
plug_in_image_types (gchar *name)
{
......
......@@ -19,6 +19,9 @@
#ifndef __BASE_ENUMS_H__
#define __BASE_ENUMS_H__
/* These enums that are registered with the type system. */
#define GIMP_TYPE_INTERPOLATION_TYPE (gimp_interpolation_type_get_type ())
GType gimp_interpolation_type_get_type (void) G_GNUC_CONST;
......@@ -31,4 +34,36 @@ typedef enum
} GimpInterpolationType;
#endif /* __BASE_TYPES_H__ */
#define GIMP_TYPE_LAYER_MODE_EFFECTS (gimp_layer_mode_effects_get_type ())
GType gimp_layer_mode_effects_get_type (void) G_GNUC_CONST;
typedef enum
{
GIMP_NORMAL_MODE,
GIMP_DISSOLVE_MODE,
GIMP_BEHIND_MODE,
GIMP_MULTIPLY_MODE,
GIMP_SCREEN_MODE,
GIMP_OVERLAY_MODE,
GIMP_DIFFERENCE_MODE,
GIMP_ADDITION_MODE,
GIMP_SUBTRACT_MODE,
GIMP_DARKEN_ONLY_MODE,
GIMP_LIGHTEN_ONLY_MODE,
GIMP_HUE_MODE,
GIMP_SATURATION_MODE,
GIMP_COLOR_MODE,
GIMP_VALUE_MODE,
GIMP_DIVIDE_MODE,
GIMP_DODGE_MODE,
GIMP_BURN_MODE,
GIMP_HARDLIGHT_MODE,
GIMP_COLOR_ERASE_MODE,
GIMP_ERASE_MODE, /*< skip >*/
GIMP_REPLACE_MODE, /*< skip >*/
GIMP_ANTI_ERASE_MODE /*< skip >*/
} GimpLayerModeEffects;
#endif /* __BASE_ENUMS_H__ */
......@@ -41,68 +41,40 @@
/* enums */
/* Layer modes */
typedef enum
{
NORMAL_MODE,
DISSOLVE_MODE,
BEHIND_MODE,
MULTIPLY_MODE,
SCREEN_MODE,
OVERLAY_MODE,
DIFFERENCE_MODE,
ADDITION_MODE,
SUBTRACT_MODE,
DARKEN_ONLY_MODE,
LIGHTEN_ONLY_MODE,
HUE_MODE,
SATURATION_MODE,
COLOR_MODE,
VALUE_MODE,
DIVIDE_MODE,
DODGE_MODE,
BURN_MODE,
HARDLIGHT_MODE,
COLOR_ERASE_MODE,
ERASE_MODE, /*< skip >*/
REPLACE_MODE, /*< skip >*/
ANTI_ERASE_MODE /*< skip >*/
} LayerModeEffects;
/* Types of convolutions */
typedef enum
{
NORMAL_CONVOL, /* Negative numbers truncated */
ABSOLUTE_CONVOL, /* Absolute value */
NEGATIVE_CONVOL /* add 127 to values */
} ConvolutionType;
GIMP_NORMAL_CONVOL, /* Negative numbers truncated */
GIMP_ABSOLUTE_CONVOL, /* Absolute value */
GIMP_NEGATIVE_CONVOL /* add 127 to values */
} GimpConvolutionType;
typedef enum
{
VALUE_LUT,
RED_LUT,
GREEN_LUT,
BLUE_LUT,
ALPHA_LUT,
GRAY_LUT = 0 /*< skip >*/
} ChannelLutType;
GIMP_VALUE_LUT,
GIMP_RED_LUT,
GIMP_GREEN_LUT,
GIMP_BLUE_LUT,
GIMP_ALPHA_LUT,
GIMP_GRAY_LUT = 0 /*< skip >*/
} GimpChannelLutType;
/* Transparency representation */
typedef enum /*< skip >*/
{
LIGHT_CHECKS = 0,
GRAY_CHECKS = 1,
DARK_CHECKS = 2,
WHITE_ONLY = 3,
GRAY_ONLY = 4,
BLACK_ONLY = 5
GIMP_LIGHT_CHECKS = 0,
GIMP_GRAY_CHECKS = 1,
GIMP_DARK_CHECKS = 2,
GIMP_WHITE_ONLY = 3,
GIMP_GRAY_ONLY = 4,
GIMP_BLACK_ONLY = 5
} GimpCheckType;
typedef enum /*< skip >*/
{
SMALL_CHECKS = 0,
MEDIUM_CHECKS = 1,
LARGE_CHECKS = 2
GIMP_SMALL_CHECKS = 0,
GIMP_MEDIUM_CHECKS = 1,
GIMP_LARGE_CHECKS = 2
} GimpCheckSize;
typedef enum /*< skip >*/
......
......@@ -213,40 +213,40 @@ temp_buf_new_check (gint width,
switch (check_size)
{
case SMALL_CHECKS:
case GIMP_SMALL_CHECKS:
check_shift = 2;
break;
case MEDIUM_CHECKS:
case GIMP_MEDIUM_CHECKS:
check_shift = 4;
break;
case LARGE_CHECKS:
case GIMP_LARGE_CHECKS:
check_shift = 6;
break;
}
switch (check_type)
{
case LIGHT_CHECKS:
case GIMP_LIGHT_CHECKS:
fg_color = 204;
bg_color = 255;
break;
case GRAY_CHECKS:
case GIMP_GRAY_CHECKS:
fg_color = 102;
bg_color = 153;
break;
case DARK_CHECKS:
case GIMP_DARK_CHECKS:
fg_color = 0;
bg_color = 51;
break;
case WHITE_ONLY:
case GIMP_WHITE_ONLY:
fg_color = 255;
bg_color = 255;
break;
case GRAY_ONLY:
case GIMP_GRAY_ONLY:
fg_color = 127;
bg_color = 127;
break;
case BLACK_ONLY:
case GIMP_BLACK_ONLY:
fg_color = 0;
bg_color = 0;
}
......
......@@ -4,5 +4,6 @@ Makefile.in
.libs
*.lo
libappcore.la
core-enums.c
gimpmarshal.c
gimpmarshal.h
......@@ -16,6 +16,7 @@ INCLUDES = @STRIP_BEGIN@ \
noinst_LIBRARIES = libappcore.a
libappcore_a_sources = @STRIP_BEGIN@ \
core-enums.h \
core-types.h \
gimp.c \
gimp.h \
......@@ -147,6 +148,7 @@ libappcore_a_sources = @STRIP_BEGIN@ \
@STRIP_END@
libappcore_a_built_sources = @STRIP_BEGIN@ \
core-enums.c \
gimpmarshal.c \
gimpmarshal.h \
@STRIP_END@
......@@ -165,7 +167,7 @@ EXTRA_DIST = \
# rules to generate built sources
#
# setup autogeneration dependancies
gen_sources = xgen-gmh xgen-gmc
gen_sources = xgen-gmh xgen-gmc xgen-cec
CLEANFILES = $(gen_sources)
$(srcdir)/gimpmarshal.h: $(srcdir)/gimpmarshal.list
......@@ -179,3 +181,14 @@ $(srcdir)/gimpmarshal.c: $(srcdir)/gimpmarshal.h
&& glib-genmarshal --prefix=gimp_marshal $(srcdir)/gimpmarshal.list --body >> xgen-gmc \
&& cp xgen-gmc $(srcdir)/gimpmarshal.c \
&& rm -f xgen-gmc xgen-gmc~
$(srcdir)/core-enums.c: $(srcdir)/core-enums.h
glib-mkenums \
--fhead "#include <glib-object.h>\n#include \"core-enums.h\"" \
--fprod "\n/* enumerations from \"@filename@\" */" \
--vhead "\nstatic const GEnumValue @enum_name@_enum_values[] =\n{\n" \
--vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
--vtail " { 0, NULL, NULL }\n};\n\nGType\n@enum_name@_get_type (void)\n{\n static GType enum_type = 0;\n\n if (!enum_type)\n enum_type = g_enum_register_static (\"@EnumName@\", @enum_name@_enum_values);\n\n return enum_type;\n}\n" \
$(srcdir)/core-enums.h > xgen-cec \
&& cp xgen-cec $(@F) \
&& rm -f xgen-cec
/* The GIMP -- an 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 __CORE_ENUMS_H__
#define __CORE_ENUMS_H__
/* These enums that are registered with the type system. */
#define GIMP_TYPE_PREVIEW_SIZE (gimp_preview_size_get_type ())
GType gimp_preview_size_get_type (void) G_GNUC_CONST;
typedef enum
{
GIMP_PREVIEW_SIZE_NONE = 0,
GIMP_PREVIEW_SIZE_TINY = 16,
GIMP_PREVIEW_SIZE_EXTRA_SMALL = 24,
GIMP_PREVIEW_SIZE_SMALL = 32,
GIMP_PREVIEW_SIZE_MEDIUM = 48,
GIMP_PREVIEW_SIZE_LARGE = 64,
GIMP_PREVIEW_SIZE_EXTRA_LARGE = 96,
GIMP_PREVIEW_SIZE_HUGE = 128,
GIMP_PREVIEW_SIZE_ENORMOUS = 192,
GIMP_PREVIEW_SIZE_GIGANTIC = 256
} GimpPreviewSize;
#endif /* __CORE_TYPES_H__ */
......@@ -29,6 +29,8 @@
#include "undo_types.h" /* EEK */
#include "core/core-enums.h"
/* enums */
......@@ -214,20 +216,6 @@ typedef enum /*< skip >*/
GIMP_TRANSFORM_BACKWARD
} GimpTransformDirection;
typedef enum /*< skip >*/
{
GIMP_PREVIEW_SIZE_NONE = 0,
GIMP_PREVIEW_SIZE_TINY = 16,
GIMP_PREVIEW_SIZE_EXTRA_SMALL = 24,
GIMP_PREVIEW_SIZE_SMALL = 32,
GIMP_PREVIEW_SIZE_MEDIUM = 48,
GIMP_PREVIEW_SIZE_LARGE = 64,
GIMP_PREVIEW_SIZE_EXTRA_LARGE = 96,
GIMP_PREVIEW_SIZE_HUGE = 128,
GIMP_PREVIEW_SIZE_ENORMOUS = 192,
GIMP_PREVIEW_SIZE_GIGANTIC = 256
} GimpPreviewSize;
/* base objects */
......
......@@ -173,13 +173,13 @@ gimp_edit_paste (GimpImage *gimage,
gimp_drawable_type_with_alpha (drawable),
paste,
_("Pasted Layer"),
OPAQUE_OPACITY, NORMAL_MODE);
OPAQUE_OPACITY, GIMP_NORMAL_MODE);
else
layer = gimp_layer_new_from_tiles (gimage,
gimp_image_base_type_with_alpha (gimage),
paste,
_("Pasted Layer"),
OPAQUE_OPACITY, NORMAL_MODE);
OPAQUE_OPACITY, GIMP_NORMAL_MODE);
if (! layer)
return NULL;
......@@ -255,7 +255,7 @@ gimp_edit_paste_as_new (Gimp *gimp,
gimp_image_base_type_with_alpha (gimage),
paste,
_("Pasted Layer"),
OPAQUE_OPACITY, NORMAL_MODE);
OPAQUE_OPACITY, GIMP_NORMAL_MODE);
if (layer)
{
......@@ -303,7 +303,7 @@ gimp_edit_clear (GimpImage *gimage,
pixel_region_init (&bufPR, buf_tiles, 0, 0, (x2 - x1), (y2 - y1), FALSE);
gimp_image_apply_image (gimage, drawable, &bufPR, TRUE, OPAQUE_OPACITY,
ERASE_MODE, NULL, x1, y1);
GIMP_ERASE_MODE, NULL, x1, y1);
/* update the image */
gimp_drawable_update (drawable,
......@@ -377,7 +377,7 @@ gimp_edit_fill (GimpImage *gimage,
pixel_region_init (&bufPR, buf_tiles, 0, 0, (x2 - x1), (y2 - y1), FALSE);
gimp_image_apply_image (gimage, drawable, &bufPR, TRUE, OPAQUE_OPACITY,
NORMAL_MODE, NULL, x1, y1);
GIMP_NORMAL_MODE, NULL, x1, y1);
/* update the image */
gimp_drawable_update (drawable,
......
......@@ -741,7 +741,7 @@ gimp_drawable_transform_paste (GimpDrawable *drawable,
gimp_drawable_type_with_alpha (drawable),
tiles,
_("Transformation"),
OPAQUE_OPACITY, NORMAL_MODE);
OPAQUE_OPACITY, GIMP_NORMAL_MODE);
if (! layer)
{
g_warning ("%s: gimp_layer_new_frome_tiles() failed",
......
......@@ -121,7 +121,8 @@ static void gimp_context_copy_opacity (GimpContext *src,
/* paint mode */
static void gimp_context_real_set_paint_mode (GimpContext *context,
LayerModeEffects paint_mode);
GimpLayerModeEffects
paint_mode);
static void gimp_context_copy_paint_mode (GimpContext *src,
GimpContext *dest);
......@@ -578,13 +579,14 @@ gimp_context_class_init (GimpContextClass *klass)
1.0,
G_PARAM_READWRITE));
/* FIXME: convert to enum property */
g_object_class_install_property (object_class,
PROP_PAINT_MODE,
g_param_spec_int (gimp_context_prop_names[PAINT_MODE_CHANGED],
NULL, NULL,
NORMAL_MODE,
ANTI_ERASE_MODE,
NORMAL_MODE,
GIMP_NORMAL_MODE,
GIMP_ANTI_ERASE_MODE,
GIMP_NORMAL_MODE,
G_PARAM_READWRITE));
g_object_class_install_property (object_class,
......@@ -649,7 +651,7 @@ gimp_context_init (GimpContext *context)
gimp_rgba_set (&context->background, 1.0, 1.0, 1.0, 1.0);
context->opacity = 1.0;
context->paint_mode = NORMAL_MODE;
context->paint_mode = GIMP_NORMAL_MODE;
context->brush = NULL;
context->brush_name = NULL;
......@@ -1754,17 +1756,17 @@ gimp_context_copy_opacity (GimpContext *src,
/*****************************************************************************/
/* paint mode **************************************************************/
LayerModeEffects
GimpLayerModeEffects
gimp_context_get_paint_mode (GimpContext *context)
{
g_return_val_if_fail (GIMP_IS_CONTEXT (context), NORMAL_MODE);
g_return_val_if_fail (GIMP_IS_CONTEXT (context), GIMP_NORMAL_MODE);
return context->paint_mode;
}
void
gimp_context_set_paint_mode (GimpContext *context,
LayerModeEffects paint_mode)
gimp_context_set_paint_mode (GimpContext *context,
GimpLayerModeEffects paint_mode)
{
g_return_if_fail (GIMP_IS_CONTEXT (context));
context_find_defined (context, GIMP_CONTEXT_PAINT_MODE_MASK);
......@@ -1783,8 +1785,8 @@ gimp_context_paint_mode_changed (GimpContext *context)
}
static void
gimp_context_real_set_paint_mode (GimpContext *context,
LayerModeEffects paint_mode)
gimp_context_real_set_paint_mode (GimpContext *context,
GimpLayerModeEffects paint_mode)
{
if (context->paint_mode == paint_mode)
return;
......
......@@ -90,74 +90,74 @@ typedef struct _GimpContextClass GimpContextClass;
struct _GimpContext
{
GimpObject parent_instance;
GimpObject parent_instance;
Gimp *gimp;
Gimp *gimp;
GimpContext *parent;
GimpContext *parent;
guint32 defined_props;
guint32 defined_props;
GimpImage *image;
gpointer display;
GimpImage *image;
gpointer display;
GimpToolInfo *tool_info;
gchar *tool_name;
GimpToolInfo *tool_info;
gchar *tool_name;
GimpRGB foreground;
GimpRGB background;
GimpRGB foreground;
GimpRGB background;
gdouble opacity;
LayerModeEffects paint_mode;
gdouble opacity;
GimpLayerModeEffects paint_mode;
GimpBrush *brush;
gchar *brush_name;
GimpBrush *brush;
gchar *brush_name;
GimpPattern *pattern;
gchar *pattern_name;
GimpPattern *pattern;
gchar *pattern_name;
GimpGradient *gradient;
gchar *gradient_name;
GimpGradient *gradient;
gchar *gradient_name;
GimpPalette *palette;
gchar *palette_name;
GimpPalette *palette;
gchar *palette_name;
GimpBuffer *buffer;
GimpImagefile *imagefile;
GimpBuffer *buffer;
GimpImagefile *imagefile;
};
struct _GimpContextClass
{
GimpObjectClass parent_class;
void (* image_changed) (GimpContext *context,
GimpImage *image);
void (* display_changed) (GimpContext *context,
gpointer display);
void (* tool_changed) (GimpContext *context,
GimpToolInfo *tool_info);
void (* foreground_changed) (GimpContext *context,
GimpRGB *color);
void (* background_changed) (GimpContext *context,
GimpRGB *color);
void (* opacity_changed) (GimpContext *context,
gdouble opacity);
void (* paint_mode_changed) (GimpContext *context,
LayerModeEffects paint_mode);
void (* brush_changed) (GimpContext *context,
GimpBrush *brush);
void (* pattern_changed) (GimpContext *context,
GimpPattern *pattern);
void (* gradient_changed) (GimpContext *context,
GimpGradient *gradient);
void (* palette_changed) (GimpContext *context,
GimpPalette *palette);
void (* buffer_changed) (GimpContext *context,
GimpBuffer *buffer);
void (* imagefile_changed) (GimpContext *context,
GimpImagefile *imagefile);
void (* image_changed) (GimpContext *context,
GimpImage *image);
void (* display_changed) (GimpContext *context,
gpointer display);
void (* tool_changed) (GimpContext *context,
GimpToolInfo *tool_info);
void (* foreground_changed) (GimpContext *context,
GimpRGB *color);
void (* background_changed) (GimpContext *context,
GimpRGB *color);
void (* opacity_changed) (GimpContext *context,
gdouble opacity);
void (* paint_mode_changed) (GimpContext *context,
GimpLayerModeEffects paint_mode);
void (* brush_changed) (GimpContext *context,
GimpBrush *brush);
void (* pattern_changed) (GimpContext *context,
GimpPattern *pattern);
void (* gradient_changed) (GimpContext *context,
GimpGradient *gradient);
void (* palette_changed) (GimpContext *context,
GimpPalette *palette);
void (* buffer_changed) (GimpContext *context,
GimpBuffer *buffer);
void (* imagefile_changed) (GimpContext *context,
GimpImagefile *imagefile);
};
......@@ -203,114 +203,115 @@ void gimp_context_copy_properties (GimpContext *src,
/* manipulate by GType */
GimpContextPropType gimp_context_type_to_property (GType type);
const gchar * gimp_context_type_to_signal_name (GType type);
GimpContextPropType gimp_context_type_to_property (GType type);