compute correctly the position of the status cellrenderer in groupchat roster. Fixes #1726

This commit is contained in:
Yann Leboulanger 2006-03-24 22:24:44 +00:00
parent fd859966c5
commit 468b5d60c1
1 changed files with 6 additions and 1 deletions

View File

@ -1458,7 +1458,12 @@ class GroupchatControl(ChatControlBase):
if not nick in gajim.contacts.get_nick_list(self.account,
self.room_jid):
#it's a group
if x < 20: # first cell in 1st column (the arrow SINGLE clicked)
col = widget.get_column(0)
avatar_cell = col.get_cell_renderers()[0]
(pos, avatar_size) = col.cell_get_position(avatar_cell)
status_cell = col.get_cell_renderers()[1]
(pos, status_size) = col.cell_get_position(status_cell)
if x > avatar_size and x < avatar_size + status_size:
if (widget.row_expanded(path)):
widget.collapse_row(path)
else: