aboutsummaryrefslogtreecommitdiffstats
path: root/games/xpat2/files/patch-Xaw-main.c
blob: a1a43d046d4717ddcf76cfbd0535996ffd71d30d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- Xaw-main.c.orig
+++ Xaw-main.c
@@ -323,6 +323,7 @@
     Widget buttonpanel;
     Widget gamebutton, gamemenu, rulesbutton, rulesmenu;
     int i;
+    Arg args[1];
     struct button {
    const char *name; void (*func)(void);
     } *bp;
@@ -403,6 +404,9 @@
     /* OK. Now do the pop-up shells */
     popup = XtCreatePopupShell("prompt", transientShellWidgetClass, toplevel, NULL, 0);
     dialog = XtCreateManagedWidget("dialog", dialogWidgetClass, popup, NULL, 0);
+    /* cludge to be improved when I know more Xaw -- AW */
+    XtSetArg(args[0], XtNlabel, (strlen(TXT_NEW_CONFIRM)>strlen(TXT_QUIT_CONFIRM))?TXT_NEW_CONFIRM:TXT_QUIT_CONFIRM);
+    XtSetValues(dialog, args, 1);
     XawDialogAddButton(dialog, "ok",     Ok,     (XtPointer)dialog);
     XawDialogAddButton(dialog, "cancel", Cancel, (XtPointer)dialog);