[gtk+/rendering-cleanup: 78/142] API: Remove APIs to generate pixmaps from pixbufs



commit 9e4c12eb0cf9a9c573ffa4497ce6171f6946456f
Author: Benjamin Otte <otte redhat com>
Date:   Fri Aug 27 12:14:36 2010 +0200

    API: Remove APIs to generate pixmaps from pixbufs
    
    The 3 functions in question were:
    - gdk_pixbuf_render_threshold_alpha()
    - gdk_pixbuf_render_pixmap_and_mask()
    - gdk_pixbuf_render_pixmap_and_mask_for_colormap()
    
    All of them can be replaced using Cairo if they have to. The
    functionality is only needed to talk to old X interfaces and normal apps
    do fine without them.

 docs/reference/gdk/gdk3-sections.txt |    3 -
 gdk/Makefile.am                      |    1 -
 gdk/gdk.symbols                      |    8 -
 gdk/gdkpixbuf-render.c               |  293 ----------------------------------
 gdk/gdkpixbuf.h                      |   24 ---
 5 files changed, 0 insertions(+), 329 deletions(-)
---
diff --git a/docs/reference/gdk/gdk3-sections.txt b/docs/reference/gdk/gdk3-sections.txt
index cb46060..a2f2580 100644
--- a/docs/reference/gdk/gdk3-sections.txt
+++ b/docs/reference/gdk/gdk3-sections.txt
@@ -264,9 +264,6 @@ GdkPixmapObjectClass
 <SECTION>
 <TITLE>Pixbufs</TITLE>
 <FILE>pixbufs</FILE>
-gdk_pixbuf_render_threshold_alpha
-gdk_pixbuf_render_pixmap_and_mask
-gdk_pixbuf_render_pixmap_and_mask_for_colormap
 gdk_pixbuf_get_from_drawable
 gdk_pixbuf_get_from_surface
 </SECTION>
diff --git a/gdk/Makefile.am b/gdk/Makefile.am
index 39242cf..1c3fa32 100644
--- a/gdk/Makefile.am
+++ b/gdk/Makefile.am
@@ -127,7 +127,6 @@ gdk_c_sources =                 \
 	gdkoffscreenwindow.c	\
 	gdkpango.c		\
 	gdkpixbuf-drawable.c	\
-	gdkpixbuf-render.c	\
 	gdkpixmap.c		\
 	gdkrectangle.c		\
 	gdkscreen.c		\
diff --git a/gdk/gdk.symbols b/gdk/gdk.symbols
index c4ee63d..9cdeed7 100644
--- a/gdk/gdk.symbols
+++ b/gdk/gdk.symbols
@@ -815,14 +815,6 @@ gdk_pixbuf_get_from_surface
 #endif
 #endif
 
-#if IN_HEADER(__GDK_PIXBUF_H__)
-#if IN_FILE(__GDK_PIXBUF_RENDER_C__)
-gdk_pixbuf_render_pixmap_and_mask
-gdk_pixbuf_render_pixmap_and_mask_for_colormap
-gdk_pixbuf_render_threshold_alpha
-#endif
-#endif
-
 #if IN_HEADER(__GDK_PIXMAP_H__)
 #if IN_FILE(__GDK_PIXMAP_C__)
 gdk_pixmap_get_type G_GNUC_CONST
diff --git a/gdk/gdkpixbuf.h b/gdk/gdkpixbuf.h
index 497c5bb..99e718d 100644
--- a/gdk/gdkpixbuf.h
+++ b/gdk/gdkpixbuf.h
@@ -37,30 +37,6 @@
 
 G_BEGIN_DECLS
 
-/* Rendering to a drawable */
-
-void gdk_pixbuf_render_threshold_alpha   (GdkPixbuf           *pixbuf,
-					  GdkBitmap           *bitmap,
-					  int                  src_x,
-					  int                  src_y,
-					  int                  dest_x,
-					  int                  dest_y,
-					  int                  width,
-					  int                  height,
-					  int                  alpha_threshold);
-void gdk_pixbuf_render_pixmap_and_mask_for_colormap (GdkPixbuf    *pixbuf,
-						     GdkColormap  *colormap,
-						     GdkPixmap   **pixmap_return,
-						     GdkBitmap   **mask_return,
-						     int           alpha_threshold);
-#ifndef GDK_MULTIHEAD_SAFE
-void gdk_pixbuf_render_pixmap_and_mask              (GdkPixbuf    *pixbuf,
-						     GdkPixmap   **pixmap_return,
-						     GdkBitmap   **mask_return,
-						     int           alpha_threshold);
-#endif
-
-
 /* Fetching a region from a drawable */
 GdkPixbuf *gdk_pixbuf_get_from_drawable (GdkPixbuf   *dest,
 					 GdkDrawable *src,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]