[Xfce4-commits] <ristretto:master> Remove warning when timeout == 0

Stephan Arts noreply at xfce.org
Mon Aug 8 15:04:27 CEST 2011


Updating branch refs/heads/master
         to 19d396e2549baa3bc6e990678d2fd3586a5dc5a5 (commit)
       from 174be852ac13380735f4cd2cadbb9457c93ee224 (commit)

commit 19d396e2549baa3bc6e990678d2fd3586a5dc5a5
Author: Stephan Arts <stephan at xfce.org>
Date:   Sat Aug 6 23:20:33 2011 +0200

    Remove warning when timeout == 0

 src/image_viewer.c |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)

diff --git a/src/image_viewer.c b/src/image_viewer.c
index 8c01693..f311d45 100644
--- a/src/image_viewer.c
+++ b/src/image_viewer.c
@@ -1267,13 +1267,8 @@ cb_rstto_image_viewer_update_pixbuf (RsttoImageViewer *viewer)
 
         timeout = gdk_pixbuf_animation_iter_get_delay_time (viewer->priv->iter);
 
-        if (timeout != -1)
+        if (timeout > 0)
         {
-            if (timeout == 0)
-            {
-                g_warning("timeout == 0: defaulting to 40ms");
-                timeout = 40;
-            }
             viewer->priv->animation_timeout_id = g_timeout_add(timeout, (GSourceFunc)cb_rstto_image_viewer_update_pixbuf, viewer);
         }
 


More information about the Xfce4-commits mailing list