From c1f92495d89a7f8282242082539e68a255ca01f3 Mon Sep 17 00:00:00 2001 From: Stephen Boddy Date: Sun, 29 Nov 2015 00:01:55 +0100 Subject: [PATCH] Fix positioning of group popup menu for later versions of GTK --- terminatorlib/terminal.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/terminatorlib/terminal.py b/terminatorlib/terminal.py index 4f28872c..abc72f5b 100755 --- a/terminatorlib/terminal.py +++ b/terminatorlib/terminal.py @@ -549,8 +549,10 @@ class Terminal(Gtk.VBox): return(menu) - def position_popup_group_menu(self, menu, widget): + def position_popup_group_menu(self, menu, *args): """Calculate the position of the group popup menu""" + # GTK API, or GIR just changed the args. See LP#1518058 + widget = args[-1] _screen_w = Gdk.Screen.width() screen_h = Gdk.Screen.height()