diff options
author | Paulo Cesar Pereira de Andrade <pcpa@mandriva.com.br> | 2009-01-14 19:02:22 -0200 |
---|---|---|
committer | Paulo Cesar Pereira de Andrade <pcpa@mandriva.com.br> | 2009-01-14 19:02:22 -0200 |
commit | 038f559845ac8b8b45f5a53537b011e169d45f59 (patch) | |
tree | 5403751e67ea55365f3caf7a1f65dfbb0869d465 /text.c | |
parent | cc62903f999ba0c5076861888106365e3561f775 (diff) |
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).
Diffstat (limited to 'text.c')
-rw-r--r-- | text.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -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, "<Leave>: WriteText(%d)\n\ + <Btn1Down>: set-keyboard-focus() select-start()\n\ Ctrl<Key>J: Nothing()\n\ Ctrl<Key>M: Nothing()\n\ <Key>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)); |