Constructor
GtkIconPaintablenew_for_file
Declaration [src]
GtkIconPaintable*
gtk_icon_paintable_new_for_file (
GFile* file,
int size,
int scale
)
Description [src]
Creates a GtkIconPaintable for a file with a given size and scale.
The icon can then be rendered by using it as a GdkPaintable.
Parameters
file-
Type:
GFileA
GFile.The data is owned by the caller of the function. size-
Type:
intDesired icon size, in application pixels.
scale-
Type:
intThe desired scale.
Return value
Type: GtkIconPaintable
A GtkIconPaintable containing
for the icon. Unref with g_object_unref().
| The caller of the function takes ownership of the data, and is responsible for freeing it. |