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

filea [gio.file.File]
sizedesired icon size
scalethe desired scale

Returns

a [gtk.icon_paintable.IconPaintable] containing

for the icon. Unref with [gobject.object.ObjectWrap.unref]