From 516945277e590c5092b024519f67abd0d63e5fa1 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Tue, 15 Jul 2008 01:55:12 +0000 Subject: [PATCH] Fix status icon tray menu scrolling on windows --- deluge/ui/gtkui/systemtray.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/deluge/ui/gtkui/systemtray.py b/deluge/ui/gtkui/systemtray.py index 685398cdc..8427c1720 100644 --- a/deluge/ui/gtkui/systemtray.py +++ b/deluge/ui/gtkui/systemtray.py @@ -262,7 +262,10 @@ class SystemTray(component.Component): else: self.tray_glade.get_widget("menuitem_show_deluge").set_active(False) - self.tray_menu.popup(None, None, gtk.status_icon_position_menu, + popup_function = gtk.status_icon_position_menu + if deluge.common.windows_check(): + popup_function = None + self.tray_menu.popup(None, None, popup_function, button, activate_time, status_icon) def on_menuitem_show_deluge_activate(self, menuitem):