mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-17 23:50:16 +00:00
video: Add gtk_video_get_file()
That function was missing.
This commit is contained in:
parent
158df3c1bb
commit
2aee39d12c
@ -542,6 +542,23 @@ gtk_video_set_media_stream (GtkVideo *self,
|
|||||||
g_object_notify_by_pspec (G_OBJECT (self), properties[PROP_MEDIA_STREAM]);
|
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:
|
* gtk_video_set_file:
|
||||||
* @self: a #GtkVideo
|
* @self: a #GtkVideo
|
||||||
|
Loading…
Reference in New Issue
Block a user