diff options
author | hobbs <hobbs@noemail.net> | 2006-03-29 05:38:13 (GMT) |
---|---|---|
committer | hobbs <hobbs@noemail.net> | 2006-03-29 05:38:13 (GMT) |
commit | e23827aff997f7b48179df1cf0b62934c2e13468 (patch) | |
tree | 1a84d31738597066184f9a1d42af881ec6da9a4f /generic | |
parent | 0f672020713e8bfe67dfc670a077108cd610332f (diff) | |
download | tk-e23827aff997f7b48179df1cf0b62934c2e13468.zip tk-e23827aff997f7b48179df1cf0b62934c2e13468.tar.gz tk-e23827aff997f7b48179df1cf0b62934c2e13468.tar.bz2 |
* generic/tkWindow.c (CreateTopLevelWindow): use thread exit
handler for DeleteWindowsExitProc.
FossilOrigin-Name: 1eb4d4eab5699e0fb96dab9e2c145e773a56b234
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tkWindow.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/generic/tkWindow.c b/generic/tkWindow.c index 92fa165..500aaac 100644 --- a/generic/tkWindow.c +++ b/generic/tkWindow.c @@ -12,7 +12,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkWindow.c,v 1.56.2.6 2005/07/28 03:45:03 hobbs Exp $ + * RCS: @(#) $Id: tkWindow.c,v 1.56.2.7 2006/03/29 05:38:14 hobbs Exp $ */ #include "tkPort.h" @@ -344,23 +344,24 @@ CreateTopLevelWindow(interp, parent, name, screenName, flags) /* * Create built-in image types. */ - + Tk_CreateImageType(&tkBitmapImageType); Tk_CreateImageType(&tkPhotoImageType); - + /* * Create built-in photo image formats. */ - + Tk_CreatePhotoImageFormat(&tkImgFmtGIF); Tk_CreatePhotoImageFormat(&tkImgFmtPPM); /* * Create exit handler to delete all windows when the application - * exits. + * exits. This must be a thread exit handler. */ - TkCreateExitHandler(DeleteWindowsExitProc, (ClientData) tsdPtr); + Tcl_CreateThreadExitHandler(DeleteWindowsExitProc, + (ClientData) tsdPtr); } if ((parent != NULL) && (screenName != NULL) && (screenName[0] == '\0')) { |