mirror of https://github.com/GNOME/gimp.git
app: add gimp_imagefile_set_file()
This commit is contained in:
parent
0c6bf0bc44
commit
f319a9c838
|
@ -256,6 +256,16 @@ gimp_imagefile_get_file (GimpImagefile *imagefile)
|
|||
return GET_PRIVATE (imagefile)->file;
|
||||
}
|
||||
|
||||
void
|
||||
gimp_imagefile_set_file (GimpImagefile *imagefile,
|
||||
GFile *file)
|
||||
{
|
||||
g_return_if_fail (GIMP_IS_IMAGEFILE (imagefile));
|
||||
g_return_if_fail (G_IS_FILE (file));
|
||||
|
||||
gimp_object_take_name (GIMP_OBJECT (imagefile), g_file_get_uri (file));
|
||||
}
|
||||
|
||||
GimpThumbnail *
|
||||
gimp_imagefile_get_thumbnail (GimpImagefile *imagefile)
|
||||
{
|
||||
|
|
|
@ -59,6 +59,9 @@ GimpImagefile * gimp_imagefile_new (Gimp *gimp,
|
|||
GFile *file);
|
||||
|
||||
GFile * gimp_imagefile_get_file (GimpImagefile *imagefile);
|
||||
void gimp_imagefile_set_file (GimpImagefile *imagefile,
|
||||
GFile *file);
|
||||
|
||||
GimpThumbnail * gimp_imagefile_get_thumbnail (GimpImagefile *imagefile);
|
||||
GIcon * gimp_imagefile_get_gicon (GimpImagefile *imagefile);
|
||||
|
||||
|
|
Loading…
Reference in New Issue