From 8654bfa8e8545770223d1eff327d3bfbd6308f69 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Fri, 6 May 2011 21:00:25 +0200 Subject: [PATCH] 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. --- xoptions.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) 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)); -- 1.7.0.4