diff options
author | chengyemao <chengyemao@noemail.net> | 2005-01-07 01:39:23 (GMT) |
---|---|---|
committer | chengyemao <chengyemao@noemail.net> | 2005-01-07 01:39:23 (GMT) |
commit | 6c116418076f79a8b9448025854fa471d0a1fb5c (patch) | |
tree | ee0ed4a5be197d26d3c52068269082853bfcfdf6 | |
parent | 94495c24bc0d4ab40e474a4894e2126d4c81824a (diff) | |
download | tk-6c116418076f79a8b9448025854fa471d0a1fb5c.zip tk-6c116418076f79a8b9448025854fa471d0a1fb5c.tar.gz tk-6c116418076f79a8b9448025854fa471d0a1fb5c.tar.bz2 |
Removed unnecsssary panic from TkpUseWindow and forced redraw container after the embedded detached
FossilOrigin-Name: a69c1fa380df47234f736b9ea68f7f670241208d
-rw-r--r-- | win/tkWinEmbed.c | 7 |
1 files 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: |