Hello community, here is the log from the commit of package gnome-chess for openSUSE:Factory checked in at 2013-10-15 10:40:41 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/gnome-chess (Old) and /work/SRC/openSUSE:Factory/.gnome-chess.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "gnome-chess" Changes: -------- --- /work/SRC/openSUSE:Factory/gnome-chess/gnome-chess.changes 2013-10-14 14:27:18.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.gnome-chess.new/gnome-chess.changes 2013-10-15 10:40:42.000000000 +0200 @@ -1,0 +2,8 @@ +Mon Oct 14 07:27:31 UTC 2013 - dims...@opensuse.org + +- Update to version 3.10.1.1: + + Fix regression causing "Something has gone wrong!" message on + checkmate. + + Fix regression causing every opened PGN to be deleted. + +------------------------------------------------------------------- Old: ---- gnome-chess-3.10.1.tar.xz New: ---- gnome-chess-3.10.1.1.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ gnome-chess.spec ++++++ --- /var/tmp/diff_new_pack.Lkvsiv/_old 2013-10-15 10:40:43.000000000 +0200 +++ /var/tmp/diff_new_pack.Lkvsiv/_new 2013-10-15 10:40:43.000000000 +0200 @@ -17,7 +17,7 @@ Name: gnome-chess -Version: 3.10.1 +Version: 3.10.1.1 Release: 0 Summary: Chess Game for GNOME License: GPL-2.0+ ++++++ gnome-chess-3.10.1.tar.xz -> gnome-chess-3.10.1.1.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gnome-chess-3.10.1/NEWS new/gnome-chess-3.10.1.1/NEWS --- old/gnome-chess-3.10.1/NEWS 2013-10-12 13:42:32.000000000 +0200 +++ new/gnome-chess-3.10.1.1/NEWS 2013-10-14 01:53:07.000000000 +0200 @@ -1,4 +1,10 @@ -3.10.0 - October 12, 2013 +3.10.1.1 - October 13, 2013 +=========================== + +* Fix regression causing "Something has gone wrong!" message on checkmate. +* Fix regression causing every opened PGN to be deleted. + +3.10.1 - October 12, 2013 =========================== * Updated translations diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gnome-chess-3.10.1/configure new/gnome-chess-3.10.1.1/configure --- old/gnome-chess-3.10.1/configure 2013-10-12 13:43:20.000000000 +0200 +++ new/gnome-chess-3.10.1.1/configure 2013-10-14 01:53:52.000000000 +0200 @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.69 for gnome-chess 3.10.1. +# Generated by GNU Autoconf 2.69 for gnome-chess 3.10.1.1. # # # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. @@ -636,8 +636,8 @@ # Identity of this package. PACKAGE_NAME='gnome-chess' PACKAGE_TARNAME='gnome-chess' -PACKAGE_VERSION='3.10.1' -PACKAGE_STRING='gnome-chess 3.10.1' +PACKAGE_VERSION='3.10.1.1' +PACKAGE_STRING='gnome-chess 3.10.1.1' PACKAGE_BUGREPORT='' PACKAGE_URL='' @@ -1353,7 +1353,7 @@ # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures gnome-chess 3.10.1 to adapt to many kinds of systems. +\`configure' configures gnome-chess 3.10.1.1 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1419,7 +1419,7 @@ if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of gnome-chess 3.10.1:";; + short | recursive ) echo "Configuration of gnome-chess 3.10.1.1:";; esac cat <<\_ACEOF @@ -1533,7 +1533,7 @@ test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -gnome-chess configure 3.10.1 +gnome-chess configure 3.10.1.1 generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. @@ -1701,7 +1701,7 @@ This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by gnome-chess $as_me 3.10.1, which was +It was created by gnome-chess $as_me 3.10.1.1, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ @@ -2564,7 +2564,7 @@ # Define the identity of the package. PACKAGE='gnome-chess' - VERSION='3.10.1' + VERSION='3.10.1.1' cat >>confdefs.h <<_ACEOF @@ -5840,7 +5840,7 @@ # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by gnome-chess $as_me 3.10.1, which was +This file was extended by gnome-chess $as_me 3.10.1.1, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -5897,7 +5897,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ -gnome-chess config.status 3.10.1 +gnome-chess config.status 3.10.1.1 configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gnome-chess-3.10.1/configure.ac new/gnome-chess-3.10.1.1/configure.ac --- old/gnome-chess-3.10.1/configure.ac 2013-10-12 13:42:50.000000000 +0200 +++ new/gnome-chess-3.10.1.1/configure.ac 2013-10-14 01:53:07.000000000 +0200 @@ -1,5 +1,5 @@ AC_PREREQ([2.63]) -AC_INIT([gnome-chess],[3.10.1]) +AC_INIT([gnome-chess],[3.10.1.1]) AM_INIT_AUTOMAKE([1.11 no-dist-gzip dist-xz foreign]) AC_CONFIG_SRCDIR([src/gnome-chess.vala]) AM_SILENT_RULES([yes]) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gnome-chess-3.10.1/src/3ds.c new/gnome-chess-3.10.1.1/src/3ds.c --- old/gnome-chess-3.10.1/src/3ds.c 2013-10-05 16:12:46.000000000 +0200 +++ new/gnome-chess-3.10.1.1/src/3ds.c 2013-10-13 19:20:52.000000000 +0200 @@ -1,4 +1,4 @@ -/* 3ds.c generated by valac 0.22.0.6-e3cc, the Vala compiler +/* 3ds.c generated by valac 0.22.0.22-b05f, the Vala compiler * generated from 3ds.vala, do not modify */ /* diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gnome-chess-3.10.1/src/ai-profile.c new/gnome-chess-3.10.1.1/src/ai-profile.c --- old/gnome-chess-3.10.1/src/ai-profile.c 2013-10-05 16:12:46.000000000 +0200 +++ new/gnome-chess-3.10.1.1/src/ai-profile.c 2013-10-13 19:20:53.000000000 +0200 @@ -1,4 +1,4 @@ -/* ai-profile.c generated by valac 0.22.0.6-e3cc, the Vala compiler +/* ai-profile.c generated by valac 0.22.0.22-b05f, the Vala compiler * generated from ai-profile.vala, do not modify */ /* diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gnome-chess-3.10.1/src/chess-bitboard.c new/gnome-chess-3.10.1.1/src/chess-bitboard.c --- old/gnome-chess-3.10.1/src/chess-bitboard.c 2013-10-05 16:12:45.000000000 +0200 +++ new/gnome-chess-3.10.1.1/src/chess-bitboard.c 2013-10-13 19:20:51.000000000 +0200 @@ -1,4 +1,4 @@ -/* chess-bitboard.c generated by valac 0.22.0.6-e3cc, the Vala compiler +/* chess-bitboard.c generated by valac 0.22.0.22-b05f, the Vala compiler * generated from chess-bitboard.vala, do not modify */ /* diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gnome-chess-3.10.1/src/chess-clock.c new/gnome-chess-3.10.1.1/src/chess-clock.c --- old/gnome-chess-3.10.1/src/chess-clock.c 2013-10-05 16:12:45.000000000 +0200 +++ new/gnome-chess-3.10.1.1/src/chess-clock.c 2013-10-13 19:20:51.000000000 +0200 @@ -1,4 +1,4 @@ -/* chess-clock.c generated by valac 0.22.0.6-e3cc, the Vala compiler +/* chess-clock.c generated by valac 0.22.0.22-b05f, the Vala compiler * generated from chess-clock.vala, do not modify */ /* diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gnome-chess-3.10.1/src/chess-engine-cecp.c new/gnome-chess-3.10.1.1/src/chess-engine-cecp.c --- old/gnome-chess-3.10.1/src/chess-engine-cecp.c 2013-10-05 16:12:46.000000000 +0200 +++ new/gnome-chess-3.10.1.1/src/chess-engine-cecp.c 2013-10-14 01:53:58.000000000 +0200 @@ -1,4 +1,4 @@ -/* chess-engine-cecp.c generated by valac 0.22.0.6-e3cc, the Vala compiler +/* chess-engine-cecp.c generated by valac 0.22.0.22-b05f, the Vala compiler * generated from chess-engine-cecp.vala, do not modify */ /* @@ -410,13 +410,13 @@ gboolean _tmp61_ = FALSE; gboolean _tmp68_ = FALSE; gboolean _tmp75_ = FALSE; + gchar* _tmp96_ = NULL; + gint _tmp96__length1 = 0; + gint _tmp97_ = 0; gchar* _tmp98_ = NULL; gint _tmp98__length1 = 0; - gint _tmp99_ = 0; - gchar* _tmp100_ = NULL; - gint _tmp100__length1 = 0; - gchar* _tmp101_ = NULL; - gint _tmp101__length1 = 0; + gchar* _tmp99_ = NULL; + gint _tmp99__length1 = 0; { gboolean _tmp16_ = FALSE; offset = 0; @@ -600,93 +600,89 @@ if (_tmp75_) { g_signal_emit_by_name ((ChessEngine*) self, "resigned"); } else { - gboolean _tmp76_ = FALSE; + const gchar* _tmp76_ = NULL; gboolean _tmp77_ = FALSE; - const gchar* _tmp78_ = NULL; - gboolean _tmp79_ = FALSE; - gboolean _tmp82_ = FALSE; - gboolean _tmp85_ = FALSE; - _tmp78_ = line; - _tmp79_ = g_str_has_prefix (_tmp78_, "Illegal move: "); - if (_tmp79_) { - _tmp77_ = TRUE; - } else { - const gchar* _tmp80_ = NULL; - gboolean _tmp81_ = FALSE; - _tmp80_ = line; - _tmp81_ = g_str_has_prefix (_tmp80_, "1-0"); - _tmp77_ = _tmp81_; - } - _tmp82_ = _tmp77_; - if (_tmp82_) { - _tmp76_ = TRUE; - } else { - const gchar* _tmp83_ = NULL; - gboolean _tmp84_ = FALSE; - _tmp83_ = line; - _tmp84_ = g_str_has_prefix (_tmp83_, "0-1"); - _tmp76_ = _tmp84_; - } - _tmp85_ = _tmp76_; - if (_tmp85_) { + _tmp76_ = line; + _tmp77_ = g_str_has_prefix (_tmp76_, "Illegal move: "); + if (_tmp77_) { chess_engine_stop ((ChessEngine*) self); g_signal_emit_by_name ((ChessEngine*) self, "error"); } else { - gboolean _tmp86_ = FALSE; - gboolean _tmp87_ = FALSE; - gboolean _tmp88_ = FALSE; - const gchar* _tmp89_ = NULL; - gboolean _tmp91_ = FALSE; - gboolean _tmp93_ = FALSE; - gboolean _tmp96_ = FALSE; - _tmp89_ = line; - if (g_strcmp0 (_tmp89_, "game is a draw") == 0) { - _tmp88_ = TRUE; - } else { - const gchar* _tmp90_ = NULL; - _tmp90_ = line; - _tmp88_ = g_strcmp0 (_tmp90_, "draw") == 0; - } - _tmp91_ = _tmp88_; - if (_tmp91_) { - _tmp87_ = TRUE; + gboolean _tmp78_ = FALSE; + const gchar* _tmp79_ = NULL; + gboolean _tmp80_ = FALSE; + gboolean _tmp83_ = FALSE; + _tmp79_ = line; + _tmp80_ = g_str_has_prefix (_tmp79_, "1-0"); + if (_tmp80_) { + _tmp78_ = TRUE; } else { - const gchar* _tmp92_ = NULL; - _tmp92_ = line; - _tmp87_ = g_strcmp0 (_tmp92_, "Draw") == 0; + const gchar* _tmp81_ = NULL; + gboolean _tmp82_ = FALSE; + _tmp81_ = line; + _tmp82_ = g_str_has_prefix (_tmp81_, "0-1"); + _tmp78_ = _tmp82_; } - _tmp93_ = _tmp87_; - if (_tmp93_) { - _tmp86_ = TRUE; + _tmp83_ = _tmp78_; + if (_tmp83_) { + chess_engine_stop ((ChessEngine*) self); } else { - const gchar* _tmp94_ = NULL; - gboolean _tmp95_ = FALSE; - _tmp94_ = line; - _tmp95_ = g_str_has_prefix (_tmp94_, "1/2-1/2"); - _tmp86_ = _tmp95_; - } - _tmp96_ = _tmp86_; - if (_tmp96_) { - g_signal_emit_by_name ((ChessEngine*) self, "claim-draw"); - } else { - const gchar* _tmp97_ = NULL; - _tmp97_ = line; - if (g_strcmp0 (_tmp97_, "offer draw") == 0) { - g_signal_emit_by_name ((ChessEngine*) self, "offer-draw"); + gboolean _tmp84_ = FALSE; + gboolean _tmp85_ = FALSE; + gboolean _tmp86_ = FALSE; + const gchar* _tmp87_ = NULL; + gboolean _tmp89_ = FALSE; + gboolean _tmp91_ = FALSE; + gboolean _tmp94_ = FALSE; + _tmp87_ = line; + if (g_strcmp0 (_tmp87_, "game is a draw") == 0) { + _tmp86_ = TRUE; + } else { + const gchar* _tmp88_ = NULL; + _tmp88_ = line; + _tmp86_ = g_strcmp0 (_tmp88_, "draw") == 0; + } + _tmp89_ = _tmp86_; + if (_tmp89_) { + _tmp85_ = TRUE; + } else { + const gchar* _tmp90_ = NULL; + _tmp90_ = line; + _tmp85_ = g_strcmp0 (_tmp90_, "Draw") == 0; + } + _tmp91_ = _tmp85_; + if (_tmp91_) { + _tmp84_ = TRUE; + } else { + const gchar* _tmp92_ = NULL; + gboolean _tmp93_ = FALSE; + _tmp92_ = line; + _tmp93_ = g_str_has_prefix (_tmp92_, "1/2-1/2"); + _tmp84_ = _tmp93_; + } + _tmp94_ = _tmp84_; + if (_tmp94_) { + g_signal_emit_by_name ((ChessEngine*) self, "claim-draw"); + } else { + const gchar* _tmp95_ = NULL; + _tmp95_ = line; + if (g_strcmp0 (_tmp95_, "offer draw") == 0) { + g_signal_emit_by_name ((ChessEngine*) self, "offer-draw"); + } } } } } + _tmp96_ = self->priv->buffer; + _tmp96__length1 = self->priv->buffer_length1; + _tmp97_ = offset; _tmp98_ = self->priv->buffer; _tmp98__length1 = self->priv->buffer_length1; - _tmp99_ = offset; - _tmp100_ = self->priv->buffer; - _tmp100__length1 = self->priv->buffer_length1; - _tmp101_ = ((_tmp98_ + (_tmp99_ + 1)) != NULL) ? _vala_array_dup22 (_tmp98_ + (_tmp99_ + 1), _tmp100__length1 - (_tmp99_ + 1)) : ((gpointer) (_tmp98_ + (_tmp99_ + 1))); - _tmp101__length1 = _tmp100__length1 - (_tmp99_ + 1); + _tmp99_ = ((_tmp96_ + (_tmp97_ + 1)) != NULL) ? _vala_array_dup22 (_tmp96_ + (_tmp97_ + 1), _tmp98__length1 - (_tmp97_ + 1)) : ((gpointer) (_tmp96_ + (_tmp97_ + 1))); + _tmp99__length1 = _tmp98__length1 - (_tmp97_ + 1); self->priv->buffer = (g_free (self->priv->buffer), NULL); - self->priv->buffer = _tmp101_; - self->priv->buffer_length1 = _tmp101__length1; + self->priv->buffer = _tmp99_; + self->priv->buffer_length1 = _tmp99__length1; self->priv->_buffer_size_ = self->priv->buffer_length1; move_prefixes = (_vala_array_free (move_prefixes, move_prefixes_length1, (GDestroyNotify) g_free), NULL); _g_free0 (line); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gnome-chess-3.10.1/src/chess-engine-cecp.vala new/gnome-chess-3.10.1.1/src/chess-engine-cecp.vala --- old/gnome-chess-3.10.1/src/chess-engine-cecp.vala 2013-09-11 04:39:55.000000000 +0200 +++ new/gnome-chess-3.10.1.1/src/chess-engine-cecp.vala 2013-10-14 01:53:07.000000000 +0200 @@ -70,12 +70,16 @@ { resigned (); } - else if (line.has_prefix ("Illegal move: ") || - line.has_prefix ("1-0") || line.has_prefix ("0-1")) + else if (line.has_prefix ("Illegal move: ")) { stop (); error (); } + else if (line.has_prefix ("1-0") || line.has_prefix ("0-1")) + { + /* The engine thinks the game is over and will not play on. */ + stop (); + } else if (line == "game is a draw" || line == "draw" || line == "Draw" || diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gnome-chess-3.10.1/src/chess-engine-uci.c new/gnome-chess-3.10.1.1/src/chess-engine-uci.c --- old/gnome-chess-3.10.1/src/chess-engine-uci.c 2013-10-05 16:12:46.000000000 +0200 +++ new/gnome-chess-3.10.1.1/src/chess-engine-uci.c 2013-10-14 01:53:58.000000000 +0200 @@ -1,4 +1,4 @@ -/* chess-engine-uci.c generated by valac 0.22.0.6-e3cc, the Vala compiler +/* chess-engine-uci.c generated by valac 0.22.0.22-b05f, the Vala compiler * generated from chess-engine-uci.vala, do not modify */ /* diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gnome-chess-3.10.1/src/chess-engine.c new/gnome-chess-3.10.1.1/src/chess-engine.c --- old/gnome-chess-3.10.1/src/chess-engine.c 2013-10-05 16:12:46.000000000 +0200 +++ new/gnome-chess-3.10.1.1/src/chess-engine.c 2013-10-14 01:53:58.000000000 +0200 @@ -1,4 +1,4 @@ -/* chess-engine.c generated by valac 0.22.0.6-e3cc, the Vala compiler +/* chess-engine.c generated by valac 0.22.0.22-b05f, the Vala compiler * generated from chess-engine.vala, do not modify */ /* diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gnome-chess-3.10.1/src/chess-game.c new/gnome-chess-3.10.1.1/src/chess-game.c --- old/gnome-chess-3.10.1/src/chess-game.c 2013-10-05 16:12:45.000000000 +0200 +++ new/gnome-chess-3.10.1.1/src/chess-game.c 2013-10-13 19:42:16.000000000 +0200 @@ -1,4 +1,4 @@ -/* chess-game.c generated by valac 0.22.0.6-e3cc, the Vala compiler +/* chess-game.c generated by valac 0.22.0.22-b05f, the Vala compiler * generated from chess-game.vala, do not modify */ /* @@ -6202,20 +6202,25 @@ void chess_game_stop (ChessGame* self, ChessResult _result_, ChessRule rule) { - ChessResult _tmp0_ = 0; - ChessRule _tmp1_ = 0; - ChessClock* _tmp2_ = NULL; + gboolean _tmp0_ = FALSE; + ChessResult _tmp1_ = 0; + ChessRule _tmp2_ = 0; + ChessClock* _tmp3_ = NULL; g_return_if_fail (self != NULL); - _tmp0_ = _result_; - self->result = _tmp0_; - _tmp1_ = rule; - self->rule = _tmp1_; + _tmp0_ = self->is_started; + if (!_tmp0_) { + return; + } + _tmp1_ = _result_; + self->result = _tmp1_; + _tmp2_ = rule; + self->rule = _tmp2_; self->is_started = FALSE; - _tmp2_ = self->priv->_clock; - if (_tmp2_ != NULL) { - ChessClock* _tmp3_ = NULL; - _tmp3_ = self->priv->_clock; - chess_clock_stop (_tmp3_); + _tmp3_ = self->priv->_clock; + if (_tmp3_ != NULL) { + ChessClock* _tmp4_ = NULL; + _tmp4_ = self->priv->_clock; + chess_clock_stop (_tmp4_); } g_signal_emit_by_name (self, "ended"); } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gnome-chess-3.10.1/src/chess-game.vala new/gnome-chess-3.10.1.1/src/chess-game.vala --- old/gnome-chess-3.10.1/src/chess-game.vala 2013-09-11 04:39:55.000000000 +0200 +++ new/gnome-chess-3.10.1.1/src/chess-game.vala 2013-10-13 21:01:25.000000000 +0200 @@ -1542,6 +1542,8 @@ public void stop (ChessResult result, ChessRule rule) { + if (!is_started) + return; this.result = result; this.rule = rule; is_started = false; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gnome-chess-3.10.1/src/chess-pgn.c new/gnome-chess-3.10.1.1/src/chess-pgn.c --- old/gnome-chess-3.10.1/src/chess-pgn.c 2013-10-05 16:12:46.000000000 +0200 +++ new/gnome-chess-3.10.1.1/src/chess-pgn.c 2013-10-13 19:20:53.000000000 +0200 @@ -1,4 +1,4 @@ -/* chess-pgn.c generated by valac 0.22.0.6-e3cc, the Vala compiler +/* chess-pgn.c generated by valac 0.22.0.22-b05f, the Vala compiler * generated from chess-pgn.vala, do not modify */ /* diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gnome-chess-3.10.1/src/chess-scene.c new/gnome-chess-3.10.1.1/src/chess-scene.c --- old/gnome-chess-3.10.1/src/chess-scene.c 2013-10-05 16:12:46.000000000 +0200 +++ new/gnome-chess-3.10.1.1/src/chess-scene.c 2013-10-13 19:20:53.000000000 +0200 @@ -1,4 +1,4 @@ -/* chess-scene.c generated by valac 0.22.0.6-e3cc, the Vala compiler +/* chess-scene.c generated by valac 0.22.0.22-b05f, the Vala compiler * generated from chess-scene.vala, do not modify */ /* diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gnome-chess-3.10.1/src/chess-view-2d.c new/gnome-chess-3.10.1.1/src/chess-view-2d.c --- old/gnome-chess-3.10.1/src/chess-view-2d.c 2013-10-05 16:12:47.000000000 +0200 +++ new/gnome-chess-3.10.1.1/src/chess-view-2d.c 2013-10-13 19:20:53.000000000 +0200 @@ -1,4 +1,4 @@ -/* chess-view-2d.c generated by valac 0.22.0.6-e3cc, the Vala compiler +/* chess-view-2d.c generated by valac 0.22.0.22-b05f, the Vala compiler * generated from chess-view-2d.vala, do not modify */ /* diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gnome-chess-3.10.1/src/chess-view-3d.c new/gnome-chess-3.10.1.1/src/chess-view-3d.c --- old/gnome-chess-3.10.1/src/chess-view-3d.c 2013-10-05 16:12:47.000000000 +0200 +++ new/gnome-chess-3.10.1.1/src/chess-view-3d.c 2013-10-13 19:20:53.000000000 +0200 @@ -1,4 +1,4 @@ -/* chess-view-3d.c generated by valac 0.22.0.6-e3cc, the Vala compiler +/* chess-view-3d.c generated by valac 0.22.0.22-b05f, the Vala compiler * generated from chess-view-3d.vala, do not modify */ /* diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gnome-chess-3.10.1/src/chess-view.c new/gnome-chess-3.10.1.1/src/chess-view.c --- old/gnome-chess-3.10.1/src/chess-view.c 2013-10-05 16:12:46.000000000 +0200 +++ new/gnome-chess-3.10.1.1/src/chess-view.c 2013-10-13 19:20:53.000000000 +0200 @@ -1,4 +1,4 @@ -/* chess-view.c generated by valac 0.22.0.6-e3cc, the Vala compiler +/* chess-view.c generated by valac 0.22.0.22-b05f, the Vala compiler * generated from chess-view.vala, do not modify */ /* diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gnome-chess-3.10.1/src/gnome-chess.c new/gnome-chess-3.10.1.1/src/gnome-chess.c --- old/gnome-chess-3.10.1/src/gnome-chess.c 2013-10-05 16:12:46.000000000 +0200 +++ new/gnome-chess-3.10.1.1/src/gnome-chess.c 2013-10-14 01:44:10.000000000 +0200 @@ -1,4 +1,4 @@ -/* gnome-chess.c generated by valac 0.22.0.6-e3cc, the Vala compiler +/* gnome-chess.c generated by valac 0.22.0.22-b05f, the Vala compiler * generated from gnome-chess.vala, do not modify */ /* @@ -700,6 +700,8 @@ gboolean chess_player_move (ChessPlayer* self, const gchar* move, gboolean apply); void chess_game_stop (ChessGame* self, ChessResult _result_, ChessRule rule); gboolean chess_player_resign (ChessPlayer* self); +static gboolean __lambda3_ (Application* self); +static gboolean ___lambda3__gsource_func (gpointer self); gboolean chess_player_claim_draw (ChessPlayer* self); void chess_engine_start_game (ChessEngine* self); void chess_engine_request_move (ChessEngine* self); @@ -1828,55 +1830,46 @@ g_return_if_fail (self != NULL); _tmp0_ = self->priv->game_needs_saving; if (!_tmp0_) { - GFile* _tmp1_ = NULL; - _tmp1_ = self->priv->game_file; - if (_tmp1_ != NULL) { - GFile* _tmp2_ = NULL; - gchar* _tmp3_ = NULL; - gchar* _tmp4_ = NULL; - _tmp2_ = self->priv->game_file; - _tmp3_ = g_file_get_path (_tmp2_); - _tmp4_ = _tmp3_; - g_remove (_tmp4_); - _g_free0 (_tmp4_); - } + const gchar* _tmp1_ = NULL; + _tmp1_ = self->priv->autosave_filename; + g_remove (_tmp1_); return; } { + gboolean _tmp2_ = FALSE; + gboolean _tmp3_ = FALSE; gboolean _tmp5_ = FALSE; - gboolean _tmp6_ = FALSE; - gboolean _tmp8_ = FALSE; - GFile* _tmp11_ = NULL; - gchar* _tmp12_ = NULL; - gchar* _tmp13_ = NULL; - PGNGame* _tmp14_ = NULL; - GFile* _tmp15_ = NULL; - _tmp6_ = self->priv->in_history; - if (!_tmp6_) { - _tmp5_ = TRUE; + GFile* _tmp8_ = NULL; + gchar* _tmp9_ = NULL; + gchar* _tmp10_ = NULL; + PGNGame* _tmp11_ = NULL; + GFile* _tmp12_ = NULL; + _tmp3_ = self->priv->in_history; + if (!_tmp3_) { + _tmp2_ = TRUE; } else { - GFile* _tmp7_ = NULL; - _tmp7_ = self->priv->game_file; - _tmp5_ = _tmp7_ == NULL; + GFile* _tmp4_ = NULL; + _tmp4_ = self->priv->game_file; + _tmp2_ = _tmp4_ == NULL; } - _tmp8_ = _tmp5_; - if (_tmp8_) { - const gchar* _tmp9_ = NULL; - GFile* _tmp10_ = NULL; - _tmp9_ = self->priv->autosave_filename; - _tmp10_ = g_file_new_for_path (_tmp9_); + _tmp5_ = _tmp2_; + if (_tmp5_) { + const gchar* _tmp6_ = NULL; + GFile* _tmp7_ = NULL; + _tmp6_ = self->priv->autosave_filename; + _tmp7_ = g_file_new_for_path (_tmp6_); _g_object_unref0 (self->priv->game_file); - self->priv->game_file = _tmp10_; + self->priv->game_file = _tmp7_; } - _tmp11_ = self->priv->game_file; - _tmp12_ = g_file_get_path (_tmp11_); - _tmp13_ = _tmp12_; - g_debug ("gnome-chess.vala:363: Writing current game to %s", _tmp13_); - _g_free0 (_tmp13_); + _tmp8_ = self->priv->game_file; + _tmp9_ = g_file_get_path (_tmp8_); + _tmp10_ = _tmp9_; + g_debug ("gnome-chess.vala:362: Writing current game to %s", _tmp10_); + _g_free0 (_tmp10_); application_update_pgn_time_remaining (self); - _tmp14_ = self->priv->pgn_game; - _tmp15_ = self->priv->game_file; - pgn_game_write (_tmp14_, _tmp15_, &_inner_error_); + _tmp11_ = self->priv->pgn_game; + _tmp12_ = self->priv->game_file; + pgn_game_write (_tmp11_, _tmp12_, &_inner_error_); if (_inner_error_ != NULL) { goto __catch5_g_error; } @@ -1885,13 +1878,13 @@ __catch5_g_error: { GError* e = NULL; - GError* _tmp16_ = NULL; - const gchar* _tmp17_ = NULL; + GError* _tmp13_ = NULL; + const gchar* _tmp14_ = NULL; e = _inner_error_; _inner_error_ = NULL; - _tmp16_ = e; - _tmp17_ = _tmp16_->message; - g_warning ("gnome-chess.vala:369: Failed to autosave: %s", _tmp17_); + _tmp13_ = e; + _tmp14_ = _tmp13_->message; + g_warning ("gnome-chess.vala:368: Failed to autosave: %s", _tmp14_); _g_error_free0 (e); } __finally5: @@ -2386,7 +2379,7 @@ _g_free0 (fen); fen = _tmp49_; } else { - g_warning ("gnome-chess.vala:464: Chess game has SetUp tag but no FEN tag"); + g_warning ("gnome-chess.vala:463: Chess game has SetUp tag but no FEN tag"); } } _tmp50_ = fen; @@ -3022,7 +3015,7 @@ gconstpointer _tmp16_ = NULL; AIProfile* _tmp17_ = NULL; _tmp13_ = name; - g_warning ("gnome-chess.vala:605: Unknown AI profile %s", _tmp13_); + g_warning ("gnome-chess.vala:604: Unknown AI profile %s", _tmp13_); _tmp14_ = self->priv->ai_profiles; if (_tmp14_ == NULL) { result = NULL; @@ -3278,7 +3271,7 @@ _tmp78_ = profile; _tmp79_ = ai_profile_get_protocol (_tmp78_); _tmp80_ = _tmp79_; - g_warning ("gnome-chess.vala:643: Unknown AI protocol %s", _tmp80_); + g_warning ("gnome-chess.vala:642: Unknown AI protocol %s", _tmp80_); result = NULL; args = (_vala_array_free (args, args_length1, (GDestroyNotify) g_free), NULL); uci_go_options = (_vala_array_free (uci_go_options, uci_go_options_length1, (GDestroyNotify) g_free), NULL); @@ -3350,12 +3343,27 @@ } -static void application_engine_stopped_cb (Application* self, ChessEngine* engine) { +static gboolean __lambda3_ (Application* self) { + gboolean result = FALSE; ChessGame* _tmp0_ = NULL; - g_return_if_fail (self != NULL); - g_return_if_fail (engine != NULL); _tmp0_ = self->priv->game; chess_game_stop (_tmp0_, CHESS_RESULT_BUG, CHESS_RULE_BUG); + result = FALSE; + return result; +} + + +static gboolean ___lambda3__gsource_func (gpointer self) { + gboolean result; + result = __lambda3_ (self); + return result; +} + + +static void application_engine_stopped_cb (Application* self, ChessEngine* engine) { + g_return_if_fail (self != NULL); + g_return_if_fail (engine != NULL); + g_timeout_add_seconds_full (G_PRIORITY_DEFAULT, (guint) 2, ___lambda3__gsource_func, g_object_ref (self), g_object_unref); } @@ -5630,7 +5638,7 @@ _inner_error_ = NULL; _tmp6_ = e; _tmp7_ = _tmp6_->message; - g_warning ("gnome-chess.vala:1477: Could not load preferences UI: %s", _tmp7_); + g_warning ("gnome-chess.vala:1487: Could not load preferences UI: %s", _tmp7_); _g_error_free0 (e); } __finally6: @@ -6678,7 +6686,7 @@ _inner_error_ = NULL; _tmp3_ = e; _tmp4_ = _tmp3_->message; - g_warning ("gnome-chess.vala:1803: Unable to open help: %s", _tmp4_); + g_warning ("gnome-chess.vala:1813: Unable to open help: %s", _tmp4_); _g_error_free0 (e); } __finally7: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gnome-chess-3.10.1/src/gnome-chess.vala new/gnome-chess-3.10.1.1/src/gnome-chess.vala --- old/gnome-chess-3.10.1/src/gnome-chess.vala 2013-09-11 04:39:55.000000000 +0200 +++ new/gnome-chess-3.10.1.1/src/gnome-chess.vala 2013-10-14 01:47:38.000000000 +0200 @@ -350,8 +350,7 @@ /* Don't autosave if no moves (e.g. they have been undone) or only the computer has moved */ if (!game_needs_saving) { - if (game_file != null) - FileUtils.remove (game_file.get_path ()); + FileUtils.remove (autosave_filename); return; } @@ -673,7 +672,18 @@ private void engine_stopped_cb (ChessEngine engine) { - game.stop (ChessResult.BUG, ChessRule.BUG); + /* + * Many engines close themselves immediately after the end of the game. + * So wait two seconds before displaying the unfortunate result. The + * game is likely to end naturally first. (And in the off chance that + * the game really is over but it takes more than two seconds for us to + * figure that out, something really HAS gone wrong.) + */ + Timeout.add_seconds (2, () => { + game.stop (ChessResult.BUG, ChessRule.BUG); + /* Disconnect from the mainloop */ + return false; + }); } private void engine_error_cb (ChessEngine engine) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gnome-chess-3.10.1/src/test-chess-game.c new/gnome-chess-3.10.1.1/src/test-chess-game.c --- old/gnome-chess-3.10.1/src/test-chess-game.c 2013-10-05 16:12:45.000000000 +0200 +++ new/gnome-chess-3.10.1.1/src/test-chess-game.c 2013-10-13 19:20:51.000000000 +0200 @@ -1,4 +1,4 @@ -/* test-chess-game.c generated by valac 0.22.0.6-e3cc, the Vala compiler +/* test-chess-game.c generated by valac 0.22.0.22-b05f, the Vala compiler * generated from test-chess-game.vala, do not modify */ /* -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org