set_from_icon_name_async
Description:
public async void set_from_icon_name_async (string icon_name, IconSize icon_size, Cancellable? cancellable = null) throws Error
A wrapper for Granite.AsyncImage.set_from_gicon_async to display an icon name.
This is a convenience method for setting an icon name with a desired Gtk.IconSize. Note that you'll not be able to change the icon size afterwards with Gtk.Image.pixel_size or Gtk.Image.icon_size. You will have to call one of the Granite.AsyncImage set_from_ methods to change it's size.
See Granite.AsyncImage.set_from_gicon_async for more details.
Parameters:
icon_name |
the icon name to display in the image |
icon_size |
the Gtk.IconSize as the size for the image |
cancellable |
the cancellable to stop loading the icon |
Exceptions:
GLib.Error |
when the the icon was not found or failed to load |