This avoids blocking on image loading while
we have better things to do.
#include <gdk/gdk.h>
#include "gdkpixbufutilsprivate.h"
#include "gtkscalerprivate.h"
+#include "gtkloaderprivate.h"
#include "gdk/gdktextureprivate.h"
if (gdk_texture_can_load (bytes))
{
/* We know these formats can't be scaled */
- inner = GDK_PAINTABLE (gdk_texture_new_from_bytes (bytes, NULL));
+ inner = GDK_PAINTABLE (gtk_loader_new (bytes));
if (inner == NULL)
return NULL;
}