[gnome-shell/gbsneto/random-cleanups-pt2: 2/4] overview: Pass drag source on item-drag-* signals
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gbsneto/random-cleanups-pt2: 2/4] overview: Pass drag source on item-drag-* signals
- Date: Wed, 24 Jun 2020 20:17:49 +0000 (UTC)
commit 3b7da0b95fda136fc57c4cb201fad4e3e221f6fb
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Tue Jun 23 10:30:33 2020 -0300
overview: Pass drag source on item-drag-* signals
Overview has signals to notify about starting, cancelling, and
finishing icon drags, but none of these signals pass the dragged
item to the callbacks.
Pass the dragged items to the 'item-drag-*' overview signals.
https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1332
js/ui/overview.js | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/js/ui/overview.js b/js/ui/overview.js
index 471a7e3b72..219645dd6a 100644
--- a/js/ui/overview.js
+++ b/js/ui/overview.js
@@ -440,19 +440,19 @@ var Overview = class {
this.emit('windows-restacked', stackIndices);
}
- beginItemDrag(_source) {
- this.emit('item-drag-begin');
+ beginItemDrag(source) {
+ this.emit('item-drag-begin', source);
this._inItemDrag = true;
}
- cancelledItemDrag(_source) {
- this.emit('item-drag-cancelled');
+ cancelledItemDrag(source) {
+ this.emit('item-drag-cancelled', source);
}
- endItemDrag(_source) {
+ endItemDrag(source) {
if (!this._inItemDrag)
return;
- this.emit('item-drag-end');
+ this.emit('item-drag-end', source);
this._inItemDrag = false;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]