Button.from_icon_name
Description:
[ CCode ( has_construct_function = false , type = "GtkWidget*" ) ]
[ Version ( since = "3.10" ) ]
public Button.from_icon_name (string? icon_name, IconSize size = BUTTON)
[ Version ( since = "3.10" ) ]
public Button.from_icon_name (string? icon_name, IconSize size = BUTTON)
Creates a new button containing 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.
This function is a convenience wrapper around Button and set_image.
Parameters:
icon_name |
an icon name or null |
size |
an icon size (IconSize) |
Returns:
a new Button displaying the themed icon |