From 6dbc2e8dbbfbad51e0a9464f28a3ae1d06649250 Mon Sep 17 00:00:00 2001 From: chengyemao Date: Fri, 7 Jan 2005 01:39:24 +0000 Subject: Removed unnecsssary panic from TkpUseWindow and forced redraw container after the embedded detached --- win/tkWinEmbed.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/win/tkWinEmbed.c b/win/tkWinEmbed.c index 4c4fb69..3a0ccfd 100644 --- a/win/tkWinEmbed.c +++ b/win/tkWinEmbed.c @@ -11,7 +11,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkWinEmbed.c,v 1.17 2005/01/05 02:46:59 chengyemao Exp $ + * RCS: @(#) $Id: tkWinEmbed.c,v 1.18 2005/01/07 01:39:24 chengyemao Exp $ */ #include "tkWinInt.h" @@ -163,10 +163,6 @@ TkpUseWindow(interp, tkwin, string) ThreadSpecificData *tsdPtr = (ThreadSpecificData *) Tcl_GetThreadData(&dataKey, sizeof(ThreadSpecificData)); - if (winPtr->window != None) { - Tcl_Panic("TkpUseWindow: Already assigned a window"); - } - if (Tcl_GetInt(interp, string, &id) != TCL_OK) { return TCL_ERROR; } @@ -424,6 +420,7 @@ TkWinEmbeddedEventProc(hwnd, message, wParam, lParam) containerPtr->embeddedMenuHWnd = NULL; containerPtr->embeddedHWnd = NULL; containerPtr->parentPtr->flags &= ~TK_BOTH_HALVES; + InvalidateRect(hwnd, NULL, TRUE); break; case TK_GEOMETRYREQ: -- cgit v0.12