Xref: utzoo comp.windows.x.motif:875 comp.windows.x:28044 Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!apple!netcom!amdcad!sun!argv From: argv@turnpike.Eng.Sun.COM (Dan Heller) Newsgroups: comp.windows.x.motif,comp.windows.x Subject: Re: Preventing Callback Message-ID: <143445@sun.Eng.Sun.COM> Date: 7 Oct 90 17:52:03 GMT References: <10983@hacgate.UUCP> Sender: news@sun.Eng.Sun.COM Distribution: usa Organization: O'Reilly && Associates Lines: 14 In article <10983@hacgate.UUCP> sean@luna.dpl.scg.hac.com (Sean Cohan) writes: > I am now able to retrieve the widget's name by: widget->core.name, but I > have a new problem. Whoa! Don't do that! First, you are not allowed to dereference a "widget" object. Big trouble... Secondly, there is a macro called XtName() that is available in X11R4 for this purpose. However, it's also available in XmP.h which also shouldn't be directly included by client applications. OSF: why not move XtName() out into the open? -- dan ---------------------------------------------------- O'Reilly && Associates argv@sun.com / argv@ora.com Opinions expressed reflect those of the author only.