[gnome-shell] lightbox: Remove unnecessary params



commit 82d466598cd00ea192e511f817a8e41afef62712
Author: Florian Müllner <fmuellner gnome org>
Date:   Fri Jul 26 23:17:28 2019 +0200

    lightbox: Remove unnecessary params
    
    Actors have a default origin of (0, 0), so there's no need of
    setting those explicitly.
    
    https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/651

 js/ui/lightbox.js | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/js/ui/lightbox.js b/js/ui/lightbox.js
index b033e40d3..0fb751589 100644
--- a/js/ui/lightbox.js
+++ b/js/ui/lightbox.js
@@ -100,13 +100,9 @@ var Lightbox = class Lightbox {
         this._fadeFactor = params.fadeFactor;
         this._radialEffect = Clutter.feature_available(Clutter.FeatureFlags.SHADERS_GLSL) && 
params.radialEffect;
         if (this._radialEffect)
-            this.actor = new RadialShaderQuad({ x: 0,
-                                                y: 0,
-                                                reactive: params.inhibitEvents });
+            this.actor = new RadialShaderQuad({ reactive: params.inhibitEvents });
         else
-            this.actor = new St.Bin({ x: 0,
-                                      y: 0,
-                                      opacity: 0,
+            this.actor = new St.Bin({ opacity: 0,
                                       style_class: 'lightbox',
                                       reactive: params.inhibitEvents });
 


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