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 g_loadable_icon_load() is called) if the image is invalid.

  1. this(GBytesIcon* gBytesIcon, bool ownedRef)
  2. this(Bytes bytes)
    class BytesIcon
    this

Parameters

bytes Bytes

a #GBytes.

Return Value

a #GIcon for the given @bytes.

Throws

ConstructionException GTK+ fails to create the object.

Meta

Since

2.38