Package: gtk

Function gtk:picture-new-for-file

Lambda List

gtk:picture-new-for-file (file)

Arguments

file -- a g:file object

Return Value

The new gtk:picture widget.

Details

Creates a new picture displaying the given file. If the file is not found or cannot be loaded, the resulting picture is empty.

If you need to detect failures to load the file, use the gdk:texture-new-from-file function to load the file yourself, then create the picture from the texture.
 

See also

2024-10-13