fix build with gdk-pixbuf 2.26
authorPaul <paul@claws-mail.org>
Thu, 7 Mar 2019 07:20:36 +0000 (07:20 +0000)
committerPaul <paul@claws-mail.org>
Thu, 7 Mar 2019 07:20:36 +0000 (07:20 +0000)
src/image_viewer.c

index f3f732c..a9eea66 100644 (file)
@@ -89,7 +89,7 @@ static void image_viewer_load_image(ImageViewer *imageviewer)
                return;
        }
 
-#if GDK_PIXBUF_CHECK_VERSION(2, 28, 0)
+#if GDK_PIXBUF_MINOR >= 28
        animation = gdk_pixbuf_animation_new_from_stream(stream, NULL, &error);
 #else
        pixbuf = gdk_pixbuf_new_from_stream(stream, NULL, &error);
@@ -102,7 +102,7 @@ static void image_viewer_load_image(ImageViewer *imageviewer)
                return;
        }
 
-#if GDK_PIXBUF_CHECK_VERSION(2, 28, 0)
+#if GDK_PIXBUF_MINOR >= 28
        if (gdk_pixbuf_animation_is_static_image(animation)
            || imageviewer->resize_img) {
                pixbuf = gdk_pixbuf_animation_get_static_image(animation);