Image.newFromGicon

Creates a #GtkImage displaying an icon from the current icon theme. If the icon name isn’t known, a “broken image” icon will be displayed instead. If the current icon theme is changed, the icon will be updated appropriately.

Parameters

icon gio.icon.Icon

an icon

size gtk.types.IconSize

a stock icon size (#GtkIconSize)

Return Value

Type: gtk.image.Image

a new #GtkImage displaying the themed icon