summaryrefslogtreecommitdiff
path: root/commands.c
diff options
context:
space:
mode:
authorPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2008-03-11 21:44:25 -0300
committerPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2008-07-02 19:04:16 -0300
commitf1d58be104f4020ef718a542d7f5ca72cd1f531b (patch)
treeb6ab0cdc1de4bdda0a5df1f6c2771dec9ec3d02e /commands.c
parent7d5dbf4a19ec6bbd36784f5d7307629b69dda873 (diff)
Readd support for *international resource and default to false.
This allows several features, like syntax highlight and indentation, turned off to be enabled again.
Diffstat (limited to 'commands.c')
-rw-r--r--commands.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/commands.c b/commands.c
index 7fa14d1..e7f23b1 100644
--- a/commands.c
+++ b/commands.c
@@ -357,8 +357,9 @@ DoSave(Widget w, XtPointer client_data, XtPointer call_data)
XtRemoveCallback(scratch, XtNcallback, SourceChanged,
(XtPointer)item);
item->source = scratch =
- XtVaCreateWidget("textSource",
- multiSrcObjectClass,
+ XtVaCreateWidget("textSource", international ?
+ multiSrcObjectClass :
+ asciiSrcObjectClass,
topwindow,
XtNtype, XawAsciiFile,
XtNeditType, XawtextEdit,
@@ -495,8 +496,9 @@ ReallyDoLoad(char *name, char *filename)
XtSetArg(args[num_args], XtNstring, NULL); num_args++;
}
- source = XtVaCreateWidget("textSource",
- multiSrcObjectClass,
+ source = XtVaCreateWidget("textSource", international ?
+ multiSrcObjectClass :
+ asciiSrcObjectClass,
topwindow,
XtNtype, XawAsciiFile,
XtNeditType, XawtextEdit,