get_paintable#

ignis.utils.Utils.get_paintable(widget: gi.repository.Gtk.Widget, icon_name: str, size: int) gi.repository.Gtk.IconPaintable | None#

Get a Gdk.Paintable by icon name.

Parameters:
  • widget (Widget) -- The parent widget.

  • icon_name (str) -- The name of the icon to look up.

  • size (int) -- The size of the icon.

Return type:

IconPaintable | None

Returns:

The paintable object for the icon or None if no such icon exists.