filelauncher: Make set_file argument nullable

This commit is contained in:
Maximiliano Sandoval R 2022-12-20 11:08:28 +01:00
parent d1347bbf33
commit 18a7f715c4
No known key found for this signature in database
GPG Key ID: D64A8D747F6FE706

View File

@ -184,7 +184,7 @@ gtk_file_launcher_get_file (GtkFileLauncher *self)
/**
* gtk_file_launcher_set_file:
* @self: a `GtkFileLauncher`
* @file: a `GFile`
* @file: (nullable): a `GFile`
*
* Sets the file that will be opened.
*
@ -195,7 +195,7 @@ gtk_file_launcher_set_file (GtkFileLauncher *self,
GFile *file)
{
g_return_if_fail (GTK_IS_FILE_LAUNCHER (self));
g_return_if_fail (G_IS_FILE (file));
g_return_if_fail (file == NULL || G_IS_FILE (file));
if (!g_set_object (&self->file, file))
return;