From 9daa69d043816ae24b0de03552135d4cbed3b061 Mon Sep 17 00:00:00 2001 From: hobbs Date: Wed, 29 Mar 2006 05:38:13 +0000 Subject: * generic/tkWindow.c (CreateTopLevelWindow): use thread exit handler for DeleteWindowsExitProc. --- ChangeLog | 5 +++++ generic/tkWindow.c | 13 +++++++------ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index a30038f..f6c23a2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-03-28 Jeff Hobbs + + * generic/tkWindow.c (CreateTopLevelWindow): use thread exit + handler for DeleteWindowsExitProc. + 2006-03-28 Pat Thoyts * win/makefile.vc: Avoid pipe problems on win98. 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')) { -- cgit v0.12