Image.from_icon_name


Description:

[ CCode ( has_construct_function = false , type = "GtkWidget*" ) ]
[ Version ( since = "2.6" ) ]
public Image.from_icon_name (string? icon_name, IconSize size)

Creates a Image 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_name

an icon name or null

size

a stock icon size (IconSize)

Returns:

a new Image displaying the themed icon