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 /testfrac.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 'testfrac.c')
-rw-r--r-- | testfrac.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -43,7 +43,7 @@ slider_jump(Widget w, caddr_t data, caddr_t position) float oldpercent; /* where the scrollbar is */ float newpercent; /* normalized scrollbar */ - char snewpercent[3]; /* string representation of scrollbar */ + char snewpercent[4]; /* string representation of scrollbar */ oldpercent = *(float *) position; @@ -131,7 +131,6 @@ create_testfrac_choice(Widget w) }; static Arg percentargs[] = { - {XtNborderWidth, (XtArgVal) 1}, {XtNhorizDistance, (XtArgVal) 10}, {XtNfromHoriz, (XtArgVal) NULL} }; @@ -162,7 +161,7 @@ create_testfrac_choice(Widget w) label = XtCreateManagedWidget("Percentage of Test",labelWidgetClass,w, labelargs,XtNumber(labelargs)); - percentargs[2].value = (XtArgVal) label; + percentargs[1].value = (XtArgVal) label; percent = XtCreateManagedWidget("100",labelWidgetClass,w, percentargs,XtNumber(percentargs)); |