Commit f92c861e authored by Benjamin Otte's avatar Benjamin Otte

iconcache: Guard deprecated gdk-pixbuf APIs

parent 41b386cd
......@@ -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;
......
......@@ -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))
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment