Skip to content
Snippets Groups Projects
Commit 62e05c0c authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

a single click on the arrow in groupschat_window expand / collapse the group

parent 6ac64ad5
No related branches found
No related tags found
No related merge requests found
......@@ -517,13 +517,13 @@ class Groupchat_window(Chat):
model = widget.get_model()
iter = model.get_iter(path)
type = model.get_value(iter, 2)
if (type == 'group' or type == 'account'):
status = model.get_value(iter, 3) # if no status: it's a group
if not status:
if x < 20: # first cell in 1st column (the arrow SINGLE clicked)
if (self.tree.row_expanded(path)):
self.tree.collapse_row(path)
if (widget.row_expanded(path)):
widget.collapse_row(path)
else:
self.tree.expand_row(path, False)
widget.expand_row(path, False)
#FIXME: should popup chat window for GC contact DOUBLE clicked
# also chat [in contect menu]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment