summaryrefslogtreecommitdiff
path: root/gtk/gtkrevealer.c
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2017-05-05 18:41:30 +0200
committerMatthias Clasen <mclasen@redhat.com>2017-07-19 21:27:12 -0400
commit04fcb1f17f58450fd628b514c36393b98079a912 (patch)
treeeda6650dc735e8f892236e5a34ae2e48c7734c59 /gtk/gtkrevealer.c
parentc76804b1f2cf8c1659964e12ad1e37c07a816749 (diff)
downloadgtk+-04fcb1f17f58450fd628b514c36393b98079a912.tar.gz
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.
Diffstat (limited to 'gtk/gtkrevealer.c')
-rw-r--r--gtk/gtkrevealer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtkrevealer.c b/gtk/gtkrevealer.c
index 96f8952839..fbda87be39 100644
--- a/gtk/gtkrevealer.c
+++ b/gtk/gtkrevealer.c
@@ -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);
}