summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCalum Lind <calumlind+deluge@gmail.com>2019-06-11 21:28:22 +0100
committerCalum Lind <calumlind+deluge@gmail.com>2019-06-12 09:40:14 +0100
commitf61001a15d5fa6c4e3a8f536da047cb493aacc95 (patch)
tree330353facc84216da1c422d7ff515a9991ccfb3f
parent86ddadacf7ef061b303e769a64fc8db2960e89e8 (diff)
downloaddeluge-f61001a15d5fa6c4e3a8f536da047cb493aacc95.zip
deluge-f61001a15d5fa6c4e3a8f536da047cb493aacc95.tar.gz
deluge-f61001a15d5fa6c4e3a8f536da047cb493aacc95.tar.bz2
[GTK] Fix missing argument for GtkMenu.popup()
Missed while converting from pygtk to Gtk3 Fixes: #3266
-rw-r--r--deluge/ui/gtk3/files_tab.py2
-rwxr-xr-xdeluge/ui/gtk3/path_combo_chooser.py2
-rw-r--r--deluge/ui/gtk3/peers_tab.py2
-rw-r--r--deluge/ui/gtk3/torrentview.py2
4 files changed, 4 insertions, 4 deletions
diff --git a/deluge/ui/gtk3/files_tab.py b/deluge/ui/gtk3/files_tab.py
index a80418c..b3bd5b5 100644
--- a/deluge/ui/gtk3/files_tab.py
+++ b/deluge/ui/gtk3/files_tab.py
@@ -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):
diff --git a/deluge/ui/gtk3/path_combo_chooser.py b/deluge/ui/gtk3/path_combo_chooser.py
index 892b5b4..c26289d 100755
--- a/deluge/ui/gtk3/path_combo_chooser.py
+++ b/deluge/ui/gtk3/path_combo_chooser.py
@@ -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):
diff --git a/deluge/ui/gtk3/peers_tab.py b/deluge/ui/gtk3/peers_tab.py
index 46f8bb4..ea4e757 100644
--- a/deluge/ui/gtk3/peers_tab.py
+++ b/deluge/ui/gtk3/peers_tab.py
@@ -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):
diff --git a/deluge/ui/gtk3/torrentview.py b/deluge/ui/gtk3/torrentview.py
index 9d6bf68..fcc6edf 100644
--- a/deluge/ui/gtk3/torrentview.py
+++ b/deluge/ui/gtk3/torrentview.py
@@ -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