From 8ff28d636e5e11fa63fe9c16cab82d54a7c75459 Mon Sep 17 00:00:00 2001
From: Yann Leboulanger <asterix@lagaule.org>
Date: Sat, 19 Mar 2016 13:13:25 +0100
Subject: [PATCH] prevent an error under GTK2.18+. Fixes #8287

---
 src/gtkgui_helpers.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gtkgui_helpers.py b/src/gtkgui_helpers.py
index 023bca4b4..b9ee88c3a 100644
--- a/src/gtkgui_helpers.py
+++ b/src/gtkgui_helpers.py
@@ -125,7 +125,7 @@ def popup_emoticons_under_button(menu, button, parent_win):
     """
     window_x1, window_y1 = parent_win.get_origin()[1:]
 
-    def position_menu_under_button(menu, data):
+    def position_menu_under_button(menu, _x=None, _y=None, data=None):
         # inline function, which will not keep refs, when used as CB
         alloc = button.get_allocation()
         button_x, button_y = alloc.x, alloc.y