Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!mcgill-vision!bloom-beacon!MWUNIX.MITRE.ORG!palmer From: palmer@MWUNIX.MITRE.ORG Newsgroups: comp.windows.x Subject: Re: Problems subclassing Athena widgets Message-ID: <9003131502.AA01661@mwunix.mitre.org> Date: 13 Mar 90 15:02:10 GMT References: <102193@linus.UUCP> Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 37 > Subject: Problems subclassing Athena widgets > Message-Id: <102193@linus.UUCP> > Sender: xpert-request@expo.lcs.mit.edu > To: xpert@expo.lcs.mit.edu > > Summary: > Warning: Representation size 4 must match superclass's > to override fooBar > > Then, in Barfo.c, I have the following: > > #define offset(field) XtOffset(BarfoWidget, field) > > static XtResource resources[] = { > { XtNfooBar, XtCfooBar, XtRInt, sizeof(int), > offset(xopcmd.w_foo_bar), XtRInt, (int) 100 }, > }; > #undef offset > Chris, The problem is in the default_addr field. Try : > offset(xopcmd.w_foo_bar), XtRInt, (XtPointer) 100 }, ^^^^^^^^^^^ ^^^ ------------------------------------------------------ Forrest Palmer (x5668) Systems Programmer/Administrator MITRE Corp. - Washington Center palmer@mwunix.mitre.org ------------------------------------------------------