Fix positioning of group popup menu for later versions of GTK

This commit is contained in:
Stephen Boddy 2015-11-29 00:01:55 +01:00
parent 6db2337c56
commit c1f92495d8
1 changed files with 3 additions and 1 deletions

View File

@ -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()