image: Fix loading of pixdata GResources
authorBastien Nocera <hadess@hadess.net>
Wed, 5 Jul 2017 21:01:26 +0000 (23:01 +0200)
committerBastien Nocera <hadess@hadess.net>
Wed, 12 Jul 2017 12:05:49 +0000 (14:05 +0200)
commita6dcb80fb42c3dad9c0ffc9a9f655b49a43c183f
tree9c75325548a6e23682a668805f3dc4b2db39e697
parent91614e38e351eb6ce1f1f9bc877dfc4d5a9c6e0c
image: Fix loading of pixdata GResources

Pixdata is deprecated but some software already use GtkImage widgets
with image data loaded from GResource-backed pixdata. As the
security-problem ridden pixdata loader was removed, we need to manually
check whether the GResource data is pixdata, and load it manually.

https://bugzilla.gnome.org/show_bug.cgi?id=781583
gtk/gtkimage.c