GNOME Bugzilla – Bug 741119
Pause seems to be broken
Last modified: 2014-12-17 00:51:28 UTC
Pause the game and resume. Timer is still on hold. This assert failure is seen in terminal: (gnome-chess:11387): GLib-CRITICAL **: g_source_remove: assertion 'tag > 0' failed
Created attachment 292204 [details] [review] Fix the timer pause functionality This patch fixes Bug 721722 - Game ended due to time, but 1s is left on timer Bug 740988 - Timer is dead in a scenario Bug 741119 - Pause seems to be broken I think removing timer_expired_cb() is the right thing to do. But lets push this in for the upcoming release in a couple of weeks and take care of timer_expired_cb a little later. I've tested this patch about 10-15 times and the functionality seems to work just fine.
Created attachment 292443 [details] [review] Fix the timer pause functionality + remove timer_expired_cb This patch doesn't use timer_expired_cb() like the previous patch I submitted. I've tested 1. pause - un_pause - pause 2. Resign - Resign 3. Resign - Keep Playing