From 62e05c0c2cfba8fd405d83ba8c4cab90f0fcb1a4 Mon Sep 17 00:00:00 2001
From: Yann Leboulanger <asterix@lagaule.org>
Date: Tue, 5 Apr 2005 22:01:51 +0000
Subject: [PATCH] a single click on the arrow in groupschat_window expand /
 collapse the group

---
 plugins/gtkgui/groupchat_window.py | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/plugins/gtkgui/groupchat_window.py b/plugins/gtkgui/groupchat_window.py
index 3888991c10..ddc1f4a830 100644
--- a/plugins/gtkgui/groupchat_window.py
+++ b/plugins/gtkgui/groupchat_window.py
@@ -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]
-- 
GitLab