X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=xaw%2Fxoptions.c;fp=xaw%2Fxoptions.c;h=021da535e198201279193857f128399697fd5b7d;hb=3c578b8dfd002212e96a57386f1829a4ee8e011a;hp=dbe92c811c7133ce0b9e150e9c1429ab5e5d41e6;hpb=752697385e80b54b2f18216e1c6a584203f8df82;p=xboard.git diff --git a/xaw/xoptions.c b/xaw/xoptions.c index dbe92c8..021da53 100644 --- a/xaw/xoptions.c +++ b/xaw/xoptions.c @@ -1225,6 +1225,11 @@ GenericPopUp (Option *option, char *title, DialogClass dlgNr, DialogClass parent 0 /* w */, 0 /* h */, 1 /* chain (always on same row) */); forelast = lastrow; msg = _(option[i].name); // write name on the menu button + if(msg) { if(*msg == '_') msg++; else if(msg[1] == '_') { // kludge to remove GTK shortkut-key indicators + static char buf[MSG_SIZ]; + strncpy(buf, msg, MSG_SIZ); msg = buf + 1; + *msg = *buf; + }} XtSetArg(args[j], XtNmenuName, XtNewString(option[i].name)); j++; XtSetArg(args[j], XtNlabel, msg); j++; option[i].handle = (void*)