Improve variant recognition for enabling buttons (XB)
authorH.G.Muller <hgm@hgm-xboard.(none)>
Sun, 7 Feb 2016 21:48:34 +0000 (22:48 +0100)
committerH.G.Muller <hgm@hgm-xboard.(none)>
Sun, 7 Feb 2016 21:48:34 +0000 (22:48 +0100)
commitacceebbe37c9c4ad05f74dbfaf327d20171c874f
tree19f83816c8af9cf8271842c4e1b5fe5fa47c699f
parent7f227f88b2bce72c816256fb83a4971b47c861a2
Improve variant recognition for enabling buttons (XB)

Buttons for variants were enabled when the name of the variant they
selected was a sub-string of waht the engine could play, so that
Grand Chess (variant grand) would be enabled by Fairy-Max' grande-acedrex.
Now we test if the matched sub-string of the engine's variants feature
is immediately followed by a comma (or at the end).
gtk/xoptions.c
xaw/xoptions.c