It's perfectly acceptable for a module to only support the

2008-02-22  Dominic Lachowicz  <domlachowicz@gmail.com>

        * 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
This commit is contained in:
Dominic Lachowicz 2008-02-22 15:26:48 +00:00 committed by Dom Lachowicz
parent 183cdbe039
commit 37cb4f7d64
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2008-02-22 Dominic Lachowicz <domlachowicz@gmail.com>
* 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 <mclasen@redhat.com>
* configure.in: Bump version

View File

@ -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;