[eog] Fix slideshow display with invalid timer values



commit ec87c9b2919995503122b966c900de8156d10e32
Author: Josh Lee <jleedev gmail com>
Date:   Thu Oct 8 13:28:45 2009 +0200

    Fix slideshow display with invalid timer values
    
    Timer values smaller than 1 (only settable by hand in GConf) should stop
    the automatic image switching. This fixes broken image view in those
    cases. Fixes bgo#597754.

 src/eog-window.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/eog-window.c b/src/eog-window.c
index 3ab58e8..64f7bc2 100644
--- a/src/eog-window.c
+++ b/src/eog-window.c
@@ -1930,6 +1930,9 @@ slideshow_set_timeout (EogWindow *window)
 
 	slideshow_clear_timeout (window);
 
+	if (window->priv->slideshow_switch_timeout <= 0)
+		return;
+
 	source = g_timeout_source_new (window->priv->slideshow_switch_timeout * 1000);
 	g_source_set_callback (source, slideshow_switch_cb, window, NULL);
 



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