summaryrefslogtreecommitdiff
path: root/testfrac.c
diff options
context:
space:
mode:
authorPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2009-01-14 19:02:22 -0200
committerPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2009-01-14 19:02:22 -0200
commit038f559845ac8b8b45f5a53537b011e169d45f59 (patch)
tree5403751e67ea55365f3caf7a1f65dfbb0869d465 /testfrac.c
parentcc62903f999ba0c5076861888106365e3561f775 (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.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/testfrac.c b/testfrac.c
index 0e5018a..c5afd75 100644
--- a/testfrac.c
+++ b/testfrac.c
@@ -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));