summaryrefslogtreecommitdiff
path: root/gtk/gtktooltips.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2007-03-12 02:51:40 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2007-03-12 02:51:40 +0000
commitaa16f8e09b8a9ba332e2eed2b789e3f6b1e09eae (patch)
treed2668fb1598d1a0cebc6d90f1b39284c6e839d1a /gtk/gtktooltips.c
parent3a3bce193e657fe5752d756a188dc6b564546e0e (diff)
downloadgtk+-aa16f8e09b8a9ba332e2eed2b789e3f6b1e09eae.tar.gz
Don't crash if active_tips_data is NULL. (#382904, Li Yuan)
2007-03-11 Matthias Clasen <mclasen@redhat.com> * gtk/gtktooltips.c (gtk_tooltips_get_info_from_tip_window): Don't crash if active_tips_data is NULL. (#382904, Li Yuan) 2 svn path=/trunk/; revision=17483
Diffstat (limited to 'gtk/gtktooltips.c')
-rw-r--r--gtk/gtktooltips.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtktooltips.c b/gtk/gtktooltips.c
index 458f9e4109..bb41f14325 100644
--- a/gtk/gtktooltips.c
+++ b/gtk/gtktooltips.c
@@ -779,7 +779,7 @@ gtk_tooltips_get_info_from_tip_window (GtkWindow *tip_window,
if (tooltips)
*tooltips = current_tooltips;
if (current_widget)
- *current_widget = has_tips ? current_tooltips->active_tips_data->widget : NULL;
+ *current_widget = (has_tips && current_tooltips->active_tips_data) ? current_tooltips->active_tips_data->widget : NULL;
return has_tips;
}