home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!hal.com!decwrl!sdd.hp.com!usc!snorkelwacker.mit.edu!bloom-beacon!INTERNET!dont-send-mail-to-path-lines
- From: converse@expo.lcs.mit.EDU (Donna Converse)
- Newsgroups: comp.windows.x
- Subject: Re: Are you destroyed yet?
- Message-ID: <9207271758.AA18246@excess.lcs.mit.edu>
- Date: 27 Jul 92 17:58:34 GMT
- References: <9207270032.AA03102@hyundai.unisql>
- Sender: daemon@athena.mit.edu (Mr Background)
- Organization: X Consortium, MIT Laboratory for Computer Science
- Lines: 21
-
-
- > What's the politically correct way of determining if a widget is in the
- > process of being destroyed?
-
- Depends on who's asking. Application writer or widget writer?
-
- > Testing core.being_destroyed seems to be the
- > only way, but isn't this really an illicit peek under the rug?
-
- For application writers, yes it is discouraged, because you have to include
- data structure declarations which are (intended to be) internal to the widgets.
- For widget writers, accessing this field is fine; it is specified to be there
- and XtDestroyWidget specifies when the field will be True or False. If
- you are an application writer and you find yourself wanting to test whether
- a widget is being destroyed, ask why you couldn't rely on notification
- instead (that is, register a destroy callback) and if you must test by
- inspecting the widget data structure, maybe there is a design level issue
- that is at conflict with the model supplied by Xt.
-
-
- Donna Converse
-