diff options
Diffstat (limited to 'games/xpat2/files/patch-Xaw-main.c')
-rw-r--r-- | games/xpat2/files/patch-Xaw-main.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/games/xpat2/files/patch-Xaw-main.c b/games/xpat2/files/patch-Xaw-main.c new file mode 100644 index 000000000000..a1a43d046d47 --- /dev/null +++ b/games/xpat2/files/patch-Xaw-main.c @@ -0,0 +1,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); + |