[gnome-shell/gbsneto/icon-grid-part3: 1/5] folderView: Move DnD functions to BaseAppView
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gbsneto/icon-grid-part3: 1/5] folderView: Move DnD functions to BaseAppView
- Date: Thu, 8 Aug 2019 00:36:07 +0000 (UTC)
commit a1029aecf9a7c8d51ae6d7b790563723a501817a
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Tue Jul 2 16:27:18 2019 -0300
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/671
js/ui/appDisplay.js | 8 ++++++++
1 file changed, 8 insertions(+)
---
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index 92a59410c4..51cb315217 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -162,6 +162,14 @@ class BaseAppView {
log(`No such application ${id}`);
}
+ handleDragOver() {
+ return DND.DragMotionResult.NO_DROP;
+ }
+
+ acceptDrop() {
+ return false;
+ }
+
selectApp(id) {
if (this._items[id] && this._items[id].actor.mapped) {
this._selectAppInternal(id);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]