--- /usr/tmp/clean/gail-1.9.3/gail/gailwindow.c	2006-09-12 18:40:48.000000000 +0100
+++ gailwindow.c	2006-11-17 14:23:14.356505000 +0000
@@ -419,7 +419,6 @@
   AtkObject *array[1];
   AtkRelation* relation;
   GtkWidget *current_widget;
-  gboolean ret;
 
   gail_return_val_if_fail (GAIL_IS_WIDGET (obj), NULL);
 
@@ -440,8 +439,7 @@
         {
           atk_relation_set_remove (relation_set, relation);
         }
-      ret = gtk_tooltips_get_info_from_tip_window (GTK_WINDOW (widget), NULL, &current_widget);
-      if (ret)
+      if (GTK_WIDGET_VISIBLE(widget) && gtk_tooltips_get_info_from_tip_window (GTK_WINDOW (widget), NULL, &current_widget))
         {
           array [0] = gtk_widget_get_accessible (current_widget);
 
