From d85e0fdc7515ab287d0a218529905eacbd9fdc44 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Wed, 30 Jan 2008 08:12:59 +0000 Subject: [PATCH] prevent a GTK warning --- src/groupchat_control.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/groupchat_control.py b/src/groupchat_control.py index fd0235836..c5b2ae487 100644 --- a/src/groupchat_control.py +++ b/src/groupchat_control.py @@ -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