Hello community, here is the log from the commit of package gnome-chess for openSUSE:Factory checked in at 2015-05-11 19:39:34 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 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 2015-04-23 07:57:13.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.gnome-chess.new/gnome-chess.changes 2015-05-11 19:49:29.000000000 +0200 @@ -1,0 +2,6 @@ +Sun May 10 10:30:17 UTC 2015 - [email protected] + +- Update to version 3.16.2: + + icon: provide a symbolic variant of the app icon. + +------------------------------------------------------------------- Old: ---- gnome-chess-3.16.1.tar.xz New: ---- gnome-chess-3.16.2.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ gnome-chess.spec ++++++ --- /var/tmp/diff_new_pack.MRWVwK/_old 2015-05-11 19:49:30.000000000 +0200 +++ /var/tmp/diff_new_pack.MRWVwK/_new 2015-05-11 19:49:30.000000000 +0200 @@ -17,7 +17,7 @@ Name: gnome-chess -Version: 3.16.1 +Version: 3.16.2 Release: 0 Summary: Chess Game for GNOME License: GPL-2.0+ @@ -82,7 +82,6 @@ %doc COPYING %{_datadir}/help/C/%{name}/ %{_datadir}/icons/hicolor/ -%{_datadir}/icons/HighContrast %{_datadir}/%{name}/ %{_bindir}/%{name} %dir %{_datadir}/appdata ++++++ gnome-chess-3.16.1.tar.xz -> gnome-chess-3.16.2.tar.xz ++++++ ++++ 1970 lines of diff (skipped) ++++ retrying with extended exclude list diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/gnome-chess-3.16.1/NEWS new/gnome-chess-3.16.2/NEWS --- old/gnome-chess-3.16.1/NEWS 2015-04-13 09:59:13.000000000 +0200 +++ new/gnome-chess-3.16.2/NEWS 2015-05-08 19:50:53.000000000 +0200 @@ -1,3 +1,8 @@ +3.16.2 - May 8, 2015 +==================== + +* icon: provice a symbolic variant of the app icon (Jakub Steiner) + 3.16.1 - April 13, 2015 ======================= diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/gnome-chess-3.16.1/configure.ac new/gnome-chess-3.16.2/configure.ac --- old/gnome-chess-3.16.1/configure.ac 2015-04-13 11:31:56.000000000 +0200 +++ new/gnome-chess-3.16.2/configure.ac 2015-05-08 19:50:53.000000000 +0200 @@ -1,5 +1,5 @@ AC_PREREQ([2.63]) -AC_INIT([GNOME Chess], [3.16.1], [https://bugzilla.gnome.org/], +AC_INIT([GNOME Chess], [3.16.2], [https://bugzilla.gnome.org/], [gnome-chess], [https://wiki.gnome.org/Apps/Chess]) AC_CONFIG_MACRO_DIR([m4]) @@ -81,7 +81,6 @@ data/Makefile data/icons/Makefile data/icons/hicolor/Makefile -data/icons/HighContrast/Makefile data/pieces/Makefile data/pieces/fancy/Makefile data/pieces/simple/Makefile diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/gnome-chess-3.16.1/data/icons/HighContrast/Makefile.am new/gnome-chess-3.16.2/data/icons/HighContrast/Makefile.am --- old/gnome-chess-3.16.1/data/icons/HighContrast/Makefile.am 2015-04-03 17:40:00.000000000 +0200 +++ new/gnome-chess-3.16.2/data/icons/HighContrast/Makefile.am 1970-01-01 01:00:00.000000000 +0100 @@ -1,5 +0,0 @@ -iconscalabledir=$(datadir)/icons/HighContrast/scalable/apps - -dist_iconscalable_DATA = gnome-chess.svg - --include $(top_srcdir)/git.mk diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/gnome-chess-3.16.1/data/icons/HighContrast/gnome-chess.svg new/gnome-chess-3.16.2/data/icons/HighContrast/gnome-chess.svg --- old/gnome-chess-3.16.1/data/icons/HighContrast/gnome-chess.svg 2015-04-03 17:40:00.000000000 +0200 +++ new/gnome-chess-3.16.2/data/icons/HighContrast/gnome-chess.svg 1970-01-01 01:00:00.000000000 +0100 @@ -1,130 +0,0 @@ -<?xml version="1.0" encoding="UTF-8" standalone="no"?> -<!-- Created with Inkscape (http://www.inkscape.org/) --> -<svg - xmlns:dc="http://purl.org/dc/elements/1.1/" - xmlns:cc="http://web.resource.org/cc/" - xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" - xmlns:svg="http://www.w3.org/2000/svg" - xmlns="http://www.w3.org/2000/svg" - xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" - xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" - width="48px" - height="48px" - id="svg6009" - sodipodi:version="0.32" - inkscape:version="0.45.1" - sodipodi:docname="glchess.svg" - sodipodi:docbase="/home/luca/Scrivania/hc" - inkscape:output_extension="org.inkscape.output.svg.inkscape"> - <defs - id="defs6011" /> - <sodipodi:namedview - id="base" - pagecolor="#dddddd" - bordercolor="#666666" - borderopacity="1.0" - inkscape:pageopacity="0.32941176" - inkscape:pageshadow="2" - inkscape:zoom="11.313708" - inkscape:cx="34.467534" - inkscape:cy="25.98242" - inkscape:current-layer="layer1" - showgrid="true" - inkscape:grid-bbox="true" - inkscape:document-units="px" - inkscape:window-width="1032" - inkscape:window-height="830" - inkscape:window-x="131" - inkscape:window-y="96" /> - <metadata - id="metadata6014"> - <rdf:RDF> - <cc:Work - rdf:about=""> - <dc:format>image/svg+xml</dc:format> - <dc:type - rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> - <dc:title>glChess Application Icon</dc:title> - <dc:date>September 2007</dc:date> - <dc:creator> - <cc:Agent> - <dc:title>Andreas Nilsson</dc:title> - </cc:Agent> - </dc:creator> - <dc:rights> - <cc:Agent> - <dc:title>Andreas Nilsson</dc:title> - </cc:Agent> - </dc:rights> - <dc:source>http://www.gnome.org</dc:source> - <dc:subject> - <rdf:Bag> - <rdf:li>glchess</rdf:li> - <rdf:li>chess</rdf:li> - <rdf:li>game</rdf:li> - <rdf:li>board</rdf:li> - </rdf:Bag> - </dc:subject> - <cc:license - rdf:resource="http://creativecommons.org/licenses/GPL/2.0/" /> - </cc:Work> - <cc:License - rdf:about="http://creativecommons.org/licenses/GPL/2.0/"> - <cc:permits - rdf:resource="http://web.resource.org/cc/Reproduction" /> - <cc:permits - rdf:resource="http://web.resource.org/cc/Distribution" /> - <cc:requires - rdf:resource="http://web.resource.org/cc/Notice" /> - <cc:permits - rdf:resource="http://web.resource.org/cc/DerivativeWorks" /> - <cc:requires - rdf:resource="http://web.resource.org/cc/ShareAlike" /> - <cc:requires - rdf:resource="http://web.resource.org/cc/SourceCode" /> - </cc:License> - </rdf:RDF> - </metadata> - <g - id="layer1" - inkscape:label="Layer 1" - inkscape:groupmode="layer"> - <rect - style="opacity:1;fill:#000000;fill-opacity:1;stroke:#ffffff;stroke-width:4;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" - id="rect6017" - width="44" - height="44.000004" - x="2" - y="2" /> - <rect - style="opacity:1;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:4;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" - id="rect6019" - width="32" - height="32" - x="8" - y="8" /> - <rect - style="opacity:1;fill:#000000;fill-opacity:1;stroke:none;stroke-width:4;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" - id="rect6025" - width="19.971073" - height="19.887812" - x="24" - y="4" /> - <rect - style="opacity:1;fill:#000000;fill-opacity:1;stroke:none;stroke-width:4;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" - id="rect6027" - width="19.971073" - height="19.988827" - x="4.0289268" - y="23.858374" /> - <rect - style="opacity:0.6;fill:none;fill-opacity:0.8093385;stroke:none;stroke-width:1;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.70588235" - id="rect2170" - width="48" - height="48" - x="0" - y="0" - rx="0" - ry="0" /> - </g> -</svg> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/gnome-chess-3.16.1/data/icons/Makefile.am new/gnome-chess-3.16.2/data/icons/Makefile.am --- old/gnome-chess-3.16.1/data/icons/Makefile.am 2015-04-03 17:40:00.000000000 +0200 +++ new/gnome-chess-3.16.2/data/icons/Makefile.am 2015-05-03 20:05:37.000000000 +0200 @@ -1,3 +1,3 @@ -SUBDIRS = hicolor HighContrast +SUBDIRS = hicolor -include $(top_srcdir)/git.mk Files old/gnome-chess-3.16.1/data/icons/hicolor/512x512/gnome-chess.png and new/gnome-chess-3.16.2/data/icons/hicolor/512x512/gnome-chess.png differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/gnome-chess-3.16.1/data/icons/hicolor/Makefile.am new/gnome-chess-3.16.2/data/icons/hicolor/Makefile.am --- old/gnome-chess-3.16.1/data/icons/hicolor/Makefile.am 2015-04-03 17:40:00.000000000 +0200 +++ new/gnome-chess-3.16.2/data/icons/hicolor/Makefile.am 2015-05-03 20:05:37.000000000 +0200 @@ -5,6 +5,7 @@ icon48dir=$(datadir)/icons/hicolor/48x48/apps icon256dir=$(datadir)/icons/hicolor/256x256/apps icon512dir=$(datadir)/icons/hicolor/512x512/apps +icon512dir=$(datadir)/icons/hicolor/scalable/apps icon16_DATA = 16x16/gnome-chess.png icon22_DATA = 22x22/gnome-chess.png @@ -13,7 +14,8 @@ icon48_DATA = 48x48/gnome-chess.png icon256_DATA = 256x256/gnome-chess.png icon512_DATA = 512x512/gnome-chess.png +icon512_DATA = scalable/gnome-chess-symbolic.svg -EXTRA_DIST = $(icon16_DATA) $(icon22_DATA) $(icon24_DATA) $(icon32_DATA) $(icon48_DATA) $(icon256_DATA) $(icon512_DATA) +EXTRA_DIST = $(icon16_DATA) $(icon22_DATA) $(icon24_DATA) $(icon32_DATA) $(icon48_DATA) $(icon256_DATA) $(icon512_DATA) $(iconscalable_DATA) -include $(top_srcdir)/git.mk diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/gnome-chess-3.16.1/data/icons/hicolor/scalable/gnome-chess-symbolic.svg new/gnome-chess-3.16.2/data/icons/hicolor/scalable/gnome-chess-symbolic.svg --- old/gnome-chess-3.16.1/data/icons/hicolor/scalable/gnome-chess-symbolic.svg 1970-01-01 01:00:00.000000000 +0100 +++ new/gnome-chess-3.16.2/data/icons/hicolor/scalable/gnome-chess-symbolic.svg 2015-05-03 20:05:37.000000000 +0200 @@ -0,0 +1,27 @@ +<?xml version='1.0' encoding='UTF-8' standalone='no'?> +<!-- Created with Inkscape (http://www.inkscape.org/) --> + +<svg xmlns:cc='http://creativecommons.org/ns#' xmlns:dc='http://purl.org/dc/elements/1.1/' sodipodi:docname='gnome-chess-symbolic.svg' height='16' id='svg7384' xmlns:inkscape='http://www.inkscape.org/namespaces/inkscape' xmlns:osb='http://www.openswatchbook.org/uri/2009/osb' xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#' xmlns:sodipodi='http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd' xmlns:svg='http://www.w3.org/2000/svg' version='1.1' inkscape:version='0.91 r13725' width='16' xmlns='http://www.w3.org/2000/svg'> + <metadata id='metadata90'> + <rdf:RDF> + <cc:Work rdf:about=''> + <dc:format>image/svg+xml</dc:format> + <dc:type rdf:resource='http://purl.org/dc/dcmitype/StillImage'/> + <dc:title>Gnome Symbolic Icon Theme</dc:title> + </cc:Work> + </rdf:RDF> + </metadata> + <sodipodi:namedview inkscape:bbox-paths='true' bordercolor='#666666' borderopacity='1' inkscape:current-layer='layer9' inkscape:cx='53.32354' inkscape:cy='29.355164' gridtolerance='10' inkscape:guide-bbox='true' guidetolerance='10' id='namedview88' inkscape:object-nodes='false' inkscape:object-paths='false' objecttolerance='10' pagecolor='#555753' inkscape:pageopacity='1' inkscape:pageshadow='2' showborder='false' showgrid='false' showguides='true' inkscape:snap-bbox='true' inkscape:snap-bbox-midpoints='false' inkscape:snap-global='true' inkscape:snap-grids='true' inkscape:snap-nodes='true' inkscape:snap-others='false' inkscape:snap-to-guides='true' inkscape:window-height='1376' inkscape:window-maximized='1' inkscape:window-width='2560' inkscape:window-x='0' inkscape:window-y='27' inkscape:zoom='11.313708'> + <inkscape:grid empspacing='2' enabled='true' id='grid4866' originx='-62.000016' originy='-321.99999' snapvisiblegridlinesonly='true' spacingx='1px' spacingy='1px' type='xygrid' visible='true'/> + </sodipodi:namedview> + <title id='title9167'>Gnome Symbolic Icon Theme</title> + <defs id='defs7386'> + <linearGradient id='linearGradient7212' osb:paint='solid'> + <stop id='stop7214' offset='0' style='stop-color:#000000;stop-opacity:1;'/> + </linearGradient> + </defs> + <g inkscape:groupmode='layer' id='layer9' inkscape:label='apps' style='display:inline' transform='translate(-303.00022,104.99999)'> + + <path inkscape:connector-curvature='0' d='m 317.99437,-104.01562 0.006,14.01562 -0.006,0 0,0.0215 -13.97266,0 0,-14.0371 z m -1.00391,1.00195 -6.01757,0 0,5.98633 -5.94727,0 0,6.04492 5.97461,0 0,-6.01758 5.99023,0 z' id='rect14955' sodipodi:nodetypes='cccccccccccccccc' style='color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;baseline-shift:baseline;text-anchor:start;white-space:normal;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;fill:#bebebe;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1.0023694;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;paint-order:normal;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate'/> + </g> +</svg> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/gnome-chess-3.16.1/tests/test-chess-game.c new/gnome-chess-3.16.2/tests/test-chess-game.c --- old/gnome-chess-3.16.1/tests/test-chess-game.c 2015-04-13 11:32:45.000000000 +0200 +++ new/gnome-chess-3.16.2/tests/test-chess-game.c 2015-05-05 18:05:32.000000000 +0200 @@ -1,4 +1,4 @@ -/* test-chess-game.c generated by valac 0.27.1.15-b1df0, the Vala compiler +/* test-chess-game.c generated by valac 0.26.1, the Vala compiler * generated from test-chess-game.vala, do not modify */ /* -*- Mode: vala; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- @@ -21,62 +21,62 @@ #include <gobject/gvaluecollector.h> -#define TYPE_GL_CHESS (gl_chess_get_type ()) -#define GL_CHESS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_GL_CHESS, GlChess)) -#define GL_CHESS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_GL_CHESS, GlChessClass)) -#define IS_GL_CHESS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_GL_CHESS)) -#define IS_GL_CHESS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_GL_CHESS)) -#define GL_CHESS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_GL_CHESS, GlChessClass)) - -typedef struct _GlChess GlChess; -typedef struct _GlChessClass GlChessClass; -typedef struct _GlChessPrivate GlChessPrivate; +#define TYPE_GNOME_CHESS (gnome_chess_get_type ()) +#define GNOME_CHESS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_GNOME_CHESS, GNOMEChess)) +#define GNOME_CHESS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_GNOME_CHESS, GNOMEChessClass)) +#define IS_GNOME_CHESS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_GNOME_CHESS)) +#define IS_GNOME_CHESS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_GNOME_CHESS)) +#define GNOME_CHESS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_GNOME_CHESS, GNOMEChessClass)) + +typedef struct _GNOMEChess GNOMEChess; +typedef struct _GNOMEChessClass GNOMEChessClass; +typedef struct _GNOMEChessPrivate GNOMEChessPrivate; #define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) #define _g_free0(var) (var = (g_free (var), NULL)) -typedef struct _ParamSpecGlChess ParamSpecGlChess; +typedef struct _ParamSpecGNOMEChess ParamSpecGNOMEChess; -struct _GlChess { +struct _GNOMEChess { GTypeInstance parent_instance; volatile int ref_count; - GlChessPrivate * priv; + GNOMEChessPrivate * priv; }; -struct _GlChessClass { +struct _GNOMEChessClass { GTypeClass parent_class; - void (*finalize) (GlChess *self); + void (*finalize) (GNOMEChess *self); }; -struct _ParamSpecGlChess { +struct _ParamSpecGNOMEChess { GParamSpec parent_instance; }; -static gpointer gl_chess_parent_class = NULL; -static gint gl_chess_test_count; -static gint gl_chess_test_count = 0; -static gint gl_chess_failure_count; -static gint gl_chess_failure_count = 0; - -gpointer gl_chess_ref (gpointer instance); -void gl_chess_unref (gpointer instance); -GParamSpec* param_spec_gl_chess (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags); -void value_set_gl_chess (GValue* value, gpointer v_object); -void value_take_gl_chess (GValue* value, gpointer v_object); -gpointer value_get_gl_chess (const GValue* value); -GType gl_chess_get_type (void) G_GNUC_CONST; +static gpointer gnome_chess_parent_class = NULL; +static gint gnome_chess_test_count; +static gint gnome_chess_test_count = 0; +static gint gnome_chess_failure_count; +static gint gnome_chess_failure_count = 0; + +gpointer gnome_chess_ref (gpointer instance); +void gnome_chess_unref (gpointer instance); +GParamSpec* param_spec_gnome_chess (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags); +void value_set_gnome_chess (GValue* value, gpointer v_object); +void value_take_gnome_chess (GValue* value, gpointer v_object); +gpointer value_get_gnome_chess (const GValue* value); +GType gnome_chess_get_type (void) G_GNUC_CONST; enum { - GL_CHESS_DUMMY_PROPERTY + GNOME_CHESS_DUMMY_PROPERTY }; -static void gl_chess_test_good_move (const gchar* fen, const gchar* move, const gchar* result_fen, ChessResult _result_, ChessRule rule, gboolean verify_san); +static void gnome_chess_test_good_move (const gchar* fen, const gchar* move, const gchar* result_fen, ChessResult _result_, ChessRule rule, gboolean verify_san); const gchar* chess_result_to_string (ChessResult self); -static void gl_chess_test_bad_move (const gchar* fen, const gchar* move); -gint gl_chess_main (gchar** args, int args_length1); -GlChess* gl_chess_new (void); -GlChess* gl_chess_construct (GType object_type); -static void gl_chess_finalize (GlChess* obj); +static void gnome_chess_test_bad_move (const gchar* fen, const gchar* move); +gint gnome_chess_main (gchar** args, int args_length1); +GNOMEChess* gnome_chess_new (void); +GNOMEChess* gnome_chess_construct (GType object_type); +static void gnome_chess_finalize (GNOMEChess* obj); -static void gl_chess_test_good_move (const gchar* fen, const gchar* move, const gchar* result_fen, ChessResult _result_, ChessRule rule, gboolean verify_san) { +static void gnome_chess_test_good_move (const gchar* fen, const gchar* move, const gchar* result_fen, ChessResult _result_, ChessRule rule, gboolean verify_san) { ChessState* state = NULL; const gchar* _tmp0_ = NULL; ChessState* _tmp1_ = NULL; @@ -109,8 +109,8 @@ _tmp0_ = fen; _tmp1_ = chess_state_new (_tmp0_); state = _tmp1_; - _tmp2_ = gl_chess_test_count; - gl_chess_test_count = _tmp2_ + 1; + _tmp2_ = gnome_chess_test_count; + gnome_chess_test_count = _tmp2_ + 1; _tmp3_ = state; _tmp4_ = move; _tmp5_ = chess_state_move (_tmp3_, _tmp4_, TRUE); @@ -121,12 +121,12 @@ const gchar* _tmp9_ = NULL; gint _tmp10_ = 0; _tmp6_ = stderr; - _tmp7_ = gl_chess_test_count; + _tmp7_ = gnome_chess_test_count; _tmp8_ = fen; _tmp9_ = move; fprintf (_tmp6_, "%d. FAIL %s + %s is an invalid move\n", _tmp7_, _tmp8_, _tmp9_); - _tmp10_ = gl_chess_failure_count; - gl_chess_failure_count = _tmp10_ + 1; + _tmp10_ = gnome_chess_failure_count; + gnome_chess_failure_count = _tmp10_ + 1; _g_object_unref0 (state); return; } @@ -147,7 +147,7 @@ const gchar* _tmp23_ = NULL; gint _tmp24_ = 0; _tmp16_ = stderr; - _tmp17_ = gl_chess_test_count; + _tmp17_ = gnome_chess_test_count; _tmp18_ = fen; _tmp19_ = move; _tmp20_ = state; @@ -156,8 +156,8 @@ _tmp23_ = result_fen; fprintf (_tmp16_, "%d. FAIL %s + %s has state %s not %s\n", _tmp17_, _tmp18_, _tmp19_, _tmp22_, _tmp23_); _g_free0 (_tmp22_); - _tmp24_ = gl_chess_failure_count; - gl_chess_failure_count = _tmp24_ + 1; + _tmp24_ = gnome_chess_failure_count; + gnome_chess_failure_count = _tmp24_ + 1; _g_object_unref0 (state); return; } @@ -189,7 +189,7 @@ gchar* _tmp39_ = NULL; gint _tmp40_ = 0; _tmp32_ = stderr; - _tmp33_ = gl_chess_test_count; + _tmp33_ = gnome_chess_test_count; _tmp34_ = fen; _tmp35_ = move; _tmp36_ = state; @@ -198,8 +198,8 @@ _tmp39_ = _tmp38_; fprintf (_tmp32_, "%d. FAIL %s + %s has SAN move %s\n", _tmp33_, _tmp34_, _tmp35_, _tmp39_); _g_free0 (_tmp39_); - _tmp40_ = gl_chess_failure_count; - gl_chess_failure_count = _tmp40_ + 1; + _tmp40_ = gnome_chess_failure_count; + gnome_chess_failure_count = _tmp40_ + 1; _g_object_unref0 (state); return; } @@ -229,7 +229,7 @@ GEnumValue* _tmp56_; gint _tmp57_ = 0; _tmp49_ = stderr; - _tmp50_ = gl_chess_test_count; + _tmp50_ = gnome_chess_test_count; _tmp51_ = fen; _tmp52_ = move; _tmp53_ = move_result; @@ -237,13 +237,13 @@ _tmp55_ = _result_; _tmp56_ = g_enum_get_value (g_type_class_ref (TYPE_CHESS_RESULT), _tmp55_); fprintf (_tmp49_, "%d. FAIL %s + %s has result %s not %s\n", _tmp50_, _tmp51_, _tmp52_, (_tmp54_ != NULL) ? _tmp54_->value_name : NULL, (_tmp56_ != NULL) ? _tmp56_->value_name : NULL); - _tmp57_ = gl_chess_failure_count; - gl_chess_failure_count = _tmp57_ + 1; + _tmp57_ = gnome_chess_failure_count; + gnome_chess_failure_count = _tmp57_ + 1; _g_object_unref0 (state); return; } _tmp58_ = stderr; - _tmp59_ = gl_chess_test_count; + _tmp59_ = gnome_chess_test_count; _tmp60_ = fen; _tmp61_ = move; fprintf (_tmp58_, "%d. PASS %s + %s is valid\n", _tmp59_, _tmp60_, _tmp61_); @@ -251,7 +251,7 @@ } -static void gl_chess_test_bad_move (const gchar* fen, const gchar* move) { +static void gnome_chess_test_bad_move (const gchar* fen, const gchar* move) { ChessState* state = NULL; const gchar* _tmp0_ = NULL; ChessState* _tmp1_ = NULL; @@ -268,8 +268,8 @@ _tmp0_ = fen; _tmp1_ = chess_state_new (_tmp0_); state = _tmp1_; - _tmp2_ = gl_chess_test_count; - gl_chess_test_count = _tmp2_ + 1; + _tmp2_ = gnome_chess_test_count; + gnome_chess_test_count = _tmp2_ + 1; _tmp3_ = state; _tmp4_ = move; _tmp5_ = chess_state_move (_tmp3_, _tmp4_, FALSE); @@ -280,17 +280,17 @@ const gchar* _tmp9_ = NULL; gint _tmp10_ = 0; _tmp6_ = stderr; - _tmp7_ = gl_chess_test_count; + _tmp7_ = gnome_chess_test_count; _tmp8_ = fen; _tmp9_ = move; fprintf (_tmp6_, "%d. FAIL %s + %s is valid\n", _tmp7_, _tmp8_, _tmp9_); - _tmp10_ = gl_chess_failure_count; - gl_chess_failure_count = _tmp10_ + 1; + _tmp10_ = gnome_chess_failure_count; + gnome_chess_failure_count = _tmp10_ + 1; _g_object_unref0 (state); return; } _tmp11_ = stderr; - _tmp12_ = gl_chess_test_count; + _tmp12_ = gnome_chess_test_count; _tmp13_ = fen; _tmp14_ = move; fprintf (_tmp11_, "%d. PASS %s + %s is invalid\n", _tmp12_, _tmp13_, _tmp14_); @@ -298,51 +298,51 @@ } -gint gl_chess_main (gchar** args, int args_length1) { +gint gnome_chess_main (gchar** args, int args_length1) { gint result = 0; FILE* _tmp0_ = NULL; gint _tmp1_ = 0; gint _tmp2_ = 0; gint _tmp3_ = 0; gint _tmp4_ = 0; - gl_chess_test_good_move ("8/8/8/8/8/8/P7/8 w - - 0 1", "a3", "8/8/8/8/8/P7/8/8 b - - 0 1", CHESS_RESULT_IN_PROGRESS, CHESS_RULE_CHECKMATE, FALSE); - gl_chess_test_good_move ("8/8/8/8/8/8/P7/8 w - - 0 1", "a4", "8/8/8/8/P7/8/8/8 b - a3 0 1", CHESS_RESULT_IN_PROGRESS, CHESS_RULE_CHECKMATE, FALSE); - gl_chess_test_bad_move ("8/8/8/8/8/P7/8/8 w - - 0 1", "a2a5"); - gl_chess_test_good_move ("8/P7/8/8/8/8/8/8 w - - 0 1", "a8=Q", "Q7/8/8/8/8/8/8/8 b - - 0 1", CHESS_RESULT_IN_PROGRESS, CHESS_RULE_CHECKMATE, FALSE); - gl_chess_test_good_move ("8/P7/8/8/8/8/8/8 w - - 0 1", "a7a8q", "Q7/8/8/8/8/8/8/8 b - - 0 1", CHESS_RESULT_IN_PROGRESS, CHESS_RULE_CHECKMATE, FALSE); - gl_chess_test_good_move ("8/P7/8/8/8/8/8/8 w - - 0 1", "a7a8N", "N7/8/8/8/8/8/8/8 b - - 0 1", CHESS_RESULT_IN_PROGRESS, CHESS_RULE_CHECKMATE, FALSE); - gl_chess_test_good_move ("8/8/8/pP6/8/8/8/8 w - a6 0 1", "bxa6", "8/8/P7/8/8/8/8/8 b - - 0 1", CHESS_RESULT_IN_PROGRESS, CHESS_RULE_CHECKMATE, FALSE); - gl_chess_test_bad_move ("8/8/8/pP6/8/8/8/8 w - - 0 1", "b5a6"); - gl_chess_test_good_move ("8/8/8/pQ6/8/8/8/8 w - a6 0 1", "Qa6", "8/8/Q7/p7/8/8/8/8 b - - 1 1", CHESS_RESULT_IN_PROGRESS, CHESS_RULE_CHECKMATE, FALSE); - gl_chess_test_bad_move ("8/8/8/pQ6/8/8/8/8 w - a6 0 1", "bxa6"); - gl_chess_test_good_move ("8/8/8/8/8/8/8/4K2R w K - 0 1", "O-O", "8/8/8/8/8/8/8/5RK1 b - - 1 1", CHESS_RESULT_IN_PROGRESS, CHESS_RULE_CHECKMATE, FALSE); - gl_chess_test_good_move ("8/8/8/8/8/8/8/R3K3 w Q - 0 1", "O-O-O", "8/8/8/8/8/8/8/2KR4 b - - 1 1", CHESS_RESULT_IN_PROGRESS, CHESS_RULE_CHECKMATE, FALSE); - gl_chess_test_bad_move ("8/8/8/8/8/8/8/4K2R w - - 0 1", "O-O"); - gl_chess_test_bad_move ("8/8/8/8/8/8/8/4K3 w K - 0 1", "O-O"); - gl_chess_test_bad_move ("8/8/8/8/8/8/8/5K2 w K - 0 1", "O-O"); - gl_chess_test_bad_move ("4r3/8/8/8/8/8/8/4K2R w K - 0 1", "O-O"); - gl_chess_test_bad_move ("5r2/8/8/8/8/8/8/4K2R w K - 0 1", "O-O"); - gl_chess_test_bad_move ("8/8/8/8/8/8/6p1/4K2R w K - 0 1", "O-O"); - gl_chess_test_bad_move ("8/8/8/8/8/8/4p3/R3K3 w Q - 0 1", "O-O-O"); - gl_chess_test_bad_move ("4r3/8/8/8/8/8/4R3/4K3 w - - 0 1", "e2f2"); - gl_chess_test_good_move ("k7/8/8/8/8/8/8/1R6 w - - 0 1", "Ra1+", "k7/8/8/8/8/8/8/R7 b - - 1 1", CHESS_RESULT_IN_PROGRESS, CHESS_RULE_CHECKMATE, FALSE); - gl_chess_test_good_move ("k7/8/8/8/8/8/1R6/1R6 w - - 0 1", "Ra1#", "k7/8/8/8/8/8/1R6/R7 b - - 1 1", CHESS_RESULT_WHITE_WON, CHESS_RULE_CHECKMATE, FALSE); - gl_chess_test_good_move ("k7/7r/8/8/8/8/1R6/1R6 w - - 0 1", "Ra1+", "k7/7r/8/8/8/8/1R6/R7 b - - 1 1", CHESS_RESULT_IN_PROGRESS, CHESS_RULE_CHECKMATE, FALSE); - gl_chess_test_good_move ("k7/8/7R/8/8/8/8/1R6 w - - 0 1", "Rh7", "k7/7R/8/8/8/8/8/1R6 b - - 1 1", CHESS_RESULT_DRAW, CHESS_RULE_STALEMATE, FALSE); - gl_chess_test_good_move ("k7/7p/7K/8/8/8/8/8 w - - 0 1", "Kxh7", "k7/7K/8/8/8/8/8/8 b - - 0 1", CHESS_RESULT_DRAW, CHESS_RULE_INSUFFICIENT_MATERIAL, FALSE); - gl_chess_test_good_move ("k7/7p/7K/8/8/8/8/7N w - - 0 1", "Kxh7", "k7/7K/8/8/8/8/8/7N b - - 0 1", CHESS_RESULT_DRAW, CHESS_RULE_INSUFFICIENT_MATERIAL, FALSE); - gl_chess_test_good_move ("k7/7p/7K/8/8/8/8/6Nn w - - 0 1", "Kxh7", "k7/7K/8/8/8/8/8/6Nn b - - 0 1", CHESS_RESULT_IN_PROGRESS, CHESS_RULE_CHECKMATE, FALSE); - gl_chess_test_good_move ("k7/7p/7K/8/8/8/8/6Nb w - - 0 1", "Kxh7", "k7/7K/8/8/8/8/8/6Nb b - - 0 1", CHESS_RESULT_IN_PROGRESS, CHESS_RULE_CHECKMATE, FALSE); - gl_chess_test_good_move ("k2b1b1b/6bp/7K/4B1B1/8/8/8/8 w - - 0 1", "Kxh7", "k2b1b1b/6bK/8/4B1B1/8/8/8/8 b - - 0 1", CHESS_RESULT_DRAW, CHESS_RULE_INSUFFICIENT_MATERIAL, FALSE); - gl_chess_test_good_move ("k2b1b1b/6bp/7K/5B1B/8/8/8/8 w - - 0 1", "Kxh7", "k2b1b1b/6bK/8/5B1B/8/8/8/8 b - - 0 1", CHESS_RESULT_IN_PROGRESS, CHESS_RULE_CHECKMATE, FALSE); - gl_chess_test_good_move ("k6b/6bp/7K/7B/8/8/8/8 w - - 0 1", "Kxh7", "k6b/6bK/8/7B/8/8/8/8 b - - 0 1", CHESS_RESULT_IN_PROGRESS, CHESS_RULE_CHECKMATE, FALSE); - gl_chess_test_good_move ("k2b1b1b/6bp/7K/6BB/8/8/8/8 w - - 0 1", "Kxh7", "k2b1b1b/6bK/8/6BB/8/8/8/8 b - - 0 1", CHESS_RESULT_IN_PROGRESS, CHESS_RULE_CHECKMATE, FALSE); + gnome_chess_test_good_move ("8/8/8/8/8/8/P7/8 w - - 0 1", "a3", "8/8/8/8/8/P7/8/8 b - - 0 1", CHESS_RESULT_IN_PROGRESS, CHESS_RULE_CHECKMATE, FALSE); + gnome_chess_test_good_move ("8/8/8/8/8/8/P7/8 w - - 0 1", "a4", "8/8/8/8/P7/8/8/8 b - a3 0 1", CHESS_RESULT_IN_PROGRESS, CHESS_RULE_CHECKMATE, FALSE); + gnome_chess_test_bad_move ("8/8/8/8/8/P7/8/8 w - - 0 1", "a2a5"); + gnome_chess_test_good_move ("8/P7/8/8/8/8/8/8 w - - 0 1", "a8=Q", "Q7/8/8/8/8/8/8/8 b - - 0 1", CHESS_RESULT_IN_PROGRESS, CHESS_RULE_CHECKMATE, FALSE); + gnome_chess_test_good_move ("8/P7/8/8/8/8/8/8 w - - 0 1", "a7a8q", "Q7/8/8/8/8/8/8/8 b - - 0 1", CHESS_RESULT_IN_PROGRESS, CHESS_RULE_CHECKMATE, FALSE); + gnome_chess_test_good_move ("8/P7/8/8/8/8/8/8 w - - 0 1", "a7a8N", "N7/8/8/8/8/8/8/8 b - - 0 1", CHESS_RESULT_IN_PROGRESS, CHESS_RULE_CHECKMATE, FALSE); + gnome_chess_test_good_move ("8/8/8/pP6/8/8/8/8 w - a6 0 1", "bxa6", "8/8/P7/8/8/8/8/8 b - - 0 1", CHESS_RESULT_IN_PROGRESS, CHESS_RULE_CHECKMATE, FALSE); + gnome_chess_test_bad_move ("8/8/8/pP6/8/8/8/8 w - - 0 1", "b5a6"); + gnome_chess_test_good_move ("8/8/8/pQ6/8/8/8/8 w - a6 0 1", "Qa6", "8/8/Q7/p7/8/8/8/8 b - - 1 1", CHESS_RESULT_IN_PROGRESS, CHESS_RULE_CHECKMATE, FALSE); + gnome_chess_test_bad_move ("8/8/8/pQ6/8/8/8/8 w - a6 0 1", "bxa6"); + gnome_chess_test_good_move ("8/8/8/8/8/8/8/4K2R w K - 0 1", "O-O", "8/8/8/8/8/8/8/5RK1 b - - 1 1", CHESS_RESULT_IN_PROGRESS, CHESS_RULE_CHECKMATE, FALSE); + gnome_chess_test_good_move ("8/8/8/8/8/8/8/R3K3 w Q - 0 1", "O-O-O", "8/8/8/8/8/8/8/2KR4 b - - 1 1", CHESS_RESULT_IN_PROGRESS, CHESS_RULE_CHECKMATE, FALSE); + gnome_chess_test_bad_move ("8/8/8/8/8/8/8/4K2R w - - 0 1", "O-O"); + gnome_chess_test_bad_move ("8/8/8/8/8/8/8/4K3 w K - 0 1", "O-O"); + gnome_chess_test_bad_move ("8/8/8/8/8/8/8/5K2 w K - 0 1", "O-O"); + gnome_chess_test_bad_move ("4r3/8/8/8/8/8/8/4K2R w K - 0 1", "O-O"); + gnome_chess_test_bad_move ("5r2/8/8/8/8/8/8/4K2R w K - 0 1", "O-O"); + gnome_chess_test_bad_move ("8/8/8/8/8/8/6p1/4K2R w K - 0 1", "O-O"); + gnome_chess_test_bad_move ("8/8/8/8/8/8/4p3/R3K3 w Q - 0 1", "O-O-O"); + gnome_chess_test_bad_move ("4r3/8/8/8/8/8/4R3/4K3 w - - 0 1", "e2f2"); + gnome_chess_test_good_move ("k7/8/8/8/8/8/8/1R6 w - - 0 1", "Ra1+", "k7/8/8/8/8/8/8/R7 b - - 1 1", CHESS_RESULT_IN_PROGRESS, CHESS_RULE_CHECKMATE, FALSE); + gnome_chess_test_good_move ("k7/8/8/8/8/8/1R6/1R6 w - - 0 1", "Ra1#", "k7/8/8/8/8/8/1R6/R7 b - - 1 1", CHESS_RESULT_WHITE_WON, CHESS_RULE_CHECKMATE, FALSE); + gnome_chess_test_good_move ("k7/7r/8/8/8/8/1R6/1R6 w - - 0 1", "Ra1+", "k7/7r/8/8/8/8/1R6/R7 b - - 1 1", CHESS_RESULT_IN_PROGRESS, CHESS_RULE_CHECKMATE, FALSE); + gnome_chess_test_good_move ("k7/8/7R/8/8/8/8/1R6 w - - 0 1", "Rh7", "k7/7R/8/8/8/8/8/1R6 b - - 1 1", CHESS_RESULT_DRAW, CHESS_RULE_STALEMATE, FALSE); + gnome_chess_test_good_move ("k7/7p/7K/8/8/8/8/8 w - - 0 1", "Kxh7", "k7/7K/8/8/8/8/8/8 b - - 0 1", CHESS_RESULT_DRAW, CHESS_RULE_INSUFFICIENT_MATERIAL, FALSE); + gnome_chess_test_good_move ("k7/7p/7K/8/8/8/8/7N w - - 0 1", "Kxh7", "k7/7K/8/8/8/8/8/7N b - - 0 1", CHESS_RESULT_DRAW, CHESS_RULE_INSUFFICIENT_MATERIAL, FALSE); + gnome_chess_test_good_move ("k7/7p/7K/8/8/8/8/6Nn w - - 0 1", "Kxh7", "k7/7K/8/8/8/8/8/6Nn b - - 0 1", CHESS_RESULT_IN_PROGRESS, CHESS_RULE_CHECKMATE, FALSE); + gnome_chess_test_good_move ("k7/7p/7K/8/8/8/8/6Nb w - - 0 1", "Kxh7", "k7/7K/8/8/8/8/8/6Nb b - - 0 1", CHESS_RESULT_IN_PROGRESS, CHESS_RULE_CHECKMATE, FALSE); + gnome_chess_test_good_move ("k2b1b1b/6bp/7K/4B1B1/8/8/8/8 w - - 0 1", "Kxh7", "k2b1b1b/6bK/8/4B1B1/8/8/8/8 b - - 0 1", CHESS_RESULT_DRAW, CHESS_RULE_INSUFFICIENT_MATERIAL, FALSE); + gnome_chess_test_good_move ("k2b1b1b/6bp/7K/5B1B/8/8/8/8 w - - 0 1", "Kxh7", "k2b1b1b/6bK/8/5B1B/8/8/8/8 b - - 0 1", CHESS_RESULT_IN_PROGRESS, CHESS_RULE_CHECKMATE, FALSE); + gnome_chess_test_good_move ("k6b/6bp/7K/7B/8/8/8/8 w - - 0 1", "Kxh7", "k6b/6bK/8/7B/8/8/8/8 b - - 0 1", CHESS_RESULT_IN_PROGRESS, CHESS_RULE_CHECKMATE, FALSE); + gnome_chess_test_good_move ("k2b1b1b/6bp/7K/6BB/8/8/8/8 w - - 0 1", "Kxh7", "k2b1b1b/6bK/8/6BB/8/8/8/8 b - - 0 1", CHESS_RESULT_IN_PROGRESS, CHESS_RULE_CHECKMATE, FALSE); _tmp0_ = stdout; - _tmp1_ = gl_chess_test_count; - _tmp2_ = gl_chess_failure_count; - _tmp3_ = gl_chess_test_count; + _tmp1_ = gnome_chess_test_count; + _tmp2_ = gnome_chess_failure_count; + _tmp3_ = gnome_chess_test_count; fprintf (_tmp0_, "%d/%d tests successful\n", _tmp1_ - _tmp2_, _tmp3_); - _tmp4_ = gl_chess_failure_count; + _tmp4_ = gnome_chess_failure_count; result = _tmp4_; return result; } @@ -352,58 +352,58 @@ #if !GLIB_CHECK_VERSION (2,35,0) g_type_init (); #endif - return gl_chess_main (argv, argc); + return gnome_chess_main (argv, argc); } -GlChess* gl_chess_construct (GType object_type) { - GlChess* self = NULL; - self = (GlChess*) g_type_create_instance (object_type); +GNOMEChess* gnome_chess_construct (GType object_type) { + GNOMEChess* self = NULL; + self = (GNOMEChess*) g_type_create_instance (object_type); return self; } -GlChess* gl_chess_new (void) { - return gl_chess_construct (TYPE_GL_CHESS); +GNOMEChess* gnome_chess_new (void) { + return gnome_chess_construct (TYPE_GNOME_CHESS); } -static void value_gl_chess_init (GValue* value) { +static void value_gnome_chess_init (GValue* value) { value->data[0].v_pointer = NULL; } -static void value_gl_chess_free_value (GValue* value) { +static void value_gnome_chess_free_value (GValue* value) { if (value->data[0].v_pointer) { - gl_chess_unref (value->data[0].v_pointer); + gnome_chess_unref (value->data[0].v_pointer); } } -static void value_gl_chess_copy_value (const GValue* src_value, GValue* dest_value) { +static void value_gnome_chess_copy_value (const GValue* src_value, GValue* dest_value) { if (src_value->data[0].v_pointer) { - dest_value->data[0].v_pointer = gl_chess_ref (src_value->data[0].v_pointer); + dest_value->data[0].v_pointer = gnome_chess_ref (src_value->data[0].v_pointer); } else { dest_value->data[0].v_pointer = NULL; } } -static gpointer value_gl_chess_peek_pointer (const GValue* value) { +static gpointer value_gnome_chess_peek_pointer (const GValue* value) { return value->data[0].v_pointer; } -static gchar* value_gl_chess_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) { +static gchar* value_gnome_chess_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) { if (collect_values[0].v_pointer) { - GlChess* object; + GNOMEChess* object; object = collect_values[0].v_pointer; if (object->parent_instance.g_class == NULL) { return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); } - value->data[0].v_pointer = gl_chess_ref (object); + value->data[0].v_pointer = gnome_chess_ref (object); } else { value->data[0].v_pointer = NULL; } @@ -411,8 +411,8 @@ } -static gchar* value_gl_chess_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) { - GlChess** object_p; +static gchar* value_gnome_chess_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) { + GNOMEChess** object_p; object_p = collect_values[0].v_pointer; if (!object_p) { return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); @@ -422,107 +422,107 @@ } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { *object_p = value->data[0].v_pointer; } else { - *object_p = gl_chess_ref (value->data[0].v_pointer); + *object_p = gnome_chess_ref (value->data[0].v_pointer); } return NULL; } -GParamSpec* param_spec_gl_chess (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) { - ParamSpecGlChess* spec; - g_return_val_if_fail (g_type_is_a (object_type, TYPE_GL_CHESS), NULL); +GParamSpec* param_spec_gnome_chess (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) { + ParamSpecGNOMEChess* spec; + g_return_val_if_fail (g_type_is_a (object_type, TYPE_GNOME_CHESS), NULL); spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); G_PARAM_SPEC (spec)->value_type = object_type; return G_PARAM_SPEC (spec); } -gpointer value_get_gl_chess (const GValue* value) { - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_GL_CHESS), NULL); +gpointer value_get_gnome_chess (const GValue* value) { + g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_GNOME_CHESS), NULL); return value->data[0].v_pointer; } -void value_set_gl_chess (GValue* value, gpointer v_object) { - GlChess* old; - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_GL_CHESS)); +void value_set_gnome_chess (GValue* value, gpointer v_object) { + GNOMEChess* old; + g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_GNOME_CHESS)); old = value->data[0].v_pointer; if (v_object) { - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_GL_CHESS)); + g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_GNOME_CHESS)); g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); value->data[0].v_pointer = v_object; - gl_chess_ref (value->data[0].v_pointer); + gnome_chess_ref (value->data[0].v_pointer); } else { value->data[0].v_pointer = NULL; } if (old) { - gl_chess_unref (old); + gnome_chess_unref (old); } } -void value_take_gl_chess (GValue* value, gpointer v_object) { - GlChess* old; - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_GL_CHESS)); +void value_take_gnome_chess (GValue* value, gpointer v_object) { + GNOMEChess* old; + g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_GNOME_CHESS)); old = value->data[0].v_pointer; if (v_object) { - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_GL_CHESS)); + g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_GNOME_CHESS)); g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); value->data[0].v_pointer = v_object; } else { value->data[0].v_pointer = NULL; } if (old) { - gl_chess_unref (old); + gnome_chess_unref (old); } } -static void gl_chess_class_init (GlChessClass * klass) { - gl_chess_parent_class = g_type_class_peek_parent (klass); - ((GlChessClass *) klass)->finalize = gl_chess_finalize; +static void gnome_chess_class_init (GNOMEChessClass * klass) { + gnome_chess_parent_class = g_type_class_peek_parent (klass); + ((GNOMEChessClass *) klass)->finalize = gnome_chess_finalize; } -static void gl_chess_instance_init (GlChess * self) { +static void gnome_chess_instance_init (GNOMEChess * self) { self->ref_count = 1; } -static void gl_chess_finalize (GlChess* obj) { - GlChess * self; - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_GL_CHESS, GlChess); +static void gnome_chess_finalize (GNOMEChess* obj) { + GNOMEChess * self; + self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_GNOME_CHESS, GNOMEChess); g_signal_handlers_destroy (self); } -GType gl_chess_get_type (void) { - static volatile gsize gl_chess_type_id__volatile = 0; - if (g_once_init_enter (&gl_chess_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_gl_chess_init, value_gl_chess_free_value, value_gl_chess_copy_value, value_gl_chess_peek_pointer, "p", value_gl_chess_collect_value, "p", value_gl_chess_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (GlChessClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gl_chess_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GlChess), 0, (GInstanceInitFunc) gl_chess_instance_init, &g_define_type_value_table }; +GType gnome_chess_get_type (void) { + static volatile gsize gnome_chess_type_id__volatile = 0; + if (g_once_init_enter (&gnome_chess_type_id__volatile)) { + static const GTypeValueTable g_define_type_value_table = { value_gnome_chess_init, value_gnome_chess_free_value, value_gnome_chess_copy_value, value_gnome_chess_peek_pointer, "p", value_gnome_chess_collect_value, "p", value_gnome_chess_lcopy_value }; + static const GTypeInfo g_define_type_info = { sizeof (GNOMEChessClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gnome_chess_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GNOMEChess), 0, (GInstanceInitFunc) gnome_chess_instance_init, &g_define_type_value_table }; static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType gl_chess_type_id; - gl_chess_type_id = g_type_register_fundamental (g_type_fundamental_next (), "GlChess", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&gl_chess_type_id__volatile, gl_chess_type_id); + GType gnome_chess_type_id; + gnome_chess_type_id = g_type_register_fundamental (g_type_fundamental_next (), "GNOMEChess", &g_define_type_info, &g_define_type_fundamental_info, 0); + g_once_init_leave (&gnome_chess_type_id__volatile, gnome_chess_type_id); } - return gl_chess_type_id__volatile; + return gnome_chess_type_id__volatile; } -gpointer gl_chess_ref (gpointer instance) { - GlChess* self; +gpointer gnome_chess_ref (gpointer instance) { + GNOMEChess* self; self = instance; g_atomic_int_inc (&self->ref_count); return instance; } -void gl_chess_unref (gpointer instance) { - GlChess* self; +void gnome_chess_unref (gpointer instance) { + GNOMEChess* self; self = instance; if (g_atomic_int_dec_and_test (&self->ref_count)) { - GL_CHESS_GET_CLASS (self)->finalize (self); + GNOME_CHESS_GET_CLASS (self)->finalize (self); g_type_free_instance ((GTypeInstance *) self); } } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/gnome-chess-3.16.1/tests/test-chess-game.vala new/gnome-chess-3.16.2/tests/test-chess-game.vala --- old/gnome-chess-3.16.1/tests/test-chess-game.vala 2015-04-03 17:40:00.000000000 +0200 +++ new/gnome-chess-3.16.2/tests/test-chess-game.vala 2015-05-05 18:04:59.000000000 +0200 @@ -9,7 +9,7 @@ * license. */ -class GlChess +class GNOMEChess { static int test_count = 0; static int failure_count = 0; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/gnome-chess-3.16.1/tests/test-chess-pgn.c new/gnome-chess-3.16.2/tests/test-chess-pgn.c --- old/gnome-chess-3.16.1/tests/test-chess-pgn.c 2015-04-13 11:32:45.000000000 +0200 +++ new/gnome-chess-3.16.2/tests/test-chess-pgn.c 2015-05-05 18:05:32.000000000 +0200 @@ -1,4 +1,4 @@ -/* test-chess-pgn.c generated by valac 0.27.1.15-b1df0, the Vala compiler +/* test-chess-pgn.c generated by valac 0.26.1, the Vala compiler * generated from test-chess-pgn.vala, do not modify */ /* -*- Mode: vala; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- @@ -21,58 +21,58 @@ #include <gobject/gvaluecollector.h> -#define TYPE_GL_CHESS (gl_chess_get_type ()) -#define GL_CHESS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_GL_CHESS, GlChess)) -#define GL_CHESS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_GL_CHESS, GlChessClass)) -#define IS_GL_CHESS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_GL_CHESS)) -#define IS_GL_CHESS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_GL_CHESS)) -#define GL_CHESS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_GL_CHESS, GlChessClass)) - -typedef struct _GlChess GlChess; -typedef struct _GlChessClass GlChessClass; -typedef struct _GlChessPrivate GlChessPrivate; +#define TYPE_GNOME_CHESS (gnome_chess_get_type ()) +#define GNOME_CHESS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_GNOME_CHESS, GNOMEChess)) +#define GNOME_CHESS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_GNOME_CHESS, GNOMEChessClass)) +#define IS_GNOME_CHESS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_GNOME_CHESS)) +#define IS_GNOME_CHESS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_GNOME_CHESS)) +#define GNOME_CHESS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_GNOME_CHESS, GNOMEChessClass)) + +typedef struct _GNOMEChess GNOMEChess; +typedef struct _GNOMEChessClass GNOMEChessClass; +typedef struct _GNOMEChessPrivate GNOMEChessPrivate; #define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) #define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL))) #define _g_free0(var) (var = (g_free (var), NULL)) -typedef struct _ParamSpecGlChess ParamSpecGlChess; +typedef struct _ParamSpecGNOMEChess ParamSpecGNOMEChess; -struct _GlChess { +struct _GNOMEChess { GTypeInstance parent_instance; volatile int ref_count; - GlChessPrivate * priv; + GNOMEChessPrivate * priv; }; -struct _GlChessClass { +struct _GNOMEChessClass { GTypeClass parent_class; - void (*finalize) (GlChess *self); + void (*finalize) (GNOMEChess *self); }; -struct _ParamSpecGlChess { +struct _ParamSpecGNOMEChess { GParamSpec parent_instance; }; -static gpointer gl_chess_parent_class = NULL; -static gint gl_chess_test_count; -static gint gl_chess_test_count = 0; -static gint gl_chess_failure_count; -static gint gl_chess_failure_count = 0; - -gpointer gl_chess_ref (gpointer instance); -void gl_chess_unref (gpointer instance); -GParamSpec* param_spec_gl_chess (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags); -void value_set_gl_chess (GValue* value, gpointer v_object); -void value_take_gl_chess (GValue* value, gpointer v_object); -gpointer value_get_gl_chess (const GValue* value); -GType gl_chess_get_type (void) G_GNUC_CONST; +static gpointer gnome_chess_parent_class = NULL; +static gint gnome_chess_test_count; +static gint gnome_chess_test_count = 0; +static gint gnome_chess_failure_count; +static gint gnome_chess_failure_count = 0; + +gpointer gnome_chess_ref (gpointer instance); +void gnome_chess_unref (gpointer instance); +GParamSpec* param_spec_gnome_chess (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags); +void value_set_gnome_chess (GValue* value, gpointer v_object); +void value_take_gnome_chess (GValue* value, gpointer v_object); +gpointer value_get_gnome_chess (const GValue* value); +GType gnome_chess_get_type (void) G_GNUC_CONST; enum { - GL_CHESS_DUMMY_PROPERTY + GNOME_CHESS_DUMMY_PROPERTY }; -static void gl_chess_test_pgn_file (const gchar* data, const gchar* moves); -gint gl_chess_main (gchar** args, int args_length1); -GlChess* gl_chess_new (void); -GlChess* gl_chess_construct (GType object_type); -static void gl_chess_finalize (GlChess* obj); +static void gnome_chess_test_pgn_file (const gchar* data, const gchar* moves); +gint gnome_chess_main (gchar** args, int args_length1); +GNOMEChess* gnome_chess_new (void); +GNOMEChess* gnome_chess_construct (GType object_type); +static void gnome_chess_finalize (GNOMEChess* obj); static gpointer _g_object_ref0 (gpointer self) { @@ -95,7 +95,7 @@ } -static void gl_chess_test_pgn_file (const gchar* data, const gchar* moves) { +static void gnome_chess_test_pgn_file (const gchar* data, const gchar* moves) { gint _tmp0_ = 0; PGN* file = NULL; PGNGame* game = NULL; @@ -114,8 +114,8 @@ GError * _inner_error_ = NULL; g_return_if_fail (data != NULL); g_return_if_fail (moves != NULL); - _tmp0_ = gl_chess_test_count; - gl_chess_test_count = _tmp0_ + 1; + _tmp0_ = gnome_chess_test_count; + gnome_chess_test_count = _tmp0_ + 1; { PGN* _tmp1_ = NULL; const gchar* _tmp2_ = NULL; @@ -151,12 +151,12 @@ e = _inner_error_; _inner_error_ = NULL; _tmp5_ = stderr; - _tmp6_ = gl_chess_test_count; + _tmp6_ = gnome_chess_test_count; _tmp7_ = e; _tmp8_ = _tmp7_->message; fprintf (_tmp5_, "%d. FAIL %s\n", _tmp6_, _tmp8_); - _tmp9_ = gl_chess_failure_count; - gl_chess_failure_count = _tmp9_ + 1; + _tmp9_ = gnome_chess_failure_count; + gnome_chess_failure_count = _tmp9_ + 1; _g_error_free0 (e); _g_object_unref0 (file); return; @@ -214,7 +214,7 @@ FILE* _tmp27_ = NULL; gint _tmp28_ = 0; _tmp27_ = stderr; - _tmp28_ = gl_chess_test_count; + _tmp28_ = gnome_chess_test_count; fprintf (_tmp27_, "%d. PASS\n", _tmp28_); } else { gint _tmp29_ = 0; @@ -222,10 +222,10 @@ gint _tmp31_ = 0; const gchar* _tmp32_ = NULL; const gchar* _tmp33_ = NULL; - _tmp29_ = gl_chess_failure_count; - gl_chess_failure_count = _tmp29_ + 1; + _tmp29_ = gnome_chess_failure_count; + gnome_chess_failure_count = _tmp29_ + 1; _tmp30_ = stderr; - _tmp31_ = gl_chess_test_count; + _tmp31_ = gnome_chess_test_count; _tmp32_ = move_string; _tmp33_ = moves; fprintf (_tmp30_, "%d. FAIL got moves '%s', expected '%s'\n", _tmp31_, _tmp32_, _tmp33_); @@ -236,30 +236,30 @@ } -gint gl_chess_main (gchar** args, int args_length1) { +gint gnome_chess_main (gchar** args, int args_length1) { gint result = 0; FILE* _tmp0_ = NULL; gint _tmp1_ = 0; gint _tmp2_ = 0; gint _tmp3_ = 0; gint _tmp4_ = 0; - gl_chess_test_pgn_file ("[Event \"?\"]\n" "[Site \"?\"]\n" "[Date \"????.??.??\"]\n" "[Round \"?\"]\n" "[White \"\"]\n" "[Black \"\"]\n" "[Result \"*\"]\n" "\n" "1. *\n", ""); - gl_chess_test_pgn_file ("1. e1 *\n", "e1"); - gl_chess_test_pgn_file ("e1 *\n", "e1"); - gl_chess_test_pgn_file ("e1\n", "e1"); - gl_chess_test_pgn_file ("e1", "e1"); - gl_chess_test_pgn_file ("[Event \"?\"]\r" "\r" "1. d4 *\r", "d4"); - gl_chess_test_pgn_file ("; Line comment 1\n" "[Event \"?\"]\n" "; Line comment 2\n" "\n" "1. e4 {First Move} e5 {Multi\n" "line\n" "comment} 2. Nc3 {More comments} * {Comment about game end}\n", "e4 e5 Nc3"); - gl_chess_test_pgn_file (";Title: Yahoo! Chess Game\n" ";White: roovis\n" ";Black: ladyjones96\n" ";Date: Fri Oct 19 12:51:54 GMT 2007\n" "\n" "1. e2-e4 e7-e5\n", "e2-e4 e7-e5"); - gl_chess_test_pgn_file ("1.Ra8+ (1.Bxd6+ Kb7 2.Rc7+ Kb8 (2...Kb6 3.Ra6#) 3.Rd7+ Kc8 4.Rc1# (4.R" \ + gnome_chess_test_pgn_file ("[Event \"?\"]\n" "[Site \"?\"]\n" "[Date \"????.??.??\"]\n" "[Round \"?\"]\n" "[White \"\"]\n" "[Black \"\"]\n" "[Result \"*\"]\n" "\n" "1. *\n", ""); + gnome_chess_test_pgn_file ("1. e1 *\n", "e1"); + gnome_chess_test_pgn_file ("e1 *\n", "e1"); + gnome_chess_test_pgn_file ("e1\n", "e1"); + gnome_chess_test_pgn_file ("e1", "e1"); + gnome_chess_test_pgn_file ("[Event \"?\"]\r" "\r" "1. d4 *\r", "d4"); + gnome_chess_test_pgn_file ("; Line comment 1\n" "[Event \"?\"]\n" "; Line comment 2\n" "\n" "1. e4 {First Move} e5 {Multi\n" "line\n" "comment} 2. Nc3 {More comments} * {Comment about game end}\n", "e4 e5 Nc3"); + gnome_chess_test_pgn_file (";Title: Yahoo! Chess Game\n" ";White: roovis\n" ";Black: ladyjones96\n" ";Date: Fri Oct 19 12:51:54 GMT 2007\n" "\n" "1. e2-e4 e7-e5\n", "e2-e4 e7-e5"); + gnome_chess_test_pgn_file ("1.Ra8+ (1.Bxd6+ Kb7 2.Rc7+ Kb8 (2...Kb6 3.Ra6#) 3.Rd7+ Kc8 4.Rc1# (4.R" \ "a8#))", "Ra8+"); - gl_chess_test_pgn_file ("e4 e5 $1 Nc3 $2", "e4 e5 Nc3"); + gnome_chess_test_pgn_file ("e4 e5 $1 Nc3 $2", "e4 e5 Nc3"); _tmp0_ = stdout; - _tmp1_ = gl_chess_test_count; - _tmp2_ = gl_chess_failure_count; - _tmp3_ = gl_chess_test_count; + _tmp1_ = gnome_chess_test_count; + _tmp2_ = gnome_chess_failure_count; + _tmp3_ = gnome_chess_test_count; fprintf (_tmp0_, "%d/%d tests successful\n", _tmp1_ - _tmp2_, _tmp3_); - _tmp4_ = gl_chess_failure_count; + _tmp4_ = gnome_chess_failure_count; result = _tmp4_; return result; } @@ -269,58 +269,58 @@ #if !GLIB_CHECK_VERSION (2,35,0) g_type_init (); #endif - return gl_chess_main (argv, argc); + return gnome_chess_main (argv, argc); } -GlChess* gl_chess_construct (GType object_type) { - GlChess* self = NULL; - self = (GlChess*) g_type_create_instance (object_type); +GNOMEChess* gnome_chess_construct (GType object_type) { + GNOMEChess* self = NULL; + self = (GNOMEChess*) g_type_create_instance (object_type); return self; } -GlChess* gl_chess_new (void) { - return gl_chess_construct (TYPE_GL_CHESS); +GNOMEChess* gnome_chess_new (void) { + return gnome_chess_construct (TYPE_GNOME_CHESS); } -static void value_gl_chess_init (GValue* value) { +static void value_gnome_chess_init (GValue* value) { value->data[0].v_pointer = NULL; } -static void value_gl_chess_free_value (GValue* value) { +static void value_gnome_chess_free_value (GValue* value) { if (value->data[0].v_pointer) { - gl_chess_unref (value->data[0].v_pointer); + gnome_chess_unref (value->data[0].v_pointer); } } -static void value_gl_chess_copy_value (const GValue* src_value, GValue* dest_value) { +static void value_gnome_chess_copy_value (const GValue* src_value, GValue* dest_value) { if (src_value->data[0].v_pointer) { - dest_value->data[0].v_pointer = gl_chess_ref (src_value->data[0].v_pointer); + dest_value->data[0].v_pointer = gnome_chess_ref (src_value->data[0].v_pointer); } else { dest_value->data[0].v_pointer = NULL; } } -static gpointer value_gl_chess_peek_pointer (const GValue* value) { +static gpointer value_gnome_chess_peek_pointer (const GValue* value) { return value->data[0].v_pointer; } -static gchar* value_gl_chess_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) { +static gchar* value_gnome_chess_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) { if (collect_values[0].v_pointer) { - GlChess* object; + GNOMEChess* object; object = collect_values[0].v_pointer; if (object->parent_instance.g_class == NULL) { return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); } - value->data[0].v_pointer = gl_chess_ref (object); + value->data[0].v_pointer = gnome_chess_ref (object); } else { value->data[0].v_pointer = NULL; } @@ -328,8 +328,8 @@ } -static gchar* value_gl_chess_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) { - GlChess** object_p; +static gchar* value_gnome_chess_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) { + GNOMEChess** object_p; object_p = collect_values[0].v_pointer; if (!object_p) { return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); @@ -339,107 +339,107 @@ } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { *object_p = value->data[0].v_pointer; } else { - *object_p = gl_chess_ref (value->data[0].v_pointer); + *object_p = gnome_chess_ref (value->data[0].v_pointer); } return NULL; } -GParamSpec* param_spec_gl_chess (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) { - ParamSpecGlChess* spec; - g_return_val_if_fail (g_type_is_a (object_type, TYPE_GL_CHESS), NULL); +GParamSpec* param_spec_gnome_chess (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) { + ParamSpecGNOMEChess* spec; + g_return_val_if_fail (g_type_is_a (object_type, TYPE_GNOME_CHESS), NULL); spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); G_PARAM_SPEC (spec)->value_type = object_type; return G_PARAM_SPEC (spec); } -gpointer value_get_gl_chess (const GValue* value) { - g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_GL_CHESS), NULL); +gpointer value_get_gnome_chess (const GValue* value) { + g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_GNOME_CHESS), NULL); return value->data[0].v_pointer; } -void value_set_gl_chess (GValue* value, gpointer v_object) { - GlChess* old; - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_GL_CHESS)); +void value_set_gnome_chess (GValue* value, gpointer v_object) { + GNOMEChess* old; + g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_GNOME_CHESS)); old = value->data[0].v_pointer; if (v_object) { - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_GL_CHESS)); + g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_GNOME_CHESS)); g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); value->data[0].v_pointer = v_object; - gl_chess_ref (value->data[0].v_pointer); + gnome_chess_ref (value->data[0].v_pointer); } else { value->data[0].v_pointer = NULL; } if (old) { - gl_chess_unref (old); + gnome_chess_unref (old); } } -void value_take_gl_chess (GValue* value, gpointer v_object) { - GlChess* old; - g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_GL_CHESS)); +void value_take_gnome_chess (GValue* value, gpointer v_object) { + GNOMEChess* old; + g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_GNOME_CHESS)); old = value->data[0].v_pointer; if (v_object) { - g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_GL_CHESS)); + g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_GNOME_CHESS)); g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); value->data[0].v_pointer = v_object; } else { value->data[0].v_pointer = NULL; } if (old) { - gl_chess_unref (old); + gnome_chess_unref (old); } } -static void gl_chess_class_init (GlChessClass * klass) { - gl_chess_parent_class = g_type_class_peek_parent (klass); - ((GlChessClass *) klass)->finalize = gl_chess_finalize; +static void gnome_chess_class_init (GNOMEChessClass * klass) { + gnome_chess_parent_class = g_type_class_peek_parent (klass); + ((GNOMEChessClass *) klass)->finalize = gnome_chess_finalize; } -static void gl_chess_instance_init (GlChess * self) { +static void gnome_chess_instance_init (GNOMEChess * self) { self->ref_count = 1; } -static void gl_chess_finalize (GlChess* obj) { - GlChess * self; - self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_GL_CHESS, GlChess); +static void gnome_chess_finalize (GNOMEChess* obj) { + GNOMEChess * self; + self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_GNOME_CHESS, GNOMEChess); g_signal_handlers_destroy (self); } -GType gl_chess_get_type (void) { - static volatile gsize gl_chess_type_id__volatile = 0; - if (g_once_init_enter (&gl_chess_type_id__volatile)) { - static const GTypeValueTable g_define_type_value_table = { value_gl_chess_init, value_gl_chess_free_value, value_gl_chess_copy_value, value_gl_chess_peek_pointer, "p", value_gl_chess_collect_value, "p", value_gl_chess_lcopy_value }; - static const GTypeInfo g_define_type_info = { sizeof (GlChessClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gl_chess_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GlChess), 0, (GInstanceInitFunc) gl_chess_instance_init, &g_define_type_value_table }; +GType gnome_chess_get_type (void) { + static volatile gsize gnome_chess_type_id__volatile = 0; + if (g_once_init_enter (&gnome_chess_type_id__volatile)) { + static const GTypeValueTable g_define_type_value_table = { value_gnome_chess_init, value_gnome_chess_free_value, value_gnome_chess_copy_value, value_gnome_chess_peek_pointer, "p", value_gnome_chess_collect_value, "p", value_gnome_chess_lcopy_value }; + static const GTypeInfo g_define_type_info = { sizeof (GNOMEChessClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gnome_chess_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GNOMEChess), 0, (GInstanceInitFunc) gnome_chess_instance_init, &g_define_type_value_table }; static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) }; - GType gl_chess_type_id; - gl_chess_type_id = g_type_register_fundamental (g_type_fundamental_next (), "GlChess", &g_define_type_info, &g_define_type_fundamental_info, 0); - g_once_init_leave (&gl_chess_type_id__volatile, gl_chess_type_id); + GType gnome_chess_type_id; + gnome_chess_type_id = g_type_register_fundamental (g_type_fundamental_next (), "GNOMEChess", &g_define_type_info, &g_define_type_fundamental_info, 0); + g_once_init_leave (&gnome_chess_type_id__volatile, gnome_chess_type_id); } - return gl_chess_type_id__volatile; + return gnome_chess_type_id__volatile; } -gpointer gl_chess_ref (gpointer instance) { - GlChess* self; +gpointer gnome_chess_ref (gpointer instance) { + GNOMEChess* self; self = instance; g_atomic_int_inc (&self->ref_count); return instance; } -void gl_chess_unref (gpointer instance) { - GlChess* self; +void gnome_chess_unref (gpointer instance) { + GNOMEChess* self; self = instance; if (g_atomic_int_dec_and_test (&self->ref_count)) { - GL_CHESS_GET_CLASS (self)->finalize (self); + GNOME_CHESS_GET_CLASS (self)->finalize (self); g_type_free_instance ((GTypeInstance *) self); } } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/gnome-chess-3.16.1/tests/test-chess-pgn.vala new/gnome-chess-3.16.2/tests/test-chess-pgn.vala --- old/gnome-chess-3.16.1/tests/test-chess-pgn.vala 2015-04-03 17:40:00.000000000 +0200 +++ new/gnome-chess-3.16.2/tests/test-chess-pgn.vala 2015-05-05 18:05:15.000000000 +0200 @@ -9,7 +9,7 @@ * license. */ -class GlChess +class GNOMEChess { static int test_count = 0; static int failure_count = 0;
