summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-09-18 14:13:22 -0400
committerMatthias Clasen <mclasen@redhat.com>2021-09-18 17:35:00 -0400
commitda115ad07504d2f10dec93c37d98e1d6fd4b095d (patch)
treef2c3b6093bdd5dd1404e069859e87d374eeac4ae
parent4a89cfe2c938512c4580d3697cc08a64e41f5f36 (diff)
downloadgtk+-delayed-loading.tar.gz
Use GtkLoader for image loadingdelayed-loading
This avoids blocking on image loading while we have better things to do.
-rw-r--r--gtk/gdkpixbufutils.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gdkpixbufutils.c b/gtk/gdkpixbufutils.c
index 59c87a97e9..fdc4b06b76 100644
--- a/gtk/gdkpixbufutils.c
+++ b/gtk/gdkpixbufutils.c
@@ -19,6 +19,7 @@
#include <gdk/gdk.h>
#include "gdkpixbufutilsprivate.h"
#include "gtkscalerprivate.h"
+#include "gtkloaderprivate.h"
#include "gdk/gdktextureprivate.h"
@@ -588,7 +589,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 (gdk_texture_new_from_bytes (bytes, NULL));
+ inner = GDK_PAINTABLE (gtk_loader_new (bytes));
if (inner == NULL)
return NULL;
}