[gnome-shell/gbsneto/background-content: 1/2] background: Adapt to MetaBackgroundContent



commit 477f598c1d0dcc6b3dc31af0c9d5492414ee325b
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Tue Jun 9 14:36:21 2020 -0300

    background: Adapt to MetaBackgroundContent
    
    The properties are now part of MetaBackgroundContent, so set
    the properties there instead.
    
    https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1309

 js/ui/background.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/js/ui/background.js b/js/ui/background.js
index ddae0de873..b7bf2b1a08 100644
--- a/js/ui/background.js
+++ b/js/ui/background.js
@@ -512,8 +512,8 @@ var SystemBackground = GObject.registerClass({
         super._init({
             meta_display: global.display,
             monitor: 0,
-            background: _systemBackground,
         });
+        this.content.background = _systemBackground;
 
         let id = GLib.idle_add(GLib.PRIORITY_DEFAULT, () => {
             this.emit('loaded');
@@ -738,6 +738,8 @@ var BackgroundManager = class BackgroundManager {
         let backgroundActor = new Meta.BackgroundActor({
             meta_display: global.display,
             monitor: this._monitorIndex,
+        });
+        backgroundActor.content.set({
             background,
             vignette: this._vignette,
             vignette_sharpness: 0.5,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]