From ebf26101406cc59336b6db37fa942918aa050650 Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Tue, 2 Jul 2019 16:27:18 -0300 Subject: [PATCH] folderView: Move DnD functions to BaseAppView It will be much easier to handle Drag n' Drop with BaseAppView implementing default handlers for it. Move handleDragOver() and acceptDrop() to BaseAppView. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/603 --- js/ui/appDisplay.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index c29d884ce..931f69e12 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -192,6 +192,14 @@ class BaseAppView { log(`No such application ${id}`); } + handleDragOver(source, actor, x, y, time) { + return DND.DragMotionResult.NO_DROP; + } + + acceptDrop(source, actor, x, y, time) { + return false; + } + selectApp(id) { if (this._items[id] && this._items[id].actor.mapped) { this._selectAppInternal(id);