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.
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 |
GLib.Error |
when the the icon was not found or failed to load |