changeset 9e2d1da2a036 in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=9e2d1da2a036
description: improve the left arrow behaviour in treeview: select parent row
when we cannot collapse row
diffstat:
src/roster_window.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (17 lines):
diff -r 7dad053a3abc -r 9e2d1da2a036 src/roster_window.py
--- a/src/roster_window.py Tue Apr 17 15:23:32 2012 +0200
+++ b/src/roster_window.py Tue Apr 17 15:40:24 2012 +0200
@@ -3441,9 +3441,12 @@
return
path = list_of_paths[0]
iter_ = model.get_iter(path)
- if model.iter_has_child(iter_):
+ if model.iter_has_child(iter_) and self.tree.row_expanded(path):
self.tree.collapse_row(path)
return True
+ elif len(path) > 1:
+ self.tree.set_cursor(path[:-1])
+ return True
elif event.keyval == gtk.keysyms.Right:
treeselection = self.tree.get_selection()
model, list_of_paths = treeselection.get_selected_rows()
_______________________________________________
Commits mailing list
[email protected]
http://lists.gajim.org/cgi-bin/listinfo/commits