Skip to content

Avoid using deprecated gdk_pixbuf_new_from_inline()

Bug-Debian: https://bugs.debian.org/908745 Closes: https://bugzilla.gnome.org/show_bug.cgi?id=797137

As reported by Simon McVittie smcv@debian.org:

" […] gdk_pixbuf_new_from_inline() is deprecated.

A gdk-pixbuf maintainer recommends[1] using GBytes and new_from_bytes(), which is also what pygobject does in its own overrides

[…]

[1] on gdk-pixbuf!17 (merged) "

This code is based by the one @smcv suggested, edited by myself to support the case when $data is an array ref that contains unpacked bytes, like the previous implementation did.

Merge request reports