on dubble click on a row in accounts window, we open modify account

This commit is contained in:
Yann Leboulanger 2005-10-04 07:12:30 +00:00
parent 83ffab141f
commit ed5d983081
2 changed files with 11 additions and 1 deletions

View File

@ -1730,7 +1730,16 @@ class AccountsWindow:
(model, iter) = sel.get_selected()
if not iter:
return
account = model.get_value(iter, 0).decode('utf-8')
account = model[iter][0].decode('utf-8')
self.show_modification_window(account)
def on_accounts_treeview_row_activated(self, widget, path, column):
model = widget.get_model()
iter = model.get_iter(path)
account = model[iter][0].decode('utf-8')
self.show_modification_window(account)
def show_modification_window(self, account):
if self.plugin.windows[account].has_key('account_modification'):
self.plugin.windows[account]['account_modification'].window.present()
else:

View File

@ -415,6 +415,7 @@
<property name="hover_selection">False</property>
<property name="hover_expand">False</property>
<signal name="cursor_changed" handler="on_accounts_treeview_cursor_changed" last_modification_time="Tue, 01 Mar 2005 18:21:26 GMT"/>
<signal name="row_activated" handler="on_accounts_treeview_row_activated" last_modification_time="Tue, 04 Oct 2005 07:09:52 GMT"/>
</widget>
</child>
</widget>