[gnome-shell/gbsneto/icon-grid-part2: 5/10] folderIcon: Update folder icon after dropping



commit 6d75e85097da2f2ca3f4bcae2f6d50076e6036da
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Fri Jun 28 19:49:18 2019 -0300

    folderIcon: Update folder icon after dropping
    
    After dropping an application into the folder icon, the
    list of applications is updated but the folder icon itself
    is not.
    
    Introduce BaseIcon.update() and call it from FolderIcon
    when redisplaying.
    
    https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/664

 js/ui/appDisplay.js | 1 +
 js/ui/iconGrid.js   | 4 ++++
 2 files changed, 5 insertions(+)
---
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index 5ec15c1f27..de9e168d93 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -1331,6 +1331,7 @@ var FolderIcon = class FolderIcon {
     _redisplay() {
         this._updateName();
         this.actor.visible = this.view.getAllItems().length > 0;
+        this.icon.update();
         this.emit('apps-changed');
     }
 
diff --git a/js/ui/iconGrid.js b/js/ui/iconGrid.js
index cf6b48b208..bb6829673e 100644
--- a/js/ui/iconGrid.js
+++ b/js/ui/iconGrid.js
@@ -141,6 +141,10 @@ class BaseIcon extends St.Bin {
         // animating.
         zoomOutActor(this.child);
     }
+
+    update() {
+        this._createIconTexture(this.iconSize);
+    }
 });
 
 function clamp(value, min, max) {


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