From: H.G. Muller Date: Fri, 6 May 2011 19:00:25 +0000 (+0200) Subject: Fix generic combobox bug X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=8654bfa8e8545770223d1eff327d3bfbd6308f69;p=xboard.git Fix generic combobox bug The patch placing gettext markers was done wrong, setting the translated menu text outside the loop, so all entries became the same. --- diff --git a/xoptions.c b/xoptions.c index 0c1e4c9..dedda96 100644 --- a/xoptions.c +++ b/xoptions.c @@ -698,11 +698,11 @@ void CreateComboPopup(parent, name, n, mb) parent, NULL, 0); j = 0; XtSetArg(args[j], XtNwidth, 100); j++; - XtSetArg(args[j], XtNlabel, _(mb[i])); j++; // XtSetArg(args[j], XtNright, XtChainRight); j++; while (mb[i] != NULL) { + XtSetArg(args[j], XtNlabel, _(mb[i])); entry = XtCreateManagedWidget(mb[i], smeBSBObjectClass, - menu, args, j); + menu, args, j+1); XtAddCallback(entry, XtNcallback, (XtCallbackProc) ComboSelect, (caddr_t)(intptr_t) (256*n+i));