summaryrefslogtreecommitdiffstats
path: root/deluge/ui/gtk3/systemtray.py
diff options
context:
space:
mode:
authorCalum Lind <calumlind+deluge@gmail.com>2018-09-20 20:47:46 +0100
committerCalum Lind <calumlind@gmail.com>2018-11-02 08:45:39 +0000
commitcf4012bb6016f612ee79eede1f8a7e7f8af74db0 (patch)
tree407b36f995947d449354fc0dfd9ee7ba7a22f16c /deluge/ui/gtk3/systemtray.py
parentbbcebe13060b8c32a8fd654e37110a0f9ea6f8a4 (diff)
downloaddeluge-cf4012bb6016f612ee79eede1f8a7e7f8af74db0.tar.gz
deluge-cf4012bb6016f612ee79eede1f8a7e7f8af74db0.tar.bz2
deluge-cf4012bb6016f612ee79eede1f8a7e7f8af74db0.zip
[GTK3] Fix and remove FIXME comments
- Several of the FIXME comments seem to be outdated so removed. - The status_icon comment was resolved by fixing the arguments supplied to tray_menu.popup(). - The TreePath no longer returns a tuple so cast path to int. - Fix an error with Pixbuf signature.
Diffstat (limited to 'deluge/ui/gtk3/systemtray.py')
-rw-r--r--deluge/ui/gtk3/systemtray.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/deluge/ui/gtk3/systemtray.py b/deluge/ui/gtk3/systemtray.py
index 4709c3502..81a7c2ffb 100644
--- a/deluge/ui/gtk3/systemtray.py
+++ b/deluge/ui/gtk3/systemtray.py
@@ -352,8 +352,9 @@ class SystemTray(component.Component):
if windows_check() or osx_check():
popup_function = None
button = 0
- # FIXME why was status_icon removed??
- self.tray_menu.popup(None, None, None, popup_function, button, activate_time)
+ self.tray_menu.popup(
+ None, None, None, popup_function, status_icon, button, activate_time
+ )
def on_menuitem_show_deluge_activate(self, menuitem):
log.debug('on_menuitem_show_deluge_activate')