Make the text window editable.
authorEric S. Raymond <esr@thyrsus.com>
Thu, 14 Sep 2006 08:55:38 +0000 (08:55 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Thu, 14 Sep 2006 08:55:38 +0000 (08:55 +0000)
src/xio.c

index 58d419c6e484b2473069fcac7694ca55e8f38316..65098bff143e10b05708bff793cb5f15501034e2 100644 (file)
--- 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,