Commit 9525c646 authored by Michael Natterer's avatar Michael Natterer 😴

libgimp: remove tons of deprecated cruft

parent 1ed586f0
......@@ -214,22 +214,16 @@ libgimp_sources = \
gimpenums.h \
${PDB_WRAPPERS_C} \
${PDB_WRAPPERS_H} \
gimpbrushes.c \
gimpbrushes.h \
gimpbrushselect.c \
gimpbrushselect.h \
gimpchannel.c \
gimpchannel.h \
gimpdrawable.c \
gimpdrawable.h \
gimpedit.c \
gimpedit.h \
gimpfontselect.c \
gimpfontselect.h \
gimpgimprc.c \
gimpgimprc.h \
gimpgradients.c \
gimpgradients.h \
gimpgradientselect.c \
gimpgradientselect.h \
gimpimage.c \
......@@ -238,14 +232,8 @@ libgimp_sources = \
gimpimagecolorprofile.h \
gimplayer.c \
gimplayer.h \
gimppalette.c \
gimppalette.h \
gimppalettes.c \
gimppalettes.h \
gimppaletteselect.c \
gimppaletteselect.h \
gimppatterns.c \
gimppatterns.h \
gimppatternselect.c \
gimppatternselect.h \
gimppixbuf.c \
......@@ -270,8 +258,6 @@ libgimp_sources = \
gimptilebackendplugin.h \
gimpunitcache.c \
gimpunitcache.h \
gimpvectors.c \
gimpvectors.h \
stdplugins-intl.h \
libgimp-intl.h
......@@ -290,20 +276,14 @@ libgimpui_sources = \
gimpuitypes.h \
gimpaspectpreview.c \
gimpaspectpreview.h \
gimpbrushmenu.c \
gimpbrushmenu.h \
gimpbrushselectbutton.c \
gimpbrushselectbutton.h \
gimpdrawablepreview.c \
gimpdrawablepreview.h \
gimpexport.c \
gimpexport.h \
gimpfontmenu.c \
gimpfontmenu.h \
gimpfontselectbutton.c \
gimpfontselectbutton.h \
gimpgradientmenu.c \
gimpgradientmenu.h \
gimpgradientselectbutton.c \
gimpgradientselectbutton.h \
gimpimagecombobox.c \
......@@ -312,14 +292,8 @@ libgimpui_sources = \
gimpimagemetadata.h \
gimpitemcombobox.c \
gimpitemcombobox.h \
gimpmenu.c \
gimpmenu.h \
gimppalettemenu.c \
gimppalettemenu.h \
gimppaletteselectbutton.c \
gimppaletteselectbutton.h \
gimppatternmenu.c \
gimppatternmenu.h \
gimppatternselectbutton.c \
gimppatternselectbutton.h \
gimpprocbrowserdialog.c \
......@@ -348,22 +322,16 @@ gimpinclude_HEADERS = \
gimptypes.h \
gimpenums.h \
${PDB_WRAPPERS_H} \
gimpbrushes.h \
gimpbrushselect.h \
gimpchannel.h \
gimpdrawable.h \
gimpedit.h \
gimpfontselect.h \
gimpgimprc.h \
gimpgradients.h \
gimpgradientselect.h \
gimpimage.h \
gimpimagecolorprofile.h \
gimplayer.h \
gimppalette.h \
gimppalettes.h \
gimppaletteselect.h \
gimppatterns.h \
gimppatternselect.h \
gimppixelfetcher.h \
gimppixelrgn.h \
......@@ -373,26 +341,19 @@ gimpinclude_HEADERS = \
gimpregioniterator.h \
gimpselection.h \
gimptile.h \
gimpvectors.h \
\
gimpui.h \
gimpuitypes.h \
gimpaspectpreview.h \
gimpbrushmenu.h \
gimpbrushselectbutton.h \
gimpdrawablepreview.h \
gimpexport.h \
gimpfontmenu.h \
gimpfontselectbutton.h \
gimpgradientmenu.h \
gimpgradientselectbutton.h \
gimpimagecombobox.h \
gimpimagemetadata.h \
gimpitemcombobox.h \
gimpmenu.h \
gimppalettemenu.h \
gimppaletteselectbutton.h \
gimppatternmenu.h \
gimppatternselectbutton.h \
gimppixbuf.h \
gimpprocbrowserdialog.h \
......
......@@ -1377,44 +1377,6 @@ gimp_gamma (void)
return _gamma_val;
}
/**
* gimp_install_cmap:
*
* Returns whether or not the plug-in should allocate an own colormap
* when running on an 8 bit display. See also: gimp_min_colors().
*
* This is a constant value given at plug-in configuration time.
*
* @Deprecated: 2.8
*
* Return value: the install_cmap boolean
**/
gboolean
gimp_install_cmap (void)
{
return _install_cmap;
}
/**
* gimp_min_colors:
*
* Returns the minimum number of colors to use when allocating an own
* colormap on 8 bit displays.
*
* This is a constant value given at plug-in configuration time.
*
* See also: gimp_install_cmap()
*
* @Deprecated: 2.8
*
* Return value: the minimum number of colors to allocate
**/
gint
gimp_min_colors (void)
{
return _min_colors;
}
/**
* gimp_show_tool_tips:
*
......@@ -1756,99 +1718,6 @@ gimp_extension_process (guint timeout)
#endif
}
/**
* gimp_parasite_find:
* @name: The name of the parasite to find.
*
* Deprecated: Use gimp_get_parasite() instead.
*
* Returns: The found parasite.
**/
GimpParasite *
gimp_parasite_find (const gchar *name)
{
return gimp_get_parasite (name);
}
/**
* gimp_parasite_attach:
* @parasite: The parasite to attach.
*
* Deprecated: Use gimp_attach_parasite() instead.
*
* Returns: TRUE on success.
**/
gboolean
gimp_parasite_attach (const GimpParasite *parasite)
{
return gimp_attach_parasite (parasite);
}
/**
* gimp_parasite_detach:
* @name: The name of the parasite to detach.
*
* Deprecated: Use gimp_detach_parasite() instead.
*
* Returns: TRUE on success.
**/
gboolean
gimp_parasite_detach (const gchar *name)
{
return gimp_detach_parasite (name);
}
/**
* gimp_parasite_list:
* @num_parasites: The number of attached parasites.
* @parasites: The names of currently attached parasites.
*
* Deprecated: Use gimp_get_parasite_list() instead.
*
* Returns: TRUE on success.
**/
gboolean
gimp_parasite_list (gint *num_parasites,
gchar ***parasites)
{
*parasites = gimp_get_parasite_list (num_parasites);
return *parasites != NULL;
}
/**
* gimp_attach_new_parasite:
* @name: the name of the #GimpParasite to create and attach.
* @flags: the flags set on the #GimpParasite.
* @size: the size of the parasite data in bytes.
* @data: a pointer to the data attached with the #GimpParasite.
*
* Convenience function that creates a parasite and attaches it
* to GIMP.
*
* Deprecated: Use gimp_attach_parasite() instead.
*
* Return value: TRUE on successful creation and attachment of
* the new parasite.
*
* See Also: gimp_attach_parasite()
*/
gboolean
gimp_attach_new_parasite (const gchar *name,
gint flags,
gint size,
gconstpointer data)
{
GimpParasite *parasite = gimp_parasite_new (name, flags, size, data);
gboolean success;
success = gimp_attach_parasite (parasite);
gimp_parasite_free (parasite);
return success;
}
/* private functions */
......
EXPORTS
gimp_airbrush
gimp_airbrush_default
gimp_attach_new_parasite
gimp_attach_parasite
gimp_brightness_contrast
gimp_brush_application_mode_get_type
......@@ -33,14 +32,9 @@ EXPORTS
gimp_brushes_get_brush
gimp_brushes_get_brush_data
gimp_brushes_get_list
gimp_brushes_get_opacity
gimp_brushes_get_paint_mode
gimp_brushes_get_spacing
gimp_brushes_popup
gimp_brushes_refresh
gimp_brushes_set_brush
gimp_brushes_set_opacity
gimp_brushes_set_paint_mode
gimp_brushes_set_popup
gimp_brushes_set_spacing
gimp_buffer_delete
......@@ -205,14 +199,12 @@ EXPORTS
gimp_displays_reconnect
gimp_dodgeburn
gimp_dodgeburn_default
gimp_drawable_attach_new_parasite
gimp_drawable_bpp
gimp_drawable_brightness_contrast
gimp_drawable_color_balance
gimp_drawable_colorize_hsl
gimp_drawable_curves_explicit
gimp_drawable_curves_spline
gimp_drawable_delete
gimp_drawable_desaturate
gimp_drawable_detach
gimp_drawable_edit_bucket_fill
......@@ -230,32 +222,22 @@ EXPORTS
gimp_drawable_get_buffer
gimp_drawable_get_color_uchar
gimp_drawable_get_format
gimp_drawable_get_image
gimp_drawable_get_linked
gimp_drawable_get_name
gimp_drawable_get_pixel
gimp_drawable_get_shadow_buffer
gimp_drawable_get_sub_thumbnail
gimp_drawable_get_sub_thumbnail_data
gimp_drawable_get_tattoo
gimp_drawable_get_thumbnail
gimp_drawable_get_thumbnail_data
gimp_drawable_get_tile
gimp_drawable_get_tile2
gimp_drawable_get_visible
gimp_drawable_has_alpha
gimp_drawable_height
gimp_drawable_histogram
gimp_drawable_hue_saturation
gimp_drawable_invert
gimp_drawable_is_channel
gimp_drawable_is_gray
gimp_drawable_is_indexed
gimp_drawable_is_layer
gimp_drawable_is_layer_mask
gimp_drawable_is_rgb
gimp_drawable_is_text_layer
gimp_drawable_is_valid
gimp_drawable_levels
gimp_drawable_levels_stretch
gimp_drawable_mask_bounds
......@@ -263,17 +245,9 @@ EXPORTS
gimp_drawable_merge_shadow
gimp_drawable_offset
gimp_drawable_offsets
gimp_drawable_parasite_attach
gimp_drawable_parasite_detach
gimp_drawable_parasite_find
gimp_drawable_parasite_list
gimp_drawable_posterize
gimp_drawable_set_image
gimp_drawable_set_linked
gimp_drawable_set_name
gimp_drawable_set_pixel
gimp_drawable_set_tattoo
gimp_drawable_set_visible
gimp_drawable_threshold
gimp_drawable_transform_2d
gimp_drawable_transform_2d_default
......@@ -309,10 +283,8 @@ EXPORTS
gimp_edit_named_copy_visible
gimp_edit_named_cut
gimp_edit_named_paste
gimp_edit_named_paste_as_new
gimp_edit_named_paste_as_new_image
gimp_edit_paste
gimp_edit_paste_as_new
gimp_edit_paste_as_new_image
gimp_edit_stroke
gimp_edit_stroke_vectors
......@@ -401,14 +373,12 @@ EXPORTS
gimp_gradient_select_destroy
gimp_gradient_select_new
gimp_gradients_close_popup
gimp_gradients_get_gradient
gimp_gradients_get_gradient_data
gimp_gradients_get_list
gimp_gradients_popup
gimp_gradients_refresh
gimp_gradients_sample_custom
gimp_gradients_sample_uniform
gimp_gradients_set_gradient
gimp_gradients_set_popup
gimp_heal
gimp_heal_default
......@@ -422,7 +392,6 @@ EXPORTS
gimp_image_add_sample_point
gimp_image_add_vectors
gimp_image_add_vguide
gimp_image_attach_new_parasite
gimp_image_attach_parasite
gimp_image_base_type
gimp_image_clean_all
......@@ -456,7 +425,6 @@ EXPORTS
gimp_image_get_channel_by_tattoo
gimp_image_get_channel_position
gimp_image_get_channels
gimp_image_get_cmap
gimp_image_get_color_profile
gimp_image_get_colormap
gimp_image_get_component_active
......@@ -472,7 +440,6 @@ EXPORTS
gimp_image_get_item_position
gimp_image_get_layer_by_name
gimp_image_get_layer_by_tattoo
gimp_image_get_layer_position
gimp_image_get_layers
gimp_image_get_metadata
gimp_image_get_name
......@@ -509,30 +476,16 @@ EXPORTS
gimp_image_is_dirty
gimp_image_is_valid
gimp_image_list
gimp_image_lower_channel
gimp_image_lower_item
gimp_image_lower_item_to_bottom
gimp_image_lower_layer
gimp_image_lower_layer_to_bottom
gimp_image_lower_vectors
gimp_image_lower_vectors_to_bottom
gimp_image_merge_down
gimp_image_merge_visible_layers
gimp_image_new
gimp_image_new_with_precision
gimp_image_parasite_attach
gimp_image_parasite_detach
gimp_image_parasite_find
gimp_image_parasite_list
gimp_image_pick_color
gimp_image_pick_correlate_layer
gimp_image_raise_channel
gimp_image_raise_item
gimp_image_raise_item_to_top
gimp_image_raise_layer
gimp_image_raise_layer_to_top
gimp_image_raise_vectors
gimp_image_raise_vectors_to_top
gimp_image_remove_channel
gimp_image_remove_layer
gimp_image_remove_vectors
......@@ -552,7 +505,6 @@ EXPORTS
gimp_image_set_active_channel
gimp_image_set_active_layer
gimp_image_set_active_vectors
gimp_image_set_cmap
gimp_image_set_color_profile
gimp_image_set_color_profile_from_file
gimp_image_set_colormap
......@@ -575,7 +527,6 @@ EXPORTS
gimp_image_undo_thaw
gimp_image_unset_active_channel
gimp_image_width
gimp_install_cmap
gimp_install_procedure
gimp_install_temp_proc
gimp_invert
......@@ -639,7 +590,6 @@ EXPORTS
gimp_layer_get_mask
gimp_layer_get_mode
gimp_layer_get_opacity
gimp_layer_get_preserve_trans
gimp_layer_get_show_mask
gimp_layer_group_new
gimp_layer_is_floating_sel
......@@ -663,7 +613,6 @@ EXPORTS
gimp_layer_set_mode
gimp_layer_set_offsets
gimp_layer_set_opacity
gimp_layer_set_preserve_trans
gimp_layer_set_show_mask
gimp_layer_translate
gimp_levels
......@@ -673,7 +622,6 @@ EXPORTS
gimp_message
gimp_message_get_handler
gimp_message_set_handler
gimp_min_colors
gimp_monitor_number
gimp_paintbrush
gimp_paintbrush_default
......@@ -685,33 +633,22 @@ EXPORTS
gimp_palette_entry_get_name
gimp_palette_entry_set_color
gimp_palette_entry_set_name
gimp_palette_get_background
gimp_palette_get_colors
gimp_palette_get_columns
gimp_palette_get_foreground
gimp_palette_get_info
gimp_palette_is_editable
gimp_palette_new
gimp_palette_rename
gimp_palette_select_destroy
gimp_palette_select_new
gimp_palette_set_background
gimp_palette_set_columns
gimp_palette_set_default_colors
gimp_palette_set_foreground
gimp_palette_swap_colors
gimp_palettes_close_popup
gimp_palettes_get_list
gimp_palettes_get_palette
gimp_palettes_get_palette_entry
gimp_palettes_popup
gimp_palettes_refresh
gimp_palettes_set_palette
gimp_palettes_set_popup
gimp_parasite_attach
gimp_parasite_detach
gimp_parasite_find
gimp_parasite_list
gimp_path_delete
gimp_path_get_current
gimp_path_get_locked
......@@ -736,7 +673,6 @@ EXPORTS
gimp_patterns_get_pattern_data
gimp_patterns_popup
gimp_patterns_refresh
gimp_patterns_set_pattern
gimp_patterns_set_popup
gimp_pencil
gimp_perspective
......@@ -816,7 +752,6 @@ EXPORTS
gimp_selection_all
gimp_selection_border
gimp_selection_bounds
gimp_selection_clear
gimp_selection_combine
gimp_selection_feather
gimp_selection_float
......@@ -895,26 +830,12 @@ EXPORTS
gimp_vectors_copy
gimp_vectors_export_to_file
gimp_vectors_export_to_string
gimp_vectors_get_image
gimp_vectors_get_linked
gimp_vectors_get_name
gimp_vectors_get_strokes
gimp_vectors_get_tattoo
gimp_vectors_get_visible
gimp_vectors_import_from_file
gimp_vectors_import_from_string
gimp_vectors_is_valid
gimp_vectors_new
gimp_vectors_new_from_text_layer
gimp_vectors_parasite_attach
gimp_vectors_parasite_detach
gimp_vectors_parasite_find
gimp_vectors_parasite_list
gimp_vectors_remove_stroke
gimp_vectors_set_linked
gimp_vectors_set_name
gimp_vectors_set_tattoo
gimp_vectors_set_visible
gimp_vectors_stroke_close
gimp_vectors_stroke_flip
gimp_vectors_stroke_flip_free
......
......@@ -35,22 +35,16 @@
#include <libgimp/gimpenums.h>
#include <libgimp/gimptypes.h>
#include <libgimp/gimpbrushes.h>
#include <libgimp/gimpbrushselect.h>
#include <libgimp/gimpchannel.h>
#include <libgimp/gimpdrawable.h>
#include <libgimp/gimpedit.h>
#include <libgimp/gimpfontselect.h>
#include <libgimp/gimpgimprc.h>
#include <libgimp/gimpgradients.h>
#include <libgimp/gimpgradientselect.h>
#include <libgimp/gimpimage.h>
#include <libgimp/gimpimagecolorprofile.h>
#include <libgimp/gimplayer.h>
#include <libgimp/gimppalette.h>
#include <libgimp/gimppalettes.h>
#include <libgimp/gimppaletteselect.h>
#include <libgimp/gimppatterns.h>
#include <libgimp/gimppatternselect.h>
#include <libgimp/gimppixbuf.h>
#include <libgimp/gimppixelfetcher.h>
......@@ -61,7 +55,6 @@
#include <libgimp/gimpregioniterator.h>
#include <libgimp/gimpselection.h>
#include <libgimp/gimptile.h>
#include <libgimp/gimpvectors.h>
#include <libgimp/gimp_pdb_headers.h>
......@@ -343,26 +336,6 @@ guint32 gimp_user_time (void) G_GNUC_CONST;
const gchar * gimp_get_progname (void) G_GNUC_CONST;
GIMP_DEPRECATED
gboolean gimp_install_cmap (void) G_GNUC_CONST;
GIMP_DEPRECATED
gint gimp_min_colors (void) G_GNUC_CONST;
GIMP_DEPRECATED_FOR(gimp_get_parasite)
GimpParasite * gimp_parasite_find (const gchar *name);
GIMP_DEPRECATED_FOR(gimp_attach_parasite)
gboolean gimp_parasite_attach (const GimpParasite *parasite);
GIMP_DEPRECATED_FOR(gimp_detach_parasite)
gboolean gimp_parasite_detach (const gchar *name);
GIMP_DEPRECATED_FOR(gimp_get_parasite_list)
gboolean gimp_parasite_list (gint *num_parasites,
gchar ***parasites);
GIMP_DEPRECATED_FOR(gimp_attach_parasite)
gboolean gimp_attach_new_parasite (const gchar *name,
gint flags,
gint size,
gconstpointer data);
G_END_DECLS
......
/* LIBGIMP - The GIMP Library
* Copyright (C) 1995-2003 Peter Mattis and Spencer Kimball
*
* gimpbrushes.c
*
* 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/>.
*/
#include "config.h"
#include <string.h>
#include "gimp.h"
#include "gimpbrushes.h"
/**
* gimp_brushes_get_opacity:
*
* This procedure is deprecated! Use gimp_context_get_opacity() instead.
*
* Returns: The brush opacity.
*/
gdouble
gimp_brushes_get_opacity (void)
{
return gimp_context_get_opacity ();
}
/**
* gimp_brushes_set_opacity:
* @opacity: The brush opacity.
*
* This procedure is deprecated! Use gimp_context_set_opacity() instead.
*
* Returns: TRUE on success.
*/
gboolean
gimp_brushes_set_opacity (gdouble opacity)
{
return gimp_context_set_opacity (opacity);
}
/**
* gimp_brushes_get_paint_mode:
*
* This procedure is deprecated! Use gimp_context_get_paint_mode() instead.
*
* Returns: The paint mode.
*/
GimpLayerMode
gimp_brushes_get_paint_mode (void)
{
return gimp_context_get_paint_mode ();
}
/**
* gimp_brushes_set_paint_mode:
* @paint_mode: The paint mode.
*
* This procedure is deprecated! Use gimp_context_set_paint_mode() instead.
*
* Returns: TRUE on success.
*/
gboolean
gimp_brushes_set_paint_mode (GimpLayerMode paint_mode)
{
return gimp_context_set_paint_mode (paint_mode);
}
/**
* gimp_brushes_set_brush:
* @name: The brush name.
*
* This procedure is deprecated! Use gimp_context_set_brush() instead.
*
* Returns: TRUE on success.
*/
gboolean
gimp_brushes_set_brush (const gchar *name)
{
return gimp_context_set_brush (name);
}
/* LIBGIMP - The GIMP Library
* Copyright (C) 1995-2003 Peter Mattis and Spencer Kimball
*
* gimpbrushes.h
*
* 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/>.
*/
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only <libgimp/gimp.h> can be included directly."
#endif
#ifndef __GIMP_BRUSHES_H__
#define __GIMP_BRUSHES_H__
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
GIMP_DEPRECATED_FOR(gimp_context_get_opacity)
gdouble gimp_brushes_get_opacity (void);
GIMP_DEPRECATED_FOR(gimp_context_set_opacity)
gboolean gimp_brushes_set_opacity (gdouble opacity);
GIMP_DEPRECATED_FOR(gimp_context_get_paint_mode)
GimpLayerMode gimp_brushes_get_paint_mode (void);
GIMP_DEPRECATED_FOR(gimp_context_set_paint_mode)
gboolean gimp_brushes_set_paint_mode (GimpLayerMode paint_mode);
GIMP_DEPRECATED_FOR(gimp_context_set_brush)
gboolean gimp_brushes_set_brush (const gchar *name);
G_END_DECLS
#endif /* __GIMP_BRUSHES_H__ */
/* LIBGIMP - The GIMP Library
* Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
*
* gimpbrushmenu.c
* Copyright (C) 1998 Andy Thomas
*
* 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
* Library 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/>.
*/
#include "config.h"
#include <gtk/gtk.h>
#include "gimp.h"
#include "gimpuitypes.h"
#include "gimpbrushmenu.h"
#include "gimpbrushselectbutton.h"