Commit 7e17a1e4 authored by Michael Natterer's avatar Michael Natterer 😴

libgimp: deprecate the entire legacy pixel fiddling api

which generates a gazillion warnings in plug-ins, a perfect guide
where to do porting.
parent a13765e2
......@@ -20,6 +20,8 @@
#include "config.h"
#define GIMP_DISABLE_DEPRECATION_WARNINGS
#include "gimp.h"
#include "gimptilebackendplugin.h"
......
......@@ -47,18 +47,24 @@ GeglBuffer * gimp_drawable_get_shadow_buffer (gint32 drawable_ID)
const Babl * gimp_drawable_get_format (gint32 drawable_ID);
GIMP_DEPRECATED_FOR(gimp_drawable_get_buffer)
GimpDrawable * gimp_drawable_get (gint32 drawable_ID);
GIMP_DEPRECATED
void gimp_drawable_detach (GimpDrawable *drawable);
GIMP_DEPRECATED_FOR(gegl_buffer_flush)
void gimp_drawable_flush (GimpDrawable *drawable);
GIMP_DEPRECATED_FOR(gimp_drawable_get_buffer)
GimpTile * gimp_drawable_get_tile (GimpDrawable *drawable,
gboolean shadow,
gint row,
gint col);
GIMP_DEPRECATED_FOR(gimp_drawable_get_buffer)
GimpTile * gimp_drawable_get_tile2 (GimpDrawable *drawable,
gboolean shadow,
gint x,
gint y);
GIMP_DEPRECATED
void gimp_drawable_get_color_uchar (gint32 drawable_ID,
const GimpRGB *color,
guchar *color_uchar);
......
......@@ -20,6 +20,8 @@
#include "config.h"
#define GIMP_DISABLE_DEPRECATION_WARNINGS
#include "gimp.h"
......
......@@ -47,19 +47,25 @@ typedef enum
typedef struct _GimpPixelFetcher GimpPixelFetcher;
GIMP_DEPRECATED
GimpPixelFetcher * gimp_pixel_fetcher_new (GimpDrawable *drawable,
gboolean shadow);
GIMP_DEPRECATED
void gimp_pixel_fetcher_destroy (GimpPixelFetcher *pf);
GIMP_DEPRECATED
void gimp_pixel_fetcher_set_edge_mode (GimpPixelFetcher *pf,
GimpPixelFetcherEdgeMode mode);
GIMP_DEPRECATED
void gimp_pixel_fetcher_set_bg_color (GimpPixelFetcher *pf,
const GimpRGB *color);
GIMP_DEPRECATED
void gimp_pixel_fetcher_get_pixel (GimpPixelFetcher *pf,
gint x,
gint y,
guchar *pixel);
GIMP_DEPRECATED
void gimp_pixel_fetcher_put_pixel (GimpPixelFetcher *pf,
gint x,
gint y,
......
......@@ -23,6 +23,8 @@
#include <string.h>
#include <stdarg.h>
#define GIMP_DISABLE_DEPRECATION_WARNINGS
#include "gimp.h"
......
......@@ -44,6 +44,7 @@ struct _GimpPixelRgn
};
GIMP_DEPRECATED_FOR(gimp_drawable_get_buffer)
void gimp_pixel_rgn_init (GimpPixelRgn *pr,
GimpDrawable *drawable,
gint x,
......@@ -52,55 +53,67 @@ void gimp_pixel_rgn_init (GimpPixelRgn *pr,
gint height,
gint dirty,
gint shadow);
GIMP_DEPRECATED
void gimp_pixel_rgn_resize (GimpPixelRgn *pr,
gint x,
gint y,
gint width,
gint height);
GIMP_DEPRECATED_FOR(gegl_buffer_sample)
void gimp_pixel_rgn_get_pixel (GimpPixelRgn *pr,
guchar *buf,
gint x,
gint y);
GIMP_DEPRECATED_FOR(gegl_buffer_get)
void gimp_pixel_rgn_get_row (GimpPixelRgn *pr,
guchar *buf,
gint x,
gint y,
gint width);
GIMP_DEPRECATED_FOR(gegl_buffer_get)
void gimp_pixel_rgn_get_col (GimpPixelRgn *pr,
guchar *buf,
gint x,
gint y,
gint height);
GIMP_DEPRECATED_FOR(gegl_buffer_get)
void gimp_pixel_rgn_get_rect (GimpPixelRgn *pr,
guchar *buf,
gint x,
gint y,
gint width,
gint height);
GIMP_DEPRECATED_FOR(gegl_buffer_set)
void gimp_pixel_rgn_set_pixel (GimpPixelRgn *pr,
const guchar *buf,
gint x,
gint y);
GIMP_DEPRECATED_FOR(gegl_buffer_set)
void gimp_pixel_rgn_set_row (GimpPixelRgn *pr,
const guchar *buf,
gint x,
gint y,
gint width);
GIMP_DEPRECATED_FOR(gegl_buffer_set)
void gimp_pixel_rgn_set_col (GimpPixelRgn *pr,
const guchar *buf,
gint x,
gint y,
gint height);
GIMP_DEPRECATED_FOR(gegl_buffer_set)
void gimp_pixel_rgn_set_rect (GimpPixelRgn *pr,
const guchar *buf,
gint x,
gint y,
gint width,
gint height);
GIMP_DEPRECATED_FOR(gegl_buffer_iterator_new)
gpointer gimp_pixel_rgns_register (gint nrgns,
...);
GIMP_DEPRECATED_FOR(gegl_buffer_iterator_new)
gpointer gimp_pixel_rgns_register2 (gint nrgns,
GimpPixelRgn **prs);
GIMP_DEPRECATED_FOR(gegl_buffer_iterator_next)
gpointer gimp_pixel_rgns_process (gpointer pri_ptr);
......
......@@ -22,6 +22,8 @@
#include <glib.h>
#define GIMP_DISABLE_DEPRECATION_WARNINGS
#include "gimp.h"
#include "gimpregioniterator.h"
......
......@@ -59,25 +59,32 @@ typedef void (* GimpRgnFuncSrcDest) (gint x,
gint bpp,
gpointer data);
GIMP_DEPRECATED_FOR(GeglBufferIterator)
GimpRgnIterator * gimp_rgn_iterator_new (GimpDrawable *drawable,
GimpRunMode unused);
GIMP_DEPRECATED_FOR(GeglBufferIterator)
void gimp_rgn_iterator_free (GimpRgnIterator *iter);
GIMP_DEPRECATED_FOR(GeglBufferIterator)
void gimp_rgn_iterator_src (GimpRgnIterator *iter,
GimpRgnFuncSrc func,
gpointer data);
GIMP_DEPRECATED_FOR(GeglBufferIterator)
void gimp_rgn_iterator_dest (GimpRgnIterator *iter,
GimpRgnFuncDest func,
gpointer data);
GIMP_DEPRECATED_FOR(GeglBufferIterator)
void gimp_rgn_iterator_src_dest (GimpRgnIterator *iter,
GimpRgnFuncSrcDest func,
gpointer data);
GIMP_DEPRECATED_FOR(GeglBufferIterator)
void gimp_rgn_iterate1 (GimpDrawable *drawable,
GimpRunMode unused,
GimpRgnFunc1 func,
gpointer data);
GIMP_DEPRECATED_FOR(GeglBufferIterator)
void gimp_rgn_iterate2 (GimpDrawable *drawable,
GimpRunMode unused,
GimpRgnFunc2 func,
......
......@@ -24,6 +24,8 @@
#include <glib-object.h>
#define GIMP_DISABLE_DEPRECATION_WARNINGS
#include "libgimpbase/gimpbase.h"
#include "libgimpbase/gimpprotocol.h"
#include "libgimpbase/gimpwire.h"
......
......@@ -44,13 +44,19 @@ struct _GimpTile
};
GIMP_DEPRECATED
void gimp_tile_ref (GimpTile *tile);
GIMP_DEPRECATED
void gimp_tile_ref_zero (GimpTile *tile);
GIMP_DEPRECATED
void gimp_tile_unref (GimpTile *tile,
gboolean dirty);
GIMP_DEPRECATED
void gimp_tile_flush (GimpTile *tile);
GIMP_DEPRECATED
void gimp_tile_cache_size (gulong kilobytes);
GIMP_DEPRECATED
void gimp_tile_cache_ntiles (gulong ntiles);
......
......@@ -22,6 +22,8 @@
#include <gegl.h>
#define GIMP_DISABLE_DEPRECATION_WARNINGS
#include "gimp.h"
#include "gimptilebackendplugin.h"
......
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