From 0fe1594e082a990370a4603aae70d7eeb4f5d824 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Sun, 19 Oct 2014 18:08:18 +0000 Subject: add constraint resources --- Display.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Display.c') diff --git a/Display.c b/Display.c index d967e79..058f979 100644 --- a/Display.c +++ b/Display.c @@ -36,8 +36,12 @@ static XtResource resources[] = { }; #undef Offset +#define Offset(field) XtOffsetOf(DisplayConstraintRec, display.field) static XtResource constraint_resources[] = { + { XtNmaxWidth, XtCMaxWidth, XtRDimension, sizeof(Dimension), + Offset(maxWidth), XtRImmediate, (XtPointer)0 }, }; +#undef Offset static CompositeClassExtensionRec compositeExtension = { .next_extension = NULL, -- cgit v1.2.3