revealer: Don't add a clip node for CROSSFADE transitions

We don't need them there as we just change the opacity of the revealer.
This commit is contained in:
Timm Bäder 2017-05-05 18:41:30 +02:00 committed by Matthias Clasen
parent c76804b1f2
commit 04fcb1f17f

View File

@ -785,7 +785,8 @@ gtk_revealer_snapshot (GtkWidget *widget,
return;
transition = effective_transition (revealer);
if (transition == GTK_REVEALER_TRANSITION_TYPE_NONE)
if (transition == GTK_REVEALER_TRANSITION_TYPE_NONE ||
transition == GTK_REVEALER_TRANSITION_TYPE_CROSSFADE)
{
gtk_widget_snapshot_child (widget, child, snapshot);
}