From c40692a779653924083015ffc8095322a33dbb58 Mon Sep 17 00:00:00 2001 From: Dimitur Kirov Date: Tue, 28 Feb 2006 17:24:36 +0000 Subject: [PATCH] change show_tooltip arguments --- src/groupchat_control.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/groupchat_control.py b/src/groupchat_control.py index 7bc440849..700c70ce5 100644 --- a/src/groupchat_control.py +++ b/src/groupchat_control.py @@ -1446,15 +1446,13 @@ class GroupchatControl(ChatControlBase): def show_tooltip(self, contact): pointer = self.list_treeview.get_pointer() props = self.list_treeview.get_path_at_pos(pointer[0], pointer[1]) + # check if the current pointer is at the same path + # as it was before setting the timeout if props and self.tooltip.id == props[0]: - # check if the current pointer is at the same path - # as it was before setting the timeout rect = self.list_treeview.get_cell_area(props[0],props[1]) position = self.list_treeview.window.get_origin() - pointer = self.parent_win.window.get_pointer() - self.tooltip.show_tooltip(contact, (0, rect.height), - (self.parent_win.window.get_screen().get_display().get_pointer()[1], - position[1] + rect.y)) + self.tooltip.show_tooltip(contact, rect.height, + position[1] + rect.y) else: self.tooltip.hide_tooltip()