[gnome-shell/gbsneto/custom-icon-positions: 58/72] appDisplay: Introduce moveItem API
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gbsneto/custom-icon-positions: 58/72] appDisplay: Introduce moveItem API
- Date: Thu, 4 Jun 2020 19:00:25 +0000 (UTC)
commit df9beb6fae264876e8670b12fed77d309daecf29
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Tue May 26 10:58:56 2020 -0300
appDisplay: Introduce moveItem API
This is a simplistic API that basically removes the
icon from it's old location, and adds it to its new
location.
https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1284
js/ui/appDisplay.js | 7 +++++++
1 file changed, 7 insertions(+)
---
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index 0f6bae9632..730fa863d9 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -533,6 +533,13 @@ var BaseAppView = GObject.registerClass({
this._grid.removeNudges();
}
+ moveItem(item, newPage, newPosition) {
+ if (this._grid.contains(item))
+ this._removeItem(item);
+
+ this._addItem(item, newPage, newPosition);
+ }
+
adaptToSize(width, height) {
let box = new Clutter.ActorBox();
box.x1 = 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]