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
This commit is contained in:
Matthias Clasen 2007-03-12 02:51:40 +00:00 committed by Matthias Clasen
parent 3a3bce193e
commit aa16f8e09b
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
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)
2007-03-11 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktextview.c (gtk_text_view_set_buffer): Set first_para_mark

View File

@ -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;
}