[Xfce4-commits] <thunar-vfs:master> Work around png 1.4 API change.

Nick Schermer noreply at xfce.org
Sun Aug 22 13:14:01 CEST 2010


Updating branch refs/heads/master
         to 080ed7114e9d6c5cbe56ff582172b7eef0a81e8a (commit)
       from 09ac6f03f6624a564746c27085ad5c6c323b4e30 (commit)

commit 080ed7114e9d6c5cbe56ff582172b7eef0a81e8a
Author: Nick Schermer <nick at 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;



More information about the Xfce4-commits mailing list