[GTK] Fix missing argument for GtkMenu.popup()
Missed while converting from pygtk to Gtk3 Fixes: #3266
This commit is contained in:
parent
86ddadacf7
commit
f61001a15d
|
@ -518,7 +518,7 @@ class FilesTab(Tab):
|
|||
return func(event)
|
||||
|
||||
def keypress_menu(self, event):
|
||||
self.file_menu.popup(None, None, None, 3, event.time)
|
||||
self.file_menu.popup(None, None, None, None, 3, event.time)
|
||||
return True
|
||||
|
||||
def keypress_f2(self, event):
|
||||
|
|
|
@ -403,7 +403,7 @@ class StoredValuesList(ValueList):
|
|||
|
||||
menuitem_edit.connect('activate', on_edit_clicked, path)
|
||||
menuitem_remove.connect('activate', on_remove_clicked, path)
|
||||
self.path_list_popup.popup(None, None, None, event.button, time, data=path)
|
||||
self.path_list_popup.popup(None, None, None, path, event.button, time)
|
||||
self.path_list_popup.show_all()
|
||||
|
||||
def remove_selected_path(self):
|
||||
|
|
|
@ -348,7 +348,7 @@ class PeersTab(Tab):
|
|||
log.debug('on_button_press_event')
|
||||
# We only care about right-clicks
|
||||
if self.torrent_id and event.button == 3:
|
||||
self.peer_menu.popup(None, None, None, event.button, event.time)
|
||||
self.peer_menu.popup(None, None, None, None, event.button, event.time)
|
||||
return True
|
||||
|
||||
def _on_query_tooltip(self, widget, x, y, keyboard_tip, tooltip):
|
||||
|
|
|
@ -930,5 +930,5 @@ class TorrentView(ListView, component.Component):
|
|||
return
|
||||
|
||||
torrentmenu = component.get('MenuBar').torrentmenu
|
||||
torrentmenu.popup(None, None, None, 3, event.time)
|
||||
torrentmenu.popup(None, None, None, None, 3, event.time)
|
||||
return True
|
||||
|
|
Loading…
Reference in New Issue