[gnome-shell/gbsneto/remove-generic-container: 43/61] iconGrid: Rename skip_paint to _skipPaint



commit 088cde172bf9c399ea12c87b19acb0f47d1d0c70
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Tue Aug 21 10:02:18 2018 -0300

    iconGrid: Rename skip_paint to _skipPaint
    
    This is now a monkey-patched JavaScript property, and not
    a Clutter or St property anymore, so update its name to
    reflect that.
    
    https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/153

 js/ui/iconGrid.js | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/js/ui/iconGrid.js b/js/ui/iconGrid.js
index 1639651b7..cbfeb05f4 100644
--- a/js/ui/iconGrid.js
+++ b/js/ui/iconGrid.js
@@ -344,10 +344,10 @@ var IconGrid = new Lang.Class({
 
             if (this._rowLimit && rowIndex >= this._rowLimit ||
                 this._fillParent && childBox.y2 > availHeight - this.bottomPadding) {
-                children[i].skip_paint = true;
+                children[i]._skipPaint = true;
             } else {
                 children[i].allocate(childBox, flags);
-                children[i].skip_paint = false;
+                children[i]._skipPaint = false;
             }
 
             columnIndex++;
@@ -369,7 +369,7 @@ var IconGrid = new Lang.Class({
         this.paint_background();
 
         this.get_children().forEach(c => {
-            if (!c.skip_paint)
+            if (!c._skipPaint)
                 c.paint();
         });
     },
@@ -378,7 +378,7 @@ var IconGrid = new Lang.Class({
         this.parent(color);
 
         this.get_children().forEach(c => {
-            if (!c.skip_paint)
+            if (!c._skipPaint)
                 c.paint();
         });
     },
@@ -412,7 +412,7 @@ var IconGrid = new Lang.Class({
             if (!child.visible)
                 continue;
 
-            if (child.skip_paint)
+            if (child._skipPaint)
                 continue;
 
             let childVolume = child.get_transformed_paint_volume(this);
@@ -725,7 +725,7 @@ var IconGrid = new Lang.Class({
     },
 
     visibleItemsCount() {
-        return this.get_children().filter(c => !c.skip_paint).length;
+        return this.get_children().filter(c => !c._skipPaint).length;
     },
 
     setSpacing(spacing) {
@@ -870,7 +870,7 @@ var PaginatedIconGrid = new Lang.Class({
         for (let i = 0; i < children.length; i++) {
             let childBox = this._calculateChildBox(children[i], x, y, box);
             children[i].allocate(childBox, flags);
-            children[i].skip_paint = false;
+            children[i]._skipPaint = false;
 
             columnIndex++;
             if (columnIndex == nColumns) {


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