aboutsummaryrefslogtreecommitdiff
path: root/Sgraph.c
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2014-09-17 12:46:17 +0000
committerDimitri Sokolyuk <demon@dim13.org>2014-09-17 12:46:17 +0000
commit23f54cb63d55a4cdc810928384162d3d8afcf7e4 (patch)
tree9122538eb59f3775c08ba4bb3f22d74eebb54a79 /Sgraph.c
parent88cecc5a268d6f1e094db46a4ae3a53ede9b25c3 (diff)
fix size resource
Diffstat (limited to 'Sgraph.c')
-rw-r--r--Sgraph.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/Sgraph.c b/Sgraph.c
index e2692e9..38e95c5 100644
--- a/Sgraph.c
+++ b/Sgraph.c
@@ -35,7 +35,6 @@ static Boolean SetValues(Widget old, Widget reference, Widget new, ArgList args,
static Dimension winwidth = SGRAPH_WIDTH;
static Dimension winheight = SGRAPH_HEIGHT;
-static Cardinal dataSize = 2048;
/* Initialization */
#define offset(field) XtOffsetOf(SgraphRec, sgraph.field)
@@ -64,9 +63,9 @@ static XtResource resources[] = {
{ XtNrightData, XtCParameter, XtRPointer,
sizeof(XtPointer), XtOffset(SgraphWidget, sgraph.rightData),
XtRPointer, NULL },
- { XtNsizeData, XtCLength, XtRCardinal,
- sizeof(Cardinal), XtOffset(SgraphWidget, sgraph.sizeData),
- XtRCardinal, &dataSize },
+ { XtNsizeData, XtCsizeData, XtRInt,
+ sizeof(int), XtOffset(SgraphWidget, sgraph.sizeData),
+ XtRImmediate, (XtPointer)2048 },
};
#undef offset