--- /dev/null
+From e94de3aad89eecac7eaf8236b4c0b2c7919bc70b Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Florian=20M=C3=BCllner?= <fmuellner@gnome.org>
+Date: Fri, 27 Oct 2017 04:19:30 +0200
+Subject: [PATCH] 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);
+--
+2.17.0
+
--- /dev/null
+# Copyright 1999-2018 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit gnome.org gnome2-utils meson xdg
+
+DESCRIPTION="An IRC client for Gnome"
+HOMEPAGE="https://wiki.gnome.org/Apps/Polari"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE=""
+
+COMMON_DEPEND="
+ >=dev-libs/glib-2.43.4:2
+ >=x11-libs/gtk+-3.21.6:3[introspection]
+ net-libs/telepathy-glib[introspection]
+ >=dev-libs/gobject-introspection-1.50:=
+ >=dev-libs/gjs-1.50
+
+ x11-libs/gdk-pixbuf:2[introspection]
+ >=app-text/gspell-1.4.0[introspection]
+ x11-libs/pango[introspection]
+ app-crypt/libsecret[introspection]
+ net-libs/libsoup:2.4[introspection]
+ net-im/telepathy-logger[introspection]
+"
+RDEPEND="${COMMON_DEPEND}
+ >=net-irc/telepathy-idle-0.2
+"
+DEPEND="${COMMON_DEPEND}
+ dev-libs/appstream-glib
+ dev-libs/libxml2:2
+ dev-util/itstool
+ >=sys-devel/gettext-0.19.8
+ virtual/pkgconfig
+"
+
+PATCHES=(
+ "${FILESDIR}"/${PV}-drag-warning-fix.patch
+)
+
+pkg_postinst() {
+ xdg_pkg_postinst
+ gnome2_icon_cache_update
+ gnome2_schemas_update
+}
+
+pkg_postrm() {
+ xdg_pkg_postrm
+ gnome2_icon_cache_update
+ gnome2_schemas_update
+}