Clicking on the 'Not Connected' status bar item will now show the

ConnectionManager.
This commit is contained in:
Andrew Resch 2008-03-17 08:01:27 +00:00
parent 096ea631a9
commit 5b6a197a50

View File

@ -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()