BytesIcon.this

Creates a new icon for a bytes.

This cannot fail, but loading and interpreting the bytes may fail later on (for example, if gio.loadable_icon.LoadableIcon.load is called) if the image is invalid.

class BytesIcon
this

Parameters

bytes glib.bytes.Bytes

a #GBytes.

Return Value

a #GIcon for the given bytes.