[gtk+/wip/baedert/gtkimageview: 15/18] Add some deprecation guards



commit 5a3496db5f7594fc7392d9759a35f96d4a4bb70c
Author: Timm Bäder <mail baedert org>
Date:   Mon Aug 10 15:23:11 2015 +0200

    Add some deprecation guards

 gtk/gtkiconcachevalidator.c |    2 ++
 gtk/updateiconcache.c       |    4 ++++
 2 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkiconcachevalidator.c b/gtk/gtkiconcachevalidator.c
index 9afc0c6..79e05e7 100644
--- a/gtk/gtkiconcachevalidator.c
+++ b/gtk/gtkiconcachevalidator.c
@@ -163,9 +163,11 @@ check_pixel_data (CacheInfo *info,
     {
       GdkPixdata data;
 
+      G_GNUC_BEGIN_IGNORE_DEPRECATIONS
       check ("pixel data", gdk_pixdata_deserialize (&data, length,
                                                     (const guint8*)info->cache + offset + 8,
                                                     NULL));
+      G_GNUC_END_IGNORE_DEPRECATIONS
     }
 
   return TRUE;
diff --git a/gtk/updateiconcache.c b/gtk/updateiconcache.c
index 47375d1..7a3e3c8 100644
--- a/gtk/updateiconcache.c
+++ b/gtk/updateiconcache.c
@@ -514,7 +514,9 @@ maybe_cache_image_data (Image       *image,
 
          if (pixbuf)
            {
+              G_GNUC_BEGIN_IGNORE_DEPRECATIONS
              gdk_pixdata_from_pixbuf (&idata->pixdata, pixbuf, FALSE);
+              G_GNUC_END_IGNORE_DEPRECATIONS
              idata->size = idata->pixdata.length + 8;
              idata->has_pixdata = TRUE;
            }
@@ -825,7 +827,9 @@ write_image_data (FILE *cache, ImageData *image_data, int offset)
   if (!write_card32 (cache, 0))
     return FALSE;
 
+  G_GNUC_BEGIN_IGNORE_DEPRECATIONS
   s = gdk_pixdata_serialize (pixdata, &len);
+  G_GNUC_END_IGNORE_DEPRECATIONS
 
   if (!write_card32 (cache, len))
     {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]