[gnome-chess] Show pause button only in timed games
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-chess] Show pause button only in timed games
- Date: Sun, 16 Feb 2014 22:49:49 +0000 (UTC)
commit c1b551dc0bf4b633f1ddf1a81511646c1e872251
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Sun Feb 16 16:38:47 2014 -0600
Show pause button only in timed games
src/gnome-chess.vala | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/gnome-chess.vala b/src/gnome-chess.vala
index 6236860..b765cc6 100644
--- a/src/gnome-chess.vala
+++ b/src/gnome-chess.vala
@@ -1087,6 +1087,11 @@ public class Application : Gtk.Application
private void update_pause_resume_button ()
{
+ if (game != null && game.clock == null)
+ pause_resume_button.hide ();
+ else
+ pause_resume_button.show ();
+
if (game != null && game.is_paused)
{
pause_resume_button.image = new Gtk.Image.from_icon_name ("media-playback-start-symbolic",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]