Sets up the icon representing a gtk.Window This icon is used when the window is minimized (also known as iconified). Some window managers or desktop environments may also place it in the window frame, or display it in other contexts. On others, the icon is not used at all, so your mileage may vary.

The icon should be provided in whatever size it was naturally drawn; that is, don’t scale the image before passing it to GTK+. Scaling is postponed until the last minute, when the desired final size is known, to allow best quality.

If you have your icon hand-drawn in multiple sizes, use Window.setIconList. Then the best size will be used.

This function is equivalent to calling Window.setIconList with a 1-element list.

See also Window.setDefaultIconList to set the icon for all windows in your application in one go.

class Window


icon Pixbuf

icon image, or NULL