From f61a8bb0236c9cff88f7aee82deea3f71dbaee6b Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Sat, 19 Jul 2008 23:00:28 +0000 Subject: [PATCH] Show preferences page when clicking on blocklist statusbar item --- deluge/plugins/blocklist/blocklist/gtkui.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deluge/plugins/blocklist/blocklist/gtkui.py b/deluge/plugins/blocklist/blocklist/gtkui.py index 7fec00ebf..b90b35062 100644 --- a/deluge/plugins/blocklist/blocklist/gtkui.py +++ b/deluge/plugins/blocklist/blocklist/gtkui.py @@ -126,8 +126,8 @@ class GtkUI(ui.UI): def _on_button_import_clicked(self, widget): client.blocklist_import(None) - def _on_status_item_clicked(self): - pass + def _on_status_item_clicked(self, widget, event): + component.get("Preferences").show("Blocklist") def load_preferences_page(self): """Initializes the preferences page and adds it to the preferences dialog"""