[polari/wip/fmuellner/es6-classes: 4/7] pasteManager: Remove excess arguments
- From: Gitlab Administrative User <gitlab src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari/wip/fmuellner/es6-classes: 4/7] pasteManager: Remove excess arguments
- Date: Sat, 28 Oct 2017 16:49:08 +0000 (UTC)
commit 7b77d4210a559cda0e211cf317216ad43f5d647e
Author: Florian Müllner <fmuellner gnome org>
Date: Fri Oct 27 04:19:30 2017 +0200
pasteManager: Remove excess arguments
Our helper method takes less arguments than the GTK+ method it's based
on - remove the excess argument to avoid warnings.
Fixes https://gitlab.gnome.org/GNOME/polari/issues/14
src/pasteManager.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/pasteManager.js b/src/pasteManager.js
index e39f493..aa321f4 100644
--- a/src/pasteManager.js
+++ b/src/pasteManager.js
@@ -122,7 +122,7 @@ var DropTargetIface = new Lang.Interface({
if (!this.can_drop)
return Gdk.EVENT_PROPAGATE;
- if (!Polari.drag_dest_supports_target(widget, context, null))
+ if (!Polari.drag_dest_supports_target(widget, context))
return Gdk.EVENT_PROPAGATE;
Polari.drag_dest_request_data(widget, context, time);
@@ -138,7 +138,7 @@ var DropTargetIface = new Lang.Interface({
if (!this.can_drop)
return Gdk.EVENT_PROPAGATE;
- if (!Polari.drag_dest_supports_target(widget, context, null))
+ if (!Polari.drag_dest_supports_target(widget, context))
return Gdk.EVENT_PROPAGATE;
let info = Polari.drag_dest_find_target(widget, context);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]