GtkWidget* gtk_image_new_from_file ( const char* filename )
Creates a new
GtkImage displaying the file
If the file isn’t found or can’t be loaded, the resulting
will display a “broken image” icon. This function never returns
it always returns a valid
If you need to detect failures to load the file, use
gdk_texture_new_from_file() to load the file yourself,
then create the
GtkImage from the texture.
The storage type (see
of the returned image is not defined, it will be whatever
is appropriate for displaying the file.
The data is owned by the caller of the function. The value is a file system path, using the OS encoding.
|The data is owned by the called function.|