prevent a GTK warning

This commit is contained in:
Yann Leboulanger 2008-01-30 08:12:59 +00:00
parent 4fcddb6738
commit d85e0fdc75
1 changed files with 3 additions and 0 deletions

View File

@ -2159,6 +2159,9 @@ class GroupchatControl(ChatControlBase):
self.tooltip.hide_tooltip()
def show_tooltip(self, contact):
if not self.list_treeview.window:
# control has been destroyed since tooltip was requested
return
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