From: Jeff H. <je...@ac...> - 2010-12-21 02:23:46
|
Hi Israel, On 20/12/2010 11:08 AM, Israel Chauca F. wrote: > Hi there! > > Scid has a startup problem using docked windows with the cocoa build and I can't understand what could be happening. A line with "wm stackorder ." raises the error "num matched toplevel windows does not equal num children", which is quite verbose, but I have no idea what it means. > > I checked Tk source to see if I could understand why the error was being raised and found that the following line is the responsible for the message: > > https://github.com/das/tcltk/blob/de-carbon-8-5/tk/macosx/tkMacOSXWm.c#L5890 > > but my C/Tcl/Tk-fu is not up to the challenge, so I have no idea about when it should be sent or why. > > Since it fixes a couple of problems, I'd really like to be able to include the Cocoa Tk with Scid, but I need to understand what is the cause of the error in order to try to fix it. Could somebody try to enlighten me with an explanation of that error message? I just compared the code to the unix variant and found that this panic was removed on unix for curious reasons. Best to just read the comments and see the patch at: https://sourceforge.net/tracker/index.php?func=detail&aid=1789819&group_id=12997&atid=112997 I assume the same patch would apply accurately for tkMacOSXWm.c as the logic in those areas is very similar. Jeff |