From f51872613abaaa42c716e2fe6a2e4695c529dc4b Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Fri, 29 Feb 2008 09:23:30 +0000 Subject: Added. Returns whether the animation has everything necessary to run. Do 2008-02-29 Carlos Garnacho * shell/ev-transition-animation.[ch] (ev_transition_animation_ready): Added. Returns whether the animation has everything necessary to run. * shell/ev-view.c (ev_view_expose_event): Do not assume the animation is ready just because it's been created. Fixes #519106. (draw_one_page): Do not show the "Loading..." text in presentation mode, there was a slim probability that this could happen. svn path=/trunk/; revision=2933 --- (limited to 'shell/ev-transition-animation.c') diff --git a/shell/ev-transition-animation.c b/shell/ev-transition-animation.c index 5bea280..148b4c7 100644 --- a/shell/ev-transition-animation.c +++ b/shell/ev-transition-animation.c @@ -668,3 +668,15 @@ ev_transition_animation_set_dest_surface (EvTransitionAnimation *animation, if (priv->origin_surface && priv->dest_surface) ev_timeline_start (EV_TIMELINE (animation)); } + +gboolean +ev_transition_animation_ready (EvTransitionAnimation *animation) +{ + EvTransitionAnimationPriv *priv; + + g_return_val_if_fail (EV_IS_TRANSITION_ANIMATION (animation), FALSE); + + priv = EV_TRANSITION_ANIMATION_GET_PRIVATE (animation); + + return (priv->origin_surface && priv->dest_surface); +} -- cgit v0.9.1