background: set_file accepts NULL files

https://gitlab.gnome.org/GNOME/mutter/merge_requests/941
This commit is contained in:
Corentin Noël 2019-11-18 18:20:11 +01:00 committed by Corentin Noël
parent 4cccba5cac
commit 5582d7b3be

View File

@ -943,6 +943,14 @@ meta_background_set_gradient (MetaBackground *self,
mark_changed (self);
}
/**
* meta_background_set_file:
* @self: a #MetaBackground
* @file: (nullable): a #GFile representing the background file
* @style: the background style to apply
*
* Set the background to @file
*/
void
meta_background_set_file (MetaBackground *self,
GFile *file,