Updating branch refs/heads/master to 080ed7114e9d6c5cbe56ff582172b7eef0a81e8a (commit) from 09ac6f03f6624a564746c27085ad5c6c323b4e30 (commit)
commit 080ed7114e9d6c5cbe56ff582172b7eef0a81e8a Author: Nick Schermer <n...@xfce.org> Date: Tue May 18 22:00:01 2010 +0200 Work around png 1.4 API change. thunar-vfs/thunar-vfs-thumb.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/thunar-vfs/thunar-vfs-thumb.c b/thunar-vfs/thunar-vfs-thumb.c index 7789849..2302b6f 100644 --- a/thunar-vfs/thunar-vfs-thumb.c +++ b/thunar-vfs/thunar-vfs-thumb.c @@ -1169,7 +1169,11 @@ thunar_vfs_thumbnail_is_valid (const gchar *thumbnail, goto done0; /* verify the png signature */ +#if PNG_LIBPNG_VER_SONUM < 14 if (G_LIKELY (png_check_sig ((png_bytep) signature, sizeof (signature)))) +#else + if (G_LIKELY (!png_sig_cmp ((png_bytep) signature, 0, sizeof (signature)))) +#endif rewind (fp); else goto done0; _______________________________________________ Xfce4-commits mailing list Xfce4-commits@xfce.org http://foo-projects.org/mailman/listinfo/xfce4-commits