+2008-01-04 Carlos Garnacho <carlosg@gnome.org>
+
+ * shell/ev-transition-animation.c (ev_transition_animation_fade)
+ (ev_transition_animation_paint): Implement "fade" effect.
+
2008-01-04 Carlos Garnacho <carlosg@gnome.org>
* shell/ev-transition-animation.c (ev_transition_animation_uncover)
}
}
+static void
+ev_transition_animation_fade (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->origin_surface, 0, 0, 0, page_area);
+ paint_surface (cr, priv->dest_surface, 0, 0, progress, page_area);
+}
+
void
ev_transition_animation_paint (EvTransitionAnimation *animation,
cairo_t *cr,
case EV_TRANSITION_EFFECT_UNCOVER:
ev_transition_animation_uncover (cr, animation, priv->effect, progress, page_area);
break;
+ case EV_TRANSITION_EFFECT_FADE:
+ ev_transition_animation_fade (cr, animation, priv->effect, progress, page_area);
+ break;
default: {
GEnumValue *enum_value;