video: Add gtk_video_get_file()

That function was missing.
This commit is contained in:
Benjamin Otte 2018-03-19 00:25:17 +01:00
parent 158df3c1bb
commit 2aee39d12c

View File

@ -542,6 +542,23 @@ gtk_video_set_media_stream (GtkVideo *self,
g_object_notify_by_pspec (G_OBJECT (self), properties[PROP_MEDIA_STREAM]);
}
/**
* gtk_video_get_file:
* @self: a #GtkVideo
*
* Gets the file played by @self or %NULL if not playing back
* a file.
*
* Returns: (nullable) (transfer none): The file played by @self
**/
GFile *
gtk_video_get_file (GtkVideo *self)
{
g_return_val_if_fail (GTK_IS_VIDEO (self), NULL);
return self->file;
}
/**
* gtk_video_set_file:
* @self: a #GtkVideo