One more optimization

This commit is contained in:
Matthias Clasen 2006-04-06 02:18:57 +00:00
parent 12704a67bc
commit 4af02533bf

View File

@ -1524,7 +1524,7 @@ gtk_grab_notify_foreach (GtkWidget *child,
if (was_shadowed != is_shadowed)
_gtk_widget_grab_notify (child, was_shadowed);
if (GTK_IS_CONTAINER (child))
if ((was_shadowed || is_shadowed) && GTK_IS_CONTAINER (child))
gtk_container_foreach (GTK_CONTAINER (child), gtk_grab_notify_foreach, info);
g_object_unref (child);