Skip to content
Snippets Groups Projects
Commit 3117e656 authored by bigpod's avatar bigpod
Browse files

single click in arrow works now

parent 94167e45
No related branches found
No related tags found
No related merge requests found
......@@ -1936,6 +1936,18 @@ class roster_window:
try:
path, column, x, y = self.tree.get_path_at_pos(int(event.x), \
int(event.y))
model = self.tree.get_model()
iter = model.get_iter(path)
type = model.get_value(iter, 2)
if (type == 'group'):
if (self.tree.row_expanded(path)):
if x <= self.pixbufs['opened'].get_pixbuf()\ #The integer 10 is the xoffset
.get_width()+10:
self.tree.collapse_row(path)
else:
if x <= self.pixbufs['closed'].get_pixbuf()\
.get_width()+10:
self.tree.expand_row(path, False)
except TypeError:
self.tree.get_selection().unselect_all()
return False
......
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