summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorhobbs <hobbs>2006-04-05 20:59:03 (GMT)
committerhobbs <hobbs>2006-04-05 20:59:03 (GMT)
commitee1adf1486555ec6159f35a5e2d3f7f150dc9573 (patch)
tree14d83611bf96b4a9c3456f524916408958611045 /generic
parent951e01d3eae848c5c963f0e91a100d5c61c8867e (diff)
downloadtk-ee1adf1486555ec6159f35a5e2d3f7f150dc9573.zip
tk-ee1adf1486555ec6159f35a5e2d3f7f150dc9573.tar.gz
tk-ee1adf1486555ec6159f35a5e2d3f7f150dc9573.tar.bz2
* generic/tkMenu.c (TkSetWindowMenuBar): remove extra TkMenuInit
call that caused finalization panic. [Bug 1456851] * win/tkWinMenu.c (FreeID, TkpNewMenu, MenuExitHandler) (MenuThreadExitHandler, TkpMenuInit, TkpMenuThreadInit): rework Windows menu init/finalization to better respect per-process and per-thread boundaries. [Bug 1456851] (TkWinMenuKeyObjCmd): Do not error when unknown window is passed in. [Bug 1236306]
Diffstat (limited to 'generic')
-rw-r--r--generic/tkMenu.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/generic/tkMenu.c b/generic/tkMenu.c
index 8f55f45..37644a4 100644
--- a/generic/tkMenu.c
+++ b/generic/tkMenu.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: tkMenu.c,v 1.34 2005/11/27 02:36:14 das Exp $
+ * RCS: @(#) $Id: tkMenu.c,v 1.35 2006/04/05 20:59:03 hobbs Exp $
*/
/*
@@ -3072,22 +3072,11 @@ TkSetWindowMenuBar(
* toplevel needs to be set to. NULL means
* that their is no menu now. */
{
- TkWindow *winPtr = (TkWindow *)tkwin;
TkMenuTopLevelList *topLevelListPtr, *prevTopLevelPtr;
TkMenu *menuPtr;
TkMenuReferences *menuRefPtr;
/*
- * Avoid reinitialization if we are just cleaning up dead windows.
- * Perhaps knowing when Tcl was really exiting would be better than just
- * checking for this winPtr being dead. [Bug 749908]
- */
-
- if (!(winPtr->flags & TK_ALREADY_DEAD)) {
- TkMenuInit();
- }
-
- /*
* Destroy the menubar instances of the old menu. Take this window out of
* the old menu's top level reference list.
*/