Newsgroups: comp.windows.x
Path: cantaloupe.srv.cs.cmu.edu!das-news.harvard.edu!noc.near.net!howland.reston.ans.net!zaphod.mps.ohio-state.edu!cs.utexas.edu!uunet!gecko!lanzo
From: lanzo@tekelec.com (Mark Lanzo)
Subject: Re: How do I find my AppContext?
Message-ID: <1993Apr22.175201.5310@gecko.uucp>
Sender: news@gecko.uucp (Mr. News Man)
Reply-To: lanzo@tekelec.com (Mark Lanzo)
Organization: Tekelec Inc., Raleigh NC
References: <1qvatv$9ic@pandora.sdsu.edu> <RLM.93Apr21051324@helen.surfcty.com>
Date: Thu, 22 Apr 1993 17:52:01 GMT
Lines: 12

In a prior article masc0442@ucsnews.sdsu.edu (Todd Greene) said:
 
 > Is there an Xt call to give me my application context?
 > I am fixing up an X/Motif program, and am trying to use XtAppAddTimeOut,
 > whose first argument is the app_context.  What call can I use
 > to give me this value?
 
	XtAppContext XtWidgetToApplicationContext(Widget)

Of course, just using the app context returned from 
XtCreateApplicationContext, XtAppInitialize, etc. is the
best option, unless that path is not available.
