[gcompris/gcomprixogoo] Fixes bug#619433 in the chess game, we no more display the turn at game end.



commit 4e771eb3c8295236afb01df6a531a6bd70e71b9a
Author: Bruno Coudoin <bruno coudoin free fr>
Date:   Mon Jul 12 00:11:35 2010 +0200

    Fixes bug#619433 in the chess game, we no more display the turn
    at game end.

 src/chess_computer-activity/chess.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/chess_computer-activity/chess.c b/src/chess_computer-activity/chess.c
index 27e02c4..4c2dcb4 100644
--- a/src/chess_computer-activity/chess.c
+++ b/src/chess_computer-activity/chess.c
@@ -1191,16 +1191,22 @@ engine_local_cb (GIOChannel *source,
     if (!strncmp ("0-1",pbuf,3))
       {
 	display_info(_("Black mates"));
+	g_object_set(turn_item, "text", "",
+		     NULL);
       }
 
     if (!strncmp ("1-0",pbuf,3))
       {
 	display_info(_("White mates"));
+	g_object_set(turn_item, "text", "",
+		     NULL);
       }
 
     if (!strncmp ("1/2-1/2",pbuf,7))
       {
 	display_info(_("Drawn game"));
+	g_object_set(turn_item, "text", "",
+		     NULL);
       }
 
     /* parse for feature */



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