From 37cb4f7d64757ddd18433f15d156c7d433ccd67c Mon Sep 17 00:00:00 2001 From: Dominic Lachowicz Date: Fri, 22 Feb 2008 15:26:48 +0000 Subject: [PATCH] It's perfectly acceptable for a module to only support the 2008-02-22 Dominic Lachowicz * gdk-pixbuf/queryloaders.c (loader_sanity_check): It's perfectly acceptable for a module to only support the save_to_callback() method if it marks itself as WRITABLE svn path=/trunk/; revision=19632 --- ChangeLog | 6 ++++++ gdk-pixbuf/queryloaders.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 5d75543528..e7121ced4f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-02-22 Dominic Lachowicz + + * gdk-pixbuf/queryloaders.c (loader_sanity_check): It's perfectly acceptable + for a module to only support the save_to_callback() method if it marks itself + as WRITABLE + 2008-02-16 Matthias Clasen * configure.in: Bump version diff --git a/gdk-pixbuf/queryloaders.c b/gdk-pixbuf/queryloaders.c index 11be6036ca..6a3a7c5694 100644 --- a/gdk-pixbuf/queryloaders.c +++ b/gdk-pixbuf/queryloaders.c @@ -104,7 +104,7 @@ loader_sanity_check (const char *path, GdkPixbufFormat *info, GdkPixbufModule *v goto error; } - if ((info->flags & GDK_PIXBUF_FORMAT_WRITABLE) && !vtable->save) + if ((info->flags & GDK_PIXBUF_FORMAT_WRITABLE) && !(vtable->save || vtable->save_to_callback)) { error = "loader claims to support saving but doesn't implement save"; goto error;