From: Eric S. Raymond Date: Thu, 14 Sep 2006 08:55:38 +0000 (+0000) Subject: Make the text window editable. X-Git-Tag: 2.0~270 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=0bc4964e6bcf3a3ee3b383ee79a97f69ffa48b46;p=super-star-trek.git Make the text window editable. --- diff --git a/src/xio.c b/src/xio.c index 58d419c..65098bf 100644 --- a/src/xio.c +++ b/src/xio.c @@ -14,7 +14,6 @@ static Widget navigation, weapons, planets, misc; static Widget navlabel, weaplabel, planlabel, misclabel; static String fallback[] = { - /* text window resources */ "*text.resizable: true", "*text.resize: ResizeBoth", "*text.width: 640", @@ -33,7 +32,7 @@ static String fallback[] = { "*planlabel.borderWidth: 0", "*misc.fromVert: planets", "*misc.borderWidth: 0", - "*misclabel.label: Miscellaneos: ", + "*misclabel.label: Miscellaneous:", "*misclabel.borderWidth: 0", NULL, }; @@ -104,8 +103,11 @@ static void instantiate_main(int argc, char **argv) XtNallowShellResize, True, NULL); form = XtVaCreateManagedWidget("form", formWidgetClass, toplevel, NULL); /* the command window */ - text = XtVaCreateManagedWidget("text", asciiTextWidgetClass, form, NULL); - XtVaSetValues(text, XtNeditType,XawtextRead, XtNdisplayCaret,False, NULL); + text = XtVaCreateManagedWidget("text", + asciiTextWidgetClass, form, + XtNeditType, XawtextEdit, + XtNdisplayCaret,False, + NULL); /* The button panels */ navigation = XtVaCreateManagedWidget("navigation", boxWidgetClass, form,