summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXEmbed.c
diff options
context:
space:
mode:
authorchengyemao <chengyemao>2005-01-09 18:28:05 (GMT)
committerchengyemao <chengyemao>2005-01-09 18:28:05 (GMT)
commita2455a5686d0db82e6d05203f8048152c7e7193f (patch)
tree1bb1ddf055844df628ee13afe56678577b189eee /macosx/tkMacOSXEmbed.c
parentcba943c4319df81bcd561b2e6f6ec5e445d8dd11 (diff)
downloadtk-a2455a5686d0db82e6d05203f8048152c7e7193f.zip
tk-a2455a5686d0db82e6d05203f8048152c7e7193f.tar.gz
tk-a2455a5686d0db82e6d05203f8048152c7e7193f.tar.bz2
Changed to make platform implementation ready for a toplevel -use option; completed a full toplevel -use option configuration for Windows
Diffstat (limited to 'macosx/tkMacOSXEmbed.c')
-rw-r--r--macosx/tkMacOSXEmbed.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/macosx/tkMacOSXEmbed.c b/macosx/tkMacOSXEmbed.c
index 15be5b4..7ed29e8 100644
--- a/macosx/tkMacOSXEmbed.c
+++ b/macosx/tkMacOSXEmbed.c
@@ -14,7 +14,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkMacOSXEmbed.c,v 1.3 2004/01/13 02:06:01 davygrvy Exp $
+ * RCS: @(#) $Id: tkMacOSXEmbed.c,v 1.4 2005/01/09 18:28:06 chengyemao Exp $
*/
#include "tkInt.h"
@@ -242,7 +242,8 @@ TkpUseWindow(
int result;
if (winPtr->window != None) {
- Tcl_Panic("TkpUseWindow: X window already assigned");
+ Tcl_AppendResult(interp, "can't modify container after widget is created", (char *) NULL);
+ return TCL_ERROR;
}
/*