From 5b6a197a500a3b259ce30900abac20c892f5373f Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Mon, 17 Mar 2008 08:01:27 +0000 Subject: [PATCH] Clicking on the 'Not Connected' status bar item will now show the ConnectionManager. --- deluge/ui/gtkui/statusbar.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/deluge/ui/gtkui/statusbar.py b/deluge/ui/gtkui/statusbar.py index 7d1affb75..28eca9225 100644 --- a/deluge/ui/gtkui/statusbar.py +++ b/deluge/ui/gtkui/statusbar.py @@ -130,7 +130,8 @@ class StatusBar(component.Component): self.statusbar.show_all() # Create the not connected item self.not_connected_item = StatusBarItem( - stock=gtk.STOCK_STOP, text=_("Not Connected")) + stock=gtk.STOCK_STOP, text=_("Not Connected"), + callback=self._on_notconnected_item_clicked) # Show the not connected status bar self.show_not_connected() @@ -412,3 +413,6 @@ class StatusBar(component.Component): def _on_health_icon_clicked(self, widget, event): component.get("Preferences").show("Network") + + def _on_notconnected_item_clicked(self, widget, event): + component.get("ConnectionManager").show()