Huh.  TopLevelShell also inherits from vendorShell.  Ah,
it too just XtInheritRealize, so the depth will be 1.
ApplicationShell inherits from TopLevelShell, so it's
depth will be 2.  Shrug.  I guess use
wc != xmDialogShellWidgetClass or your fix.

Mitch

> -----Original Message-----
> From: Martin Simmons [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 19, 2000 3:24 PM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: RE: lesstif-CVS bug: Broken pipe with Grace
> 
> 
> >>>>> On Wed, 19 Jul 2000 14:57:57 -0400, "Mitch Miers" <[EMAIL PROTECTED]> 
>said:
> 
>   Mitch> It has the intended effect of only calling the realize callback
>   Mitch> once, but a more proper semantic would be
>   Mitch> ...
>   Mitch>     && IntentedWrapperDepth == 0)
> 
>   Mitch> as this would mean wc == vendorShellWidgetClass given what
>   Mitch> RealizeDepth() does.  So you could as well use that equality
>   Mitch> check as well.
> 
> Yep, I tried both IntentedWrapperDepth == 0 and wc == vendorShellWidgetClass
> at some time, but neither is correct alas.  They do work for DialogShell, but
> it seems that RealizeWrapper is never called at depth 0 for the normal shells
> like ApplicationShell and TopLevelShell, presumably because neither of them is
> implemented by Lesstif.
> 
> __Martin
> 

Reply via email to