From 3ec61a1d3fd337ff502edc505c164eaf925c8302 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Mon, 28 Jul 2008 23:38:24 +0000 Subject: [PATCH] Double-clicking on host in ConnectionManager now will connect to that host --- deluge/ui/gtkui/connectionmanager.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/deluge/ui/gtkui/connectionmanager.py b/deluge/ui/gtkui/connectionmanager.py index 2675ae3d3..438a8af1c 100644 --- a/deluge/ui/gtkui/connectionmanager.py +++ b/deluge/ui/gtkui/connectionmanager.py @@ -122,6 +122,8 @@ class ConnectionManager(component.Component): self.hostlist.get_selection().connect("changed", self.on_selection_changed) + self.hostlist.connect("row-activated", self._on_row_activated) + # If classic mode is set, we just start up a localhost daemon and connect to it if self.gtkui_config["classic_mode"]: uri = "http://localhost:58846" @@ -510,3 +512,7 @@ class ConnectionManager(component.Component): def on_selection_changed(self, treeselection): log.debug("on_selection_changed") self.update_buttons() + + def _on_row_activated(self, tree, path, view_column): + self.on_button_connect_clicked(self.glade.get_widget("button_connect")) +