forked from AuroraMiddleware/gtk
iconcache: Guard deprecated gdk-pixbuf APIs
This commit is contained in:
parent
41b386cd6a
commit
f92c861eec
@ -163,9 +163,11 @@ check_pixel_data (CacheInfo *info,
|
|||||||
{
|
{
|
||||||
GdkPixdata data;
|
GdkPixdata data;
|
||||||
|
|
||||||
|
G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
|
||||||
check ("pixel data", gdk_pixdata_deserialize (&data, length,
|
check ("pixel data", gdk_pixdata_deserialize (&data, length,
|
||||||
(const guint8*)info->cache + offset + 8,
|
(const guint8*)info->cache + offset + 8,
|
||||||
NULL));
|
NULL));
|
||||||
|
G_GNUC_END_IGNORE_DEPRECATIONS;
|
||||||
}
|
}
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
@ -514,7 +514,9 @@ maybe_cache_image_data (Image *image,
|
|||||||
|
|
||||||
if (pixbuf)
|
if (pixbuf)
|
||||||
{
|
{
|
||||||
|
G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
|
||||||
gdk_pixdata_from_pixbuf (&idata->pixdata, pixbuf, FALSE);
|
gdk_pixdata_from_pixbuf (&idata->pixdata, pixbuf, FALSE);
|
||||||
|
G_GNUC_END_IGNORE_DEPRECATIONS;
|
||||||
idata->size = idata->pixdata.length + 8;
|
idata->size = idata->pixdata.length + 8;
|
||||||
idata->has_pixdata = TRUE;
|
idata->has_pixdata = TRUE;
|
||||||
}
|
}
|
||||||
@ -825,7 +827,9 @@ write_image_data (FILE *cache, ImageData *image_data, int offset)
|
|||||||
if (!write_card32 (cache, 0))
|
if (!write_card32 (cache, 0))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
|
G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
|
||||||
s = gdk_pixdata_serialize (pixdata, &len);
|
s = gdk_pixdata_serialize (pixdata, &len);
|
||||||
|
G_GNUC_END_IGNORE_DEPRECATIONS;
|
||||||
|
|
||||||
if (!write_card32 (cache, len))
|
if (!write_card32 (cache, len))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user