[dkirov] fix gc tooltips positioning problems
This commit is contained in:
parent
fd83a95032
commit
77c8a3b03d
|
@ -1112,12 +1112,13 @@ class GroupchatWindow(chat.Chat):
|
||||||
# check if the current pointer is at the same path
|
# check if the current pointer is at the same path
|
||||||
# as it was before setting the timeout
|
# as it was before setting the timeout
|
||||||
rect = self.list_treeview[room_jid].get_cell_area(props[0],props[1])
|
rect = self.list_treeview[room_jid].get_cell_area(props[0],props[1])
|
||||||
position_height = self.list_treeview[room_jid].window.get_origin()[1]
|
position = self.list_treeview[room_jid].window.get_origin()
|
||||||
# temorary for testing purposes on Win32
|
|
||||||
position_width = self.list_treeview[room_jid].window.get_origin()[0]
|
|
||||||
pointer = self.window.get_pointer()
|
pointer = self.window.get_pointer()
|
||||||
self.tooltip.show_tooltip(contact, (pointer[0], rect.height),
|
#self.tooltip.show_tooltip(contact, (pointer[0], rect.height),
|
||||||
(position_width, position_height + rect.y))
|
# (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:
|
else:
|
||||||
self.tooltip.hide_tooltip()
|
self.tooltip.hide_tooltip()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue