Image.newFromPixbuf
gtk.image.Image newFromPixbuf(gdkpixbuf.pixbuf.Pixbuf pixbuf = null)Creates a new #GtkImage displaying pixbuf. The #GtkImage does not assume a reference to the pixbuf; you still need to unref it if you own references. #GtkImage will add its own reference rather than adopting yours.
Note that this function just creates an #GtkImage from the pixbuf. The #GtkImage created will not react to state changes. Should you want that, you should use [gtk.image.Image.newFromIconName].
Parameters
pixbuf | a #GdkPixbuf, or null |
Returns
a new #GtkImage