set_filename


Description:

public void set_filename (string? filename)

Makes this load and display the given filename.

This is a utility function that calls [method@Gtk.Picture.set_file].

::: 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`

filename

the filename to play