IconPaintable.newForFile

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.

class IconPaintable
static
newForFile

Parameters

file gio.file.File
size int

desired icon size

scale int

the desired scale

Return Value

Type: gtk.icon_paintable.IconPaintable