[mutter/wip/tintou/add-nullable: 41/41] background: set_file accepts NULL files



commit 5582d7b3be88ee312ad9bcf80f0bf4a8d85b87e9
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]