X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=xoptions.c;h=7e1603ed7614e51252577cab464d87953e3213e9;hb=bbcce91fb6aced3fea5c5c1415d0edfecc33927c;hp=6dc6e6df96d7ad47eeac73e4b644f99ad65950f2;hpb=ea750683ac62717dd7346de17b5ae072622ff92a;p=xboard.git diff --git a/xoptions.c b/xoptions.c index 6dc6e6d..7e1603e 100644 --- a/xoptions.c +++ b/xoptions.c @@ -1,28 +1,24 @@ /* * xoptions.c -- Move list window, part of X front end for XBoard * - * Copyright 2000 Free Software Foundation, Inc. - * - * The following terms apply to the enhanced version of XBoard distributed - * by the Free Software Foundation: + * Copyright 2000,2009 Free Software Foundation, Inc. * ------------------------------------------------------------------------ - * This program is free software; you can redistribute it and/or modify + * + * GNU XBoard is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. + * the Free Software Foundation, either version 3 of the License, or (at + * your option) any later version. * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * GNU XBoard is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - * ------------------------------------------------------------------------ + * along with this program. If not, see http://www.gnu.org/licenses/. * * - * See the file ChangeLog for a revision history. - */ + *------------------------------------------------------------------------ + ** See the file ChangeLog for a revision history. */ // [HGM] this file is the counterpart of woptions.c, containing xboard popup menus // similar to those of WinBoard, to set the most common options interactively. @@ -1374,7 +1370,7 @@ void SettingsCallback(w, client_data, call_data) XtGetValues(currentCps->option[i].handle, args, 1); if(strcmp(currentCps->option[i].textValue, val)) { strcpy(currentCps->option[i].textValue, val); - sprintf(buf, _("option %s %s\n"), currentCps->option[i].name, val); + sprintf(buf, "option %s=%s\n", currentCps->option[i].name, val); SendToProgram(buf, currentCps); } break; @@ -1386,7 +1382,7 @@ void SettingsCallback(w, client_data, call_data) if(j < currentCps->option[i].min) j = currentCps->option[i].min; if(currentCps->option[i].value != j) { currentCps->option[i].value = j; - sprintf(buf, _("option %s %d\n"), currentCps->option[i].name, j); + sprintf(buf, "option %s=%d\n", currentCps->option[i].name, j); SendToProgram(buf, currentCps); } break; @@ -1396,14 +1392,14 @@ void SettingsCallback(w, client_data, call_data) XtGetValues(currentCps->option[i].handle, args, 1); if(currentCps->option[i].value != j) { currentCps->option[i].value = j; - sprintf(buf, _("option %s %d\n"), currentCps->option[i].name, j); + sprintf(buf, "option %s=%d\n", currentCps->option[i].name, j); SendToProgram(buf, currentCps); } break; case ComboBox: if(currentCps->option[i].value != values[i]) { currentCps->option[i].value = values[i]; - sprintf(buf, _("option %s %s\n"), currentCps->option[i].name, + sprintf(buf, "option %s=%s\n", currentCps->option[i].name, ((char**)currentCps->option[i].textValue)[values[i]]); SendToProgram(buf, currentCps); } @@ -1411,13 +1407,13 @@ void SettingsCallback(w, client_data, call_data) } } if((int)client_data) { // send save-button command to engine - sprintf(buf, _("option %s\n"), name); + sprintf(buf, "option %s\n", name); SendToProgram(buf, currentCps); } SettingsPopDown(); return; } - sprintf(buf, _("option %s\n"), name); + sprintf(buf, "option %s\n", name); SendToProgram(buf, currentCps); }