for the icon. Unref with [gobject.object.ObjectWrap.unref]
IconPaintable.newForFile
gtk.icon_paintable.IconPaintable newForFile(gio.file.File file, int size, int scale)Creates a [gtk.icon_paintable.IconPaintable] for a file with a given size and scale.
The icon can then be rendered by using it as a [gdk.paintable.Paintable].
Parameters
file | a [gio.file.File] |
size | desired icon size |
scale | the desired scale |
Returns
a [gtk.icon_paintable.IconPaintable] containing