a single click on the arrow in groupschat_window expand / collapse the group
This commit is contained in:
parent
6ac64ad577
commit
62e05c0c2c
1 changed files with 5 additions and 5 deletions
|
@ -517,13 +517,13 @@ class Groupchat_window(Chat):
|
||||||
|
|
||||||
model = widget.get_model()
|
model = widget.get_model()
|
||||||
iter = model.get_iter(path)
|
iter = model.get_iter(path)
|
||||||
type = model.get_value(iter, 2)
|
status = model.get_value(iter, 3) # if no status: it's a group
|
||||||
if (type == 'group' or type == 'account'):
|
if not status:
|
||||||
if x < 20: # first cell in 1st column (the arrow SINGLE clicked)
|
if x < 20: # first cell in 1st column (the arrow SINGLE clicked)
|
||||||
if (self.tree.row_expanded(path)):
|
if (widget.row_expanded(path)):
|
||||||
self.tree.collapse_row(path)
|
widget.collapse_row(path)
|
||||||
else:
|
else:
|
||||||
self.tree.expand_row(path, False)
|
widget.expand_row(path, False)
|
||||||
|
|
||||||
#FIXME: should popup chat window for GC contact DOUBLE clicked
|
#FIXME: should popup chat window for GC contact DOUBLE clicked
|
||||||
# also chat [in contect menu]
|
# also chat [in contect menu]
|
||||||
|
|
Loading…
Add table
Reference in a new issue