[gnome-shell] background: Set the correct index on images



commit c4470fd1e6ee9f329b05057004431c87f0a977e7
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Thu Mar 14 16:45:29 2013 -0400

    background: Set the correct index on images
    
    The pattern is underneath, so we need to add one. It turns out
    that ClutterGroup doesn't care about that, but we need to do this
    to remove deprecations in mutter.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=695882

 js/ui/background.js |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/background.js b/js/ui/background.js
index 6d6089b..bb1b2f8 100644
--- a/js/ui/background.js
+++ b/js/ui/background.js
@@ -356,7 +356,10 @@ const Background = new Lang.Class({
 
         let actor = new Meta.BackgroundActor();
         actor.content = content;
-        this.actor.insert_child_at_index(actor, index);
+
+        // The background pattern is the first actor in
+        // the group, and all images should be above that.
+        this.actor.insert_child_at_index(actor, index + 1);
 
         this._images[index] = actor;
         this._watchCacheFile(filename);


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