summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSøren Sandmann Pedersen <ssp@redhat.com>2012-04-02 14:59:02 -0400
committerSøren Sandmann Pedersen <ssp@redhat.com>2012-04-02 14:59:02 -0400
commitb16ddf17829633ec6eb54656924b7e841c6c69a4 (patch)
tree7b3b068611e3012e497a1370f462e5a1ea66df55
parentb9ca23a9c711280a706eb1df30a0cfaf3b2d8e27 (diff)
gtk-utils.c: Don't include pixman-private.h
Use pixman_image_get_format() instead of image->bits.format.
-rw-r--r--demos/gtk-utils.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/demos/gtk-utils.c b/demos/gtk-utils.c
index 0e7cb5cb..b321989d 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;