From 77c8a3b03d9893e0b943887c9c3ecaf7f8f90360 Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Wed, 24 Aug 2005 17:29:15 +0000 Subject: [PATCH] [dkirov] fix gc tooltips positioning problems --- src/groupchat_window.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/groupchat_window.py b/src/groupchat_window.py index cab455ede..1ee10b9f6 100644 --- a/src/groupchat_window.py +++ b/src/groupchat_window.py @@ -1112,12 +1112,13 @@ class GroupchatWindow(chat.Chat): # check if the current pointer is at the same path # as it was before setting the timeout rect = self.list_treeview[room_jid].get_cell_area(props[0],props[1]) - position_height = self.list_treeview[room_jid].window.get_origin()[1] - # temorary for testing purposes on Win32 - position_width = self.list_treeview[room_jid].window.get_origin()[0] + position = self.list_treeview[room_jid].window.get_origin() pointer = self.window.get_pointer() - self.tooltip.show_tooltip(contact, (pointer[0], rect.height), - (position_width, position_height + rect.y)) + #self.tooltip.show_tooltip(contact, (pointer[0], rect.height), + # (position[0], position[1] + rect.y)) + self.tooltip.show_tooltip(contact, (0, rect.height), + (self.window.get_screen().get_display().get_pointer()[1], + position[1] + rect.y)) else: self.tooltip.hide_tooltip()