[gnome-mines] Fixed jumping clock issue in timer.



commit 2facae8c64df52494ca0a1eb847d68e430f7f0ea
Author: Robert Roth <robert roth off gmail com>
Date:   Thu Oct 29 21:05:22 2015 +0200

    Fixed jumping clock issue in timer.
    
    To avoid too many timeouts, increased the clock timeout to 500 ms. Unfortunately an 1000 ms timeout 
doesn't work out, counting seems uneven on pause/resume.
    https://bugzilla.gnome.org/show_bug.cgi?id=756302

 src/minefield.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/minefield.vala b/src/minefield.vala
index d180214..f015983 100644
--- a/src/minefield.vala
+++ b/src/minefield.vala
@@ -374,7 +374,7 @@ public class Minefield : Object
         if (clock_timeout != 0)
             Source.remove (clock_timeout);
         clock_timeout = 0;
-        clock_timeout = Timeout.add (200, timeout_cb);
+        clock_timeout = Timeout.add (500, timeout_cb);
     }
 
     private void start_clock ()


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