[Pixman] [PATCH 1/3] gtk-utils.c: Don't include pixman-private.h

Søren Sandmann sandmann at cs.au.dk
Mon Apr 2 17:29:33 PDT 2012


From: Søren Sandmann Pedersen <ssp at redhat.com>

Use pixman_image_get_format() instead of image->bits.format.
---
 demos/gtk-utils.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/demos/gtk-utils.c b/demos/gtk-utils.c
index 0e7cb5c..b321989 100644
--- a/demos/gtk-utils.c
+++ b/demos/gtk-utils.c
@@ -1,8 +1,5 @@
 #include <gtk/gtk.h>
 #include <config.h>
-#include "pixman-private.h"	/* For image->bits.format
-				 * FIXME: there should probably be public API for this
-				 */
 #include "gtk-utils.h"
 
 GdkPixbuf *
@@ -94,7 +91,7 @@ show_image (pixman_image_t *image)
 
     gtk_window_set_default_size (GTK_WINDOW (window), width, height);
     
-    format = image->bits.format;
+    format = pixman_image_get_format (image);
     
     if (format == PIXMAN_a8r8g8b8)
 	has_alpha = TRUE;
-- 
1.7.4



More information about the Pixman mailing list