summaryrefslogtreecommitdiffstats
path: root/win/tkWinEmbed.c
diff options
context:
space:
mode:
authorchengyemao <chengyemao>2005-01-07 01:39:24 (GMT)
committerchengyemao <chengyemao>2005-01-07 01:39:24 (GMT)
commit6dbc2e8dbbfbad51e0a9464f28a3ae1d06649250 (patch)
treeee0ed4a5be197d26d3c52068269082853bfcfdf6 /win/tkWinEmbed.c
parent5c174947d8e94088fa80d52bd1a7356766aa133a (diff)
downloadtk-6dbc2e8dbbfbad51e0a9464f28a3ae1d06649250.zip
tk-6dbc2e8dbbfbad51e0a9464f28a3ae1d06649250.tar.gz
tk-6dbc2e8dbbfbad51e0a9464f28a3ae1d06649250.tar.bz2
Removed unnecsssary panic from TkpUseWindow and forced redraw container after the embedded detached
Diffstat (limited to 'win/tkWinEmbed.c')
-rw-r--r--win/tkWinEmbed.c7
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: