Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/ev-transition-animation.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/ev-transition-animation.c')
-rw-r--r--shell/ev-transition-animation.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/shell/ev-transition-animation.c b/shell/ev-transition-animation.c
index 028a36c..196d0e1 100644
--- a/shell/ev-transition-animation.c
+++ b/shell/ev-transition-animation.c
@@ -424,6 +424,21 @@ ev_transition_animation_wipe (cairo_t *cr,
paint_surface (cr, priv->dest_surface, 0, 0, 0, page_area);
}
+static void
+ev_transition_animation_dissolve (cairo_t *cr,
+ EvTransitionAnimation *animation,
+ EvTransitionEffect *effect,
+ gdouble progress,
+ GdkRectangle page_area)
+{
+ EvTransitionAnimationPriv *priv;
+
+ priv = EV_TRANSITION_ANIMATION_GET_PRIVATE (animation);
+
+ paint_surface (cr, priv->dest_surface, 0, 0, 0, page_area);
+ paint_surface (cr, priv->origin_surface, 0, 0, 1 - progress, page_area);
+}
+
void
ev_transition_animation_paint (EvTransitionAnimation *animation,
cairo_t *cr,
@@ -462,6 +477,9 @@ ev_transition_animation_paint (EvTransitionAnimation *animation,
case EV_TRANSITION_EFFECT_WIPE:
ev_transition_animation_wipe (cr, animation, priv->effect, progress, page_area);
break;
+ case EV_TRANSITION_EFFECT_DISSOLVE:
+ ev_transition_animation_dissolve (cr, animation, priv->effect, progress, page_area);
+ break;
default: {
GEnumValue *enum_value;