app: add gimp_imagefile_set_file()

This commit is contained in:
Michael Natterer 2014-07-08 00:49:05 +02:00
parent 0c6bf0bc44
commit f319a9c838
2 changed files with 13 additions and 0 deletions

View File

@ -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)
{

View File

@ -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);