From 3a5091cb6eaf1ec8aa6ec80b17fb601136f6b927 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 21 Sep 2021 23:09:31 -0400 Subject: [PATCH] Revert "Use GtkLoader for image loading" This reverts commit da115ad07504d2f10dec93c37d98e1d6fd4b095d. --- gtk/gdkpixbufutils.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gtk/gdkpixbufutils.c b/gtk/gdkpixbufutils.c index fdc4b06b76..59c87a97e9 100644 --- a/gtk/gdkpixbufutils.c +++ b/gtk/gdkpixbufutils.c @@ -19,7 +19,6 @@ #include #include "gdkpixbufutilsprivate.h" #include "gtkscalerprivate.h" -#include "gtkloaderprivate.h" #include "gdk/gdktextureprivate.h" @@ -589,7 +588,7 @@ gdk_paintable_new_from_bytes_scaled (GBytes *bytes, if (gdk_texture_can_load (bytes)) { /* We know these formats can't be scaled */ - inner = GDK_PAINTABLE (gtk_loader_new (bytes)); + inner = GDK_PAINTABLE (gdk_texture_new_from_bytes (bytes, NULL)); if (inner == NULL) return NULL; }