Creates a new gtk.Image displaying pixbuf. The gtk.Image does not assume a reference to the pixbuf; you still need to unref it if you own references. gtk.Image will add its own reference rather than adopting yours.

Note that this function just creates an gtk.Image from the pixbuf. The gtk.Image created will not react to state changes. Should you want that, you should use Image.newFromIconName.


pixbuf Pixbuf

a gdk.Pixbuf, or NULL

Return Value

a new gtk.Image


ConstructionException GTK+ fails to create the object.