Avatar.setIconName

Sets the name of the icon in the icon theme to use when the icon should be displayed. If no name is set, the avatar-default-symbolic icon will be used. If the name doesn't match a valid icon, it is an error and no icon will be displayed. If the icon theme is changed, the image will be updated automatically.

class Avatar
void
setIconName
(
string iconName
)

Parameters

iconName string

the name of the icon from the icon theme

Meta

Since

1.0