[gtk+/wip/baedert/drawing: 105/348] revealer: Don't add a clip node for CROSSFADE transitions



commit 1811dce8a03a6be3dd8690f265068d1b30e250f0
Author: Timm Bäder <mail baedert org>
Date:   Fri May 5 18:41:30 2017 +0200

    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.

 gtk/gtkrevealer.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkrevealer.c b/gtk/gtkrevealer.c
index 96f8952..fbda87b 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);
     }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]