Use pixman_image_get_format() instead of image->bits.format.
#include <gtk/gtk.h>
#include <config.h>
#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 *
#include "gtk-utils.h"
GdkPixbuf *
gtk_window_set_default_size (GTK_WINDOW (window), width, height);
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;
if (format == PIXMAN_a8r8g8b8)
has_alpha = TRUE;