Image.newFromPaintable
gtk.image.Image newFromPaintable(gdk.paintable.Paintable paintable = null)Creates a new [gtk.image.Image] displaying paintable.
The [gtk.image.Image] does not assume a reference to the paintable; you still need to unref it if you own references. [gtk.image.Image] will add its own reference rather than adopting yours.
The [gtk.image.Image] will track changes to the paintable and update its size and contents in response to it.
Parameters
paintable | a [gdk.paintable.Paintable] |
Returns
a new [gtk.image.Image]