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 6330ea9e43
commit 1af1362a36

View File

@ -2550,7 +2550,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;
}