[gnome-shell/gbsneto/icon-grid-dnd: 54/96] folderIcon: Update folder icon after dropping
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gbsneto/icon-grid-dnd: 54/96] folderIcon: Update folder icon after dropping
- Date: Tue, 16 Jul 2019 23:26:40 +0000 (UTC)
commit 1f4fc68f3a100d9042f1bac6ec4428269addf0b3
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/603
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 b8aec070d..e3e9de2cc 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -1237,6 +1237,7 @@ var FolderIcon = class FolderIcon {
this.actor.visible = this.view.getAllItems().length > 0;
this.view.loadGrid();
+ this.icon.update();
this.emit('apps-changed');
}
diff --git a/js/ui/iconGrid.js b/js/ui/iconGrid.js
index 9a6ddc586..7aea4197e 100644
--- a/js/ui/iconGrid.js
+++ b/js/ui/iconGrid.js
@@ -137,6 +137,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]