rao@gabber.kodak.com ( Arun Rao) (04/25/91)
This posting apparently didn't make it out yesterday -- sorry if it actually did. I have an application which has various widgets which need to perform miscellaneous clean-up/housekeeping tasks before quitting. To this end, I have registered appropriate destroy callbacks (XtNdestroyCallback list) with the widgets in question. I expect these to be called when I explicitly destroy the topmost widget in the tree before quitting. So far, I have had no success -- the destroy callbacks are not executed at all. Is there something fundamentally wrong with my assumption? Any tips would be greatly appreciated. Thanks in advance. -Arun
marbru@auto-trol.com (Martin Brunecky) (04/25/91)
One of your assumptions is wrong -): you assume Motif is an Xt based toolkit -) But seriously, it is important to know WHICH Motif you are using, note that Motif 1.0 had it's own, private Xt, and that Motif 1.1 requires MIT R4 Xt patchlevel 18 (+1 more) ( and in my opinion it often does not play by the Xt rules ). However, none of the above would explain why the destroy callbacks don't get executed ... though somewehere in the back of my mind something rings about some problems in this area, related to some special objects Motif creates... So at least, next time you ask for help, describe your widget hierarchy in terms of widget classes used .... and the call used to destroy it. May be someone wil be able to help you then. -- =*= Opinions presented here are solely of my own and not those of Auto-trol =*= Martin Brunecky marbru%auto-trol@sunpeaks.central.sun.com (303) 252-2499 (better avoid: marbru@auto-trol.COM ) Auto-trol Technology Corp. 12500 North Washington St., Denver, CO 80241-2404
nazgul@alphalpha.com (Kee Hinckley) (04/26/91)
In article <1991Apr25.123828.13830@usenet@kadsma> rao@gabber.kodak.com ( Arun Rao) writes: > end, I have registered appropriate destroy callbacks (XtNdestroyCallback > list) with the widgets in question. I expect these to be called when > I explicitly destroy the topmost widget in the tree before quitting. They will be, but not until you return to the event loop. -- Alfalfa Software, Inc. | Poste: The EMail for Unix nazgul@alfalfa.com | Send Anything... Anywhere 617/646-7703 (voice/fax) | info@alfalfa.com I'm not sure which upsets me more: that people are so unwilling to accept responsibility for their own actions, or that they are so eager to regulate everyone else's.