Re: Moving XtWidth, XtHeight, XtX and XtY macroes from XmP.h to IntrinsicP.h

Alexander Pohoyda <[email protected]>
Newsgroups gmane.comp.xfree86.devel
Message-ID <[email protected]>
> On Tue, 13 Sep 2005, Marc Aurele La France wrote:
> > On Tue, 13 Sep 2005, Alexander Pohoyda wrote:
> >> Don't you think it makes sense to move (some of) those macroes from
> >> Xm/XmP.h to X11/IntrinsicP.h file?  They seem to belong there.
> 
> > Given that what you actually mean is Xt/IntrinsicP.h, I'd tend to
> > agree with you.  Especially given that, in out source tree, only
> > Xaw references these anyway.
> 
> ... even though Xm/XmP.h is a Motif thing (i.e. not distributed with
> any XFree86 or X.Org server, per se).

You're right.  I should have checked first.

So, should I not use those macroes in libXaw at all, or should I bring
them to Xt headers files like this:

#ifndef XtWidth
#define XtWidth(w)	 (((Widget)(w))->core.width)
#endif
...

Which solution do you prefer?


-- 
Alexander Pohoyda <[email protected]>
PGP Key fingerprint: 7F C9 CC 5A 75 CD 89 72  15 54 5F 62 20 23 C6 44
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.