forked from AuroraMiddleware/gtk
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:
parent
3a3bce193e
commit
aa16f8e09b
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user