projects
/
super-star-trek.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
a6fb36f
)
Make the text window editable.
author
Eric S. Raymond
<esr@thyrsus.com>
Thu, 14 Sep 2006 08:55:38 +0000
(08:55 +0000)
committer
Eric S. Raymond
<esr@thyrsus.com>
Thu, 14 Sep 2006 08:55:38 +0000
(08:55 +0000)
src/xio.c
patch
|
blob
|
history
diff --git
a/src/xio.c
b/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[] = {
static Widget navlabel, weaplabel, planlabel, misclabel;
static String fallback[] = {
- /* text window resources */
"*text.resizable: true",
"*text.resize: ResizeBoth",
"*text.width: 640",
"*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",
"*planlabel.borderWidth: 0",
"*misc.fromVert: planets",
"*misc.borderWidth: 0",
- "*misclabel.label: Miscellaneo
s:
",
+ "*misclabel.label: Miscellaneo
us:
",
"*misclabel.borderWidth: 0",
NULL,
};
"*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 */
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,
/* The button panels */
navigation = XtVaCreateManagedWidget("navigation",
boxWidgetClass, form,