mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-06 00:18:39 +00:00
[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
4 changed files with 4 additions and 4 deletions
|
@ -518,7 +518,7 @@ class FilesTab(Tab):
|
||||||
return func(event)
|
return func(event)
|
||||||
|
|
||||||
def keypress_menu(self, 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
|
return True
|
||||||
|
|
||||||
def keypress_f2(self, event):
|
def keypress_f2(self, event):
|
||||||
|
|
|
@ -403,7 +403,7 @@ class StoredValuesList(ValueList):
|
||||||
|
|
||||||
menuitem_edit.connect('activate', on_edit_clicked, path)
|
menuitem_edit.connect('activate', on_edit_clicked, path)
|
||||||
menuitem_remove.connect('activate', on_remove_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()
|
self.path_list_popup.show_all()
|
||||||
|
|
||||||
def remove_selected_path(self):
|
def remove_selected_path(self):
|
||||||
|
|
|
@ -348,7 +348,7 @@ class PeersTab(Tab):
|
||||||
log.debug('on_button_press_event')
|
log.debug('on_button_press_event')
|
||||||
# We only care about right-clicks
|
# We only care about right-clicks
|
||||||
if self.torrent_id and event.button == 3:
|
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
|
return True
|
||||||
|
|
||||||
def _on_query_tooltip(self, widget, x, y, keyboard_tip, tooltip):
|
def _on_query_tooltip(self, widget, x, y, keyboard_tip, tooltip):
|
||||||
|
|
|
@ -930,5 +930,5 @@ class TorrentView(ListView, component.Component):
|
||||||
return
|
return
|
||||||
|
|
||||||
torrentmenu = component.get('MenuBar').torrentmenu
|
torrentmenu = component.get('MenuBar').torrentmenu
|
||||||
torrentmenu.popup(None, None, None, 3, event.time)
|
torrentmenu.popup(None, None, None, None, 3, event.time)
|
||||||
return True
|
return True
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue