diff options
author | Calum Lind <calumlind@gmail.com> | 2018-10-19 12:10:25 +0100 |
---|---|---|
committer | Calum Lind <calumlind@gmail.com> | 2018-11-02 08:45:39 +0000 |
commit | 70d5931622c4d97e3e5439f408af8ffa7092e33e (patch) | |
tree | ba451c98edf59775555a8ebb0e867e8cf5e640b7 /deluge/ui/gtk3/torrentview.py | |
parent | ce49cde49d1da21f429ae440ba563a31e2e318fd (diff) | |
download | deluge-70d5931622c4d97e3e5439f408af8ffa7092e33e.tar.gz deluge-70d5931622c4d97e3e5439f408af8ffa7092e33e.tar.bz2 deluge-70d5931622c4d97e3e5439f408af8ffa7092e33e.zip |
[GTK3] Fix column header right-click menu popup
The popup_at_pointer method is only available in GTK >=3.22 so for
compatibility restore using popup method.
Right-clicking on column headers popped-up torrent menu so only show
this menu when in torrentview.
Diffstat (limited to 'deluge/ui/gtk3/torrentview.py')
-rw-r--r-- | deluge/ui/gtk3/torrentview.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/deluge/ui/gtk3/torrentview.py b/deluge/ui/gtk3/torrentview.py index 0529ebed2..f6313da07 100644 --- a/deluge/ui/gtk3/torrentview.py +++ b/deluge/ui/gtk3/torrentview.py @@ -792,7 +792,7 @@ class TorrentView(ListView, component.Component): """This is a callback for showing the right-click context menu.""" log.debug('on_button_press_event') # We only care about right-clicks - if event.button == 3: + if event.button == 3 and event.window == self.treeview.get_bin_window(): x, y = event.get_coords() path = self.treeview.get_path_at_pos(int(x), int(y)) if not path: |