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

Nick Schermer noreply at xfce.org
Wed May 12 23:02:02 CEST 2010


Updating branch refs/heads/xfce-4.6
         to 85c74d6d941cba2e598018f6cf697d7216994ac3 (commit)
       from bd1b9ee1c1abe632ddd66f0fd3f731db83775c4f (commit)

commit 85c74d6d941cba2e598018f6cf697d7216994ac3
Author: Nick Schermer <nick at xfce.org>
Date:   Wed May 12 22:57:19 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 2856fe3..0ca0fe8 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