Abandon single-letter menus in tinyLayout
authorH.G. Muller <h.g.muller@hccnet.nl>
Thu, 29 Dec 2011 14:51:18 +0000 (15:51 +0100)
committerH.G. Muller <h.g.muller@hccnet.nl>
Thu, 29 Dec 2011 14:51:18 +0000 (15:51 +0100)
Now that the items on the main menu bar are clipped, it iso longer
necessary to abbreviate them.

xboard.c

index 7e2443c..4e63186 100644 (file)
--- a/xboard.c
+++ b/xboard.c
@@ -3974,16 +3974,7 @@ Widget CreateMenuBar(mb, boardWidth)
        strncat(menuName, mb->ref, MSG_SIZ - strlen(menuName) - 1);
        j = 0;
        XtSetArg(args[j], XtNmenuName, XtNewString(menuName));  j++;
-       if (tinyLayout) {
-           char shortName[2];
-            shortName[0] = mb->name[0];
-           shortName[1] = NULLCHAR;
-           XtSetArg(args[j], XtNlabel, XtNewString(shortName)); j++;
-       }
-      else {
-       XtSetArg(args[j], XtNlabel, XtNewString(_(mb->name))); j++;
-      }
-
+       XtSetArg(args[j], XtNlabel, XtNewString(_(mb->name)));  j++;
        XtSetArg(args[j], XtNborderWidth, 0);                   j++;
        mb->subMenu = XtCreateManagedWidget(mb->name, menuButtonWidgetClass,
                                       menuBar, args, j);