[gnome-chess] ChessClock pause/unpause were reversed



commit 313daeeca3d163f11bf659ffeaad3a1b628acc43
Author: Michael Catanzaro <mike catanzaro gmail com>
Date:   Sat Aug 3 08:20:09 2013 -0500

    ChessClock pause/unpause were reversed
    
    This went unnoticed because they were used reversed, due to the
    confusing parameter name in GnomeChess.set_paused_state.
    
    The previous commit was more prescient than I'd hoped....

 src/chess-clock.vala |    8 ++++----
 src/gnome-chess.vala |    4 ++--
 2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/chess-clock.vala b/src/chess-clock.vala
index a4f642f..1f3e5da 100644
--- a/src/chess-clock.vala
+++ b/src/chess-clock.vala
@@ -156,8 +156,8 @@ public class ChessClock : Object
         if (timer == null)
             return;
 
-        timer  continue ();
-        watch_timer ();
+        timer.stop ();
+        stop_checking_timer ();
     }
 
     public void unpause ()
@@ -165,8 +165,8 @@ public class ChessClock : Object
         if (timer == null)
             return;
 
-        timer.stop ();
-        stop_checking_timer ();
+        timer  continue ();
+        watch_timer ();
     }
 
     private void watch_timer ()
diff --git a/src/gnome-chess.vala b/src/gnome-chess.vala
index db10b8a..aad37a8 100644
--- a/src/gnome-chess.vala
+++ b/src/gnome-chess.vala
@@ -1246,9 +1246,9 @@ public class Application : Gtk.Application
         if (game.clock != null)
         {
             if (paused)
-                game.clock.unpause ();
-            else
                 game.clock.pause ();
+            else
+                game.clock.unpause ();
         }
     }
 


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