From 038f559845ac8b8b45f5a53537b011e169d45f59 Mon Sep 17 00:00:00 2001 From: Paulo Cesar Pereira de Andrade Date: Wed, 14 Jan 2009 19:02:22 -0200 Subject: Xgc now in Technicolor Added a simple Xgc-color resources file. Corrected a bug that would prevent it from showing 100 in percent label, due to using a buffer of 3 bytes. Hardcode "test area" foreground&background to black&white. Remove a few hardcoded resource values to better work with the new resources file (some settings may require moving data from Xgc-color to Xgc, if you don't have a color display). --- text.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'text.c') diff --git a/text.c b/text.c index 8204b0b..fd5e389 100644 --- a/text.c +++ b/text.c @@ -66,7 +66,6 @@ create_text_choice(Widget w, int type, int length, int width) {XtNeditType, (XtArgVal) XawtextEdit}, {XtNstring, (XtArgVal) NULL}, {XtNlength, (XtArgVal) NULL}, - {XtNwidth, (XtArgVal) NULL}, {XtNhorizDistance, (XtArgVal) 10}, {XtNfromHoriz, (XtArgVal) NULL}, {XtNinsertPosition, (XtArgVal) NULL}, @@ -83,6 +82,7 @@ create_text_choice(Widget w, int type, int length, int width) snprintf(translationtable,sizeof translationtable, ": WriteText(%d)\n\ + : set-keyboard-focus() select-start()\n\ CtrlJ: Nothing()\n\ CtrlM: Nothing()\n\ Linefeed: Nothing()\n\ @@ -120,9 +120,8 @@ create_text_choice(Widget w, int type, int length, int width) } textargs[1].value = (XtArgVal) textstrings[type]; textargs[2].value = (XtArgVal) length; - textargs[3].value = (XtArgVal) width; - textargs[5].value = (XtArgVal) label; - textargs[6].value = (XtArgVal) strlen(textstrings[type]); + textargs[4].value = (XtArgVal) label; + textargs[5].value = (XtArgVal) strlen(textstrings[type]); text = XtCreateManagedWidget("text", asciiTextWidgetClass,w, textargs,XtNumber(textargs)); -- cgit v1.2.3