[mutter/wip/tintou/add-nullable: 2/2] background: set_file accepts NULL files
- From: Corentin Noël <corentinnoel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/tintou/add-nullable: 2/2] background: set_file accepts NULL files
- Date: Fri, 22 Nov 2019 22:13:46 +0000 (UTC)
commit bc757cc83296c6e897e95543af3a9aa295cd60c8
Author: Corentin Noël <corentin noel collabora com>
Date: Mon Nov 18 18:20:11 2019 +0100
background: set_file accepts NULL files
https://gitlab.gnome.org/GNOME/mutter/merge_requests/941
src/compositor/meta-background.c | 8 ++++++++
1 file changed, 8 insertions(+)
---
diff --git a/src/compositor/meta-background.c b/src/compositor/meta-background.c
index 4a1ce0396..3bd52aa2f 100644
--- a/src/compositor/meta-background.c
+++ b/src/compositor/meta-background.c
@@ -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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]