Commit 6aaa645e authored by Michael Natterer's avatar Michael Natterer 😴

libgimp, script-fu: remove GIMP 1.2 (sic) compat defines

which we wanted to remove in the "next development cycle" after 2.0,
which would have been in 2.1.x.
parent 31f4c5bc
......@@ -184,7 +184,6 @@ PDB_WRAPPERS_H = \
libgimp_sources = \
gimp.c \
gimp.h \
gimpcompat.h \
gimptypes.h \
gimpenums.h \
${PDB_WRAPPERS_C} \
......@@ -316,7 +315,6 @@ libgimpui_@GIMP_API_VERSION@_la_SOURCES = \
gimpinclude_HEADERS = \
gimp.h \
gimpcompat.h \
gimptypes.h \
gimpenums.h \
${PDB_WRAPPERS_H} \
......
/* LIBGIMP - The GIMP Library
* Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
*
* gimpcompat.h
* Compatibility defines to ease migration from the GIMP-1.2 API
*
* This library is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* This library 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
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library. If not, see
* <http://www.gnu.org/licenses/>.
*/
#ifndef __GIMP_COMPAT_H__
#define __GIMP_COMPAT_H__
G_BEGIN_DECLS
/* This file contains aliases that are kept for historical reasons,
* because a wide code base depends on them. We suggest that you
* only use this header temporarily while porting a plug-in to the
* new API.
*
* These defines will be removed in the next development cycle.
*/
#ifndef GIMP_DISABLE_DEPRECATED
#define GimpRunModeType GimpRunMode
#define GimpExportReturnType GimpExportReturn
#define gimp_use_xshm() (TRUE)
#define gimp_color_cube ((guchar *) { 6, 6, 4, 24 })
#define gimp_blend gimp_edit_blend
#define gimp_bucket_fill gimp_edit_bucket_fill
#define gimp_color_picker gimp_image_pick_color
#define gimp_convert_rgb gimp_image_convert_rgb
#define gimp_convert_grayscale gimp_image_convert_grayscale
#define gimp_convert_indexed gimp_image_convert_indexed
#define gimp_crop gimp_image_crop
#define gimp_channel_get_image_id gimp_drawable_get_image
#define gimp_channel_delete gimp_drawable_delete
#define gimp_channel_get_name gimp_drawable_get_name
#define gimp_channel_set_name gimp_drawable_set_name
#define gimp_channel_get_visible gimp_drawable_get_visible
#define gimp_channel_set_visible gimp_drawable_set_visible
#define gimp_channel_get_tattoo gimp_drawable_get_tattoo
#define gimp_channel_set_tattoo gimp_drawable_set_tattoo
#define gimp_channel_ops_offset gimp_drawable_offset
#define gimp_channel_ops_duplicate gimp_image_duplictate
#define gimp_layer_get_image_id gimp_drawable_get_image
#define gimp_layer_delete gimp_drawable_delete
#define gimp_layer_get_name gimp_drawable_get_name
#define gimp_layer_set_name gimp_drawable_set_name
#define gimp_layer_get_visible gimp_drawable_get_visible
#define gimp_layer_set_visible gimp_drawable_set_visible
#define gimp_layer_get_linked gimp_drawable_get_linked
#define gimp_layer_set_linked gimp_drawable_set_linked
#define gimp_layer_get_tattoo gimp_drawable_get_tattoo
#define gimp_layer_set_tattoo gimp_drawable_set_tattoo
#define gimp_layer_is_floating_selection gimp_layer_is_floating_sel
#define gimp_layer_get_preserve_transparency gimp_layer_get_preserve_trans
#define gimp_layer_set_preserve_transparency gimp_layer_set_preserve_trans
#define gimp_layer_mask gimp_layer_get_mask
#define gimp_layer_get_mask_id gimp_layer_get_mask
#define gimp_drawable_image gimp_drawable_get_image
#define gimp_drawable_image_id gimp_drawable_get_image
#define gimp_drawable_name gimp_drawable_get_name
#define gimp_drawable_visible gimp_drawable_get_visible
#define gimp_drawable_bytes gimp_drawable_bpp
#define gimp_image_active_drawable gimp_image_get_active_drawable
#define gimp_image_floating_selection gimp_image_get_floating_sel
#define gimp_image_add_layer_mask(i,l,m) gimp_layer_add_mask(l,m)
#define gimp_image_remove_layer_mask(i,l,m) gimp_layer_remove_mask(l,m)
#define gimp_gradients_get_active gimp_gradients_get_gradient
#define gimp_gradients_set_active gimp_gradients_set_gradient
#define gimp_palette_refresh gimp_palettes_refresh
#define gimp_temp_PDB_name gimp_procedural_db_temp_name
#define gimp_undo_push_group_start gimp_image_undo_group_start
#define gimp_undo_push_group_end gimp_image_undo_group_end
#define gimp_help_init() ((void) 0)
#define gimp_help_free() ((void) 0)
#define gimp_interactive_selection_brush gimp_brush_select_new
#define gimp_brush_select_widget gimp_brush_select_widget_new
#define gimp_brush_select_widget_set_popup gimp_brush_select_widget_set
#define gimp_brush_select_widget_close_popup gimp_brush_select_widget_close
#define gimp_interactive_selection_font gimp_font_select_new
#define gimp_gradient_select_widget gimp_gradient_select_widget_new
#define gimp_gradient_select_widget_set_popup gimp_gradient_select_widget_set
#define gimp_gradient_select_widget_close_popup gimp_gradient_select_widget_close
#define gimp_interactive_selection_gradient gimp_gradient_select_new
#define gimp_font_select_widget gimp_font_select_widget_new
#define gimp_font_select_widget_set_popup gimp_font_select_widget_set
#define gimp_font_select_widget_close_popup gimp_font_select_widget_close
#define gimp_interactive_selection_pattern gimp_pattern_select_new
#define gimp_pattern_select_widget gimp_pattern_select_widget_new
#define gimp_pattern_select_widget_set_popup gimp_pattern_select_widget_set
#define gimp_pattern_select_widget_close_popup gimp_pattern_select_widget_close
#define INTENSITY(r,g,b) GIMP_RGB_INTENSITY(r,g,b)
#define INTENSITY_RED GIMP_RGB_INTENSITY_RED
#define INTENSITY_GREEN GIMP_RGB_INTENSITY_GREEN
#define INTENSITY_BLUE GIMP_RGB_INTENSITY_BLUE
#define gimp_file_selection_ gimp_file_entry_
#define GimpFileSelection GimpFileEntry
#define GIMP_TYPE_FILE_SELECTION GIMP_TYPE_FILE_ENTRY
#define GIMP_FILE_SELECTION GIMP_FILE_ENTRY
#define GIMP_IS_FILE_SELECTION GIMP_IS_FILE_ENTRY
enum
{
GIMP_WHITE_MASK = GIMP_ADD_WHITE_MASK,
GIMP_BLACK_MASK = GIMP_ADD_BLACK_MASK,
GIMP_ALPHA_MASK = GIMP_ADD_ALPHA_MASK,
GIMP_SELECTION_MASK = GIMP_ADD_SELECTION_MASK,
GIMP_COPY_MASK = GIMP_ADD_COPY_MASK,
};
enum
{
GIMP_ADD = GIMP_CHANNEL_OP_ADD,
GIMP_SUB = GIMP_CHANNEL_OP_SUBTRACT,
GIMP_REPLACE = GIMP_CHANNEL_OP_REPLACE,
GIMP_INTERSECT = GIMP_CHANNEL_OP_INTERSECT
};
enum
{
GIMP_FG_BG_RGB = GIMP_FG_BG_RGB_MODE,
GIMP_FG_BG_HSV = GIMP_FG_BG_HSV_MODE,
GIMP_FG_TRANS = GIMP_FG_TRANSPARENT_MODE,
GIMP_CUSTOM = GIMP_CUSTOM_MODE
};
enum
{
GIMP_FG_IMAGE_FILL = GIMP_FOREGROUND_FILL,
GIMP_BG_IMAGE_FILL = GIMP_BACKGROUND_FILL,
GIMP_WHITE_IMAGE_FILL = GIMP_WHITE_FILL,
GIMP_TRANS_IMAGE_FILL = GIMP_TRANSPARENT_FILL
};
enum
{
GIMP_APPLY = GIMP_MASK_APPLY,
GIMP_DISCARD = GIMP_MASK_DISCARD
};
enum
{
GIMP_HARD = GIMP_BRUSH_HARD,
GIMP_SOFT = GIMP_BRUSH_SOFT,
};
enum
{
GIMP_CONTINUOUS = GIMP_PAINT_CONSTANT,
GIMP_INCREMENTAL = GIMP_PAINT_INCREMENTAL
};
enum
{
GIMP_HORIZONTAL = GIMP_ORIENTATION_HORIZONTAL,
GIMP_VERTICAL = GIMP_ORIENTATION_VERTICAL,
GIMP_UNKNOWN = GIMP_ORIENTATION_UNKNOWN
};
enum
{
GIMP_LINEAR = GIMP_GRADIENT_LINEAR,
GIMP_BILNEAR = GIMP_GRADIENT_BILINEAR,
GIMP_RADIAL = GIMP_GRADIENT_RADIAL,
GIMP_SQUARE = GIMP_GRADIENT_SQUARE,
GIMP_CONICAL_SYMMETRIC = GIMP_GRADIENT_CONICAL_SYMMETRIC,
GIMP_CONICAL_ASYMMETRIC = GIMP_GRADIENT_CONICAL_ASYMMETRIC,
GIMP_SHAPEBURST_ANGULAR = GIMP_GRADIENT_SHAPEBURST_ANGULAR,
GIMP_SHAPEBURST_SPHERICAL = GIMP_GRADIENT_SHAPEBURST_SPHERICAL,
GIMP_SHAPEBURST_DIMPLED = GIMP_GRADIENT_SHAPEBURST_DIMPLED,
GIMP_SPIRAL_CLOCKWISE = GIMP_GRADIENT_SPIRAL_CLOCKWISE,
GIMP_SPIRAL_ANTICLOCKWISE = GIMP_GRADIENT_SPIRAL_ANTICLOCKWISE
};
enum
{
GIMP_VALUE_LUT = GIMP_HISTOGRAM_VALUE,
GIMP_RED_LUT = GIMP_HISTOGRAM_RED,
GIMP_GREEN_LUT = GIMP_HISTOGRAM_GREEN,
GIMP_BLUE_LUT = GIMP_HISTOGRAM_BLUE,
GIMP_ALPHA_LUT = GIMP_HISTOGRAM_ALPHA
};
#endif /* GIMP_DISABLE_DEPRECATED */
G_END_DECLS
#endif /* __GIMP_COMPAT_H__ */
......@@ -131,78 +131,6 @@ static const NamedConstant const script_constants[] =
*/
static const NamedConstant const old_constants[] =
{
{ "NORMAL", GIMP_NORMAL_MODE },
{ "DISSOLVE", GIMP_DISSOLVE_MODE },
{ "BEHIND", GIMP_BEHIND_MODE },
{ "MULTIPLY", GIMP_MULTIPLY_MODE },
{ "SCREEN", GIMP_SCREEN_MODE },
{ "OVERLAY", GIMP_OVERLAY_MODE },
{ "DIFFERENCE", GIMP_DIFFERENCE_MODE },
{ "ADDITION", GIMP_ADDITION_MODE },
{ "SUBTRACT", GIMP_SUBTRACT_MODE },
{ "DARKEN-ONLY", GIMP_DARKEN_ONLY_MODE },
{ "LIGHTEN-ONLY", GIMP_LIGHTEN_ONLY_MODE },
{ "HUE", GIMP_HUE_MODE },
{ "SATURATION", GIMP_SATURATION_MODE },
{ "COLOR", GIMP_COLOR_MODE },
{ "VALUE", GIMP_VALUE_MODE },
{ "DIVIDE", GIMP_DIVIDE_MODE },
{ "BLUR", GIMP_CONVOLVE_BLUR },
{ "SHARPEN", GIMP_CONVOLVE_SHARPEN },
{ "WHITE-MASK", GIMP_ADD_MASK_WHITE },
{ "BLACK-MASK", GIMP_ADD_MASK_BLACK },
{ "ALPHA-MASK", GIMP_ADD_MASK_ALPHA },
{ "SELECTION-MASK", GIMP_ADD_MASK_SELECTION },
{ "COPY-MASK", GIMP_ADD_MASK_COPY },
{ "ADD", GIMP_CHANNEL_OP_ADD },
{ "SUB", GIMP_CHANNEL_OP_SUBTRACT },
{ "REPLACE", GIMP_CHANNEL_OP_REPLACE },
{ "INTERSECT", GIMP_CHANNEL_OP_INTERSECT },
{ "FG-BG-RGB", GIMP_BLEND_FG_BG_RGB },
{ "FG-BG-HSV", GIMP_BLEND_FG_BG_HSV },
{ "FG-TRANS", GIMP_BLEND_FG_TRANSPARENT },
{ "CUSTOM", GIMP_BLEND_CUSTOM },
{ "FG-IMAGE-FILL", GIMP_FOREGROUND_FILL },
{ "BG-IMAGE-FILL", GIMP_BACKGROUND_FILL },
{ "WHITE-IMAGE-FILL", GIMP_WHITE_FILL },
{ "TRANS-IMAGE-FILL", GIMP_TRANSPARENT_FILL },
{ "APPLY", GIMP_MASK_APPLY },
{ "DISCARD", GIMP_MASK_DISCARD },
{ "HARD", GIMP_BRUSH_HARD },
{ "SOFT", GIMP_BRUSH_SOFT },
{ "CONTINUOUS", GIMP_PAINT_CONSTANT },
{ "INCREMENTAL", GIMP_PAINT_INCREMENTAL },
{ "HORIZONTAL", GIMP_ORIENTATION_HORIZONTAL },
{ "VERTICAL", GIMP_ORIENTATION_VERTICAL },
{ "UNKNOWN", GIMP_ORIENTATION_UNKNOWN },
{ "LINEAR", GIMP_GRADIENT_LINEAR },
{ "BILINEAR", GIMP_GRADIENT_BILINEAR },
{ "RADIAL", GIMP_GRADIENT_RADIAL },
{ "SQUARE", GIMP_GRADIENT_SQUARE },
{ "CONICAL-SYMMETRIC", GIMP_GRADIENT_CONICAL_SYMMETRIC },
{ "CONICAL-ASYMMETRIC", GIMP_GRADIENT_CONICAL_ASYMMETRIC },
{ "SHAPEBURST-ANGULAR", GIMP_GRADIENT_SHAPEBURST_ANGULAR },
{ "SHAPEBURST-SPHERICAL", GIMP_GRADIENT_SHAPEBURST_SPHERICAL },
{ "SHAPEBURST-DIMPLED", GIMP_GRADIENT_SHAPEBURST_DIMPLED },
{ "SPIRAL-CLOCKWISE", GIMP_GRADIENT_SPIRAL_CLOCKWISE },
{ "SPIRAL-ANTICLOCKWISE", GIMP_GRADIENT_SPIRAL_ANTICLOCKWISE },
{ "VALUE-LUT", GIMP_HISTOGRAM_VALUE },
{ "RED-LUT", GIMP_HISTOGRAM_RED },
{ "GREEN-LUT", GIMP_HISTOGRAM_GREEN },
{ "BLUE-LUT", GIMP_HISTOGRAM_BLUE },
{ "ALPHA-LUT", GIMP_HISTOGRAM_ALPHA },
/* the following enums got cleaned up with properly named values in 2.10 */
{ "ADD-WHITE-MASK", GIMP_ADD_MASK_WHITE },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment