set_file


Description:

public void set_file (File? file)

Makes this load and display file.

See [ctor@Gtk.Picture.new_for_file] for details.

::: warning Note that this function should not be used with untrusted data. Use a proper image loading framework such as libglycin, which can load many image formats into a `GdkTexture`, and then use [method@Gtk.Image.set_from_paintable].

Parameters:

this

a `GtkPicture`

file

a `GFile`