Image.from_gicon


Description:

[ CCode ( has_construct_function = false , type = "GtkWidget*" ) ]
[ Version ( since = "2.14" ) ]
public Image.from_gicon (Icon icon, 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

an icon

size

a stock icon size (IconSize)

Returns:

a new Image displaying the themed icon