[gtk/image-loading] !fixup contentdeserialize jpegs
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/image-loading] !fixup contentdeserialize jpegs
- Date: Tue, 14 Sep 2021 01:21:53 +0000 (UTC)
commit 54fef7af29d940fd61c6a72577daf6a131edea29
Author: Benjamin Otte <otte redhat com>
Date: Tue Sep 14 03:19:43 2021 +0200
!fixup contentdeserialize jpegs
gdk/gdkcontentdeserializer.c | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/gdk/gdkcontentdeserializer.c b/gdk/gdkcontentdeserializer.c
index 8757f0971f..2ee5a7a358 100644
--- a/gdk/gdkcontentdeserializer.c
+++ b/gdk/gdkcontentdeserializer.c
@@ -921,12 +921,17 @@ init (void)
texture_deserializer,
NULL,
NULL);
-
gdk_content_register_deserializer ("image/tiff",
GDK_TYPE_TEXTURE,
texture_deserializer,
NULL,
NULL);
+ gdk_content_register_deserializer ("image/jpeg",
+ GDK_TYPE_TEXTURE,
+ texture_deserializer,
+ NULL,
+ NULL);
+
formats = gdk_pixbuf_get_formats ();
@@ -959,8 +964,9 @@ init (void)
mimes = gdk_pixbuf_format_get_mime_types (fmt);
for (m = mimes; *m; m++)
{
- /* Turning pngs and tiffs into textures is handled above */
+ /* Turning pngs, jpegs and tiffs into textures is handled above */
if (!g_str_equal (name, "png") &&
+ !g_str_equal (name, "jpeg") &&
!g_str_equal (name, "tiff"))
gdk_content_register_deserializer (*m,
GDK_TYPE_TEXTURE,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]