Image.from_icon_set


Description:

[ CCode ( has_construct_function = false , type = "GtkWidget*" ) ]
[ Version ( deprecated = true , deprecated_since = "3.10" ) ]
public Image.from_icon_set (IconSet icon_set, IconSize size)

Warning: Image.from_icon_set is deprecated since 3.10.

Creates a Image displaying an icon set.

Note:

Use Image.from_icon_name instead.

Sample stock sizes are MENU, SMALL_TOOLBAR. Instead of using this function, usually it’s better to create a IconFactory, put your icon sets in the icon factory, add the icon factory to the list of default factories with add_default, and then use Image.from_stock. This will allow themes to override the icon you ship with your application.

The Image does not assume a reference to the icon set; you still need to unref it if you own references. Image will add its own reference rather than adopting yours.

Parameters:

icon_set

a IconSet

size

a stock icon size (IconSize)

Returns:

a new Image