gtknotebook: Fix critical warnings on scroll events

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=604391
This commit is contained in:
Christian Persch 2010-03-23 14:45:07 +01:00 committed by Javier Jardón
parent 81321b7d55
commit 8f42a13ce7

View File

@ -2590,7 +2590,8 @@ gtk_notebook_scroll (GtkWidget *widget,
for (i = 0; i < 2; i++)
{
if (event_widget == priv->action_widget[i] ||
gtk_widget_is_ancestor (event_widget, priv->action_widget[i]))
(priv->action_widget[i] &&
gtk_widget_is_ancestor (event_widget, priv->action_widget[i])))
return FALSE;
}