summaryrefslogtreecommitdiffstats
path: root/generic/tk3d.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2001-08-15 15:44:35 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2001-08-15 15:44:35 (GMT)
commit0494d6ea369901955402d84ce76a13ddc200957f (patch)
treee817d32e68064c76449930b08bb891ff654501b8 /generic/tk3d.c
parentfb862db0788d85c6d070781c2cad608e0a470a96 (diff)
downloadtk-0494d6ea369901955402d84ce76a13ddc200957f.zip
tk-0494d6ea369901955402d84ce76a13ddc200957f.tar.gz
tk-0494d6ea369901955402d84ce76a13ddc200957f.tar.bz2
Register Tk's object types with Tcl (Tcl Bug 450545)
Diffstat (limited to 'generic/tk3d.c')
-rw-r--r--generic/tk3d.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/generic/tk3d.c b/generic/tk3d.c
index e6ba11a..4106745 100644
--- a/generic/tk3d.c
+++ b/generic/tk3d.c
@@ -10,7 +10,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tk3d.c,v 1.10 2000/05/17 21:17:20 ericm Exp $
+ * RCS: @(#) $Id: tk3d.c,v 1.11 2001/08/15 15:44:35 dkf Exp $
*/
#include "tk3d.h"
@@ -46,7 +46,7 @@ static void ShiftLine _ANSI_ARGS_((XPoint *p1Ptr, XPoint *p2Ptr,
* is set.
*/
-static Tcl_ObjType borderObjType = {
+Tcl_ObjType tkBorderObjType = {
"border", /* name */
FreeBorderObjProc, /* freeIntRepProc */
DupBorderObjProc, /* dupIntRepProc */
@@ -87,7 +87,7 @@ Tk_Alloc3DBorderFromObj(interp, tkwin, objPtr)
{
TkBorder *borderPtr;
- if (objPtr->typePtr != &borderObjType) {
+ if (objPtr->typePtr != &tkBorderObjType) {
InitBorderObj(objPtr);
}
borderPtr = (TkBorder *) objPtr->internalRep.twoPtrValue.ptr1;
@@ -1263,7 +1263,7 @@ Tk_Get3DBorderFromObj(tkwin, objPtr)
Tcl_HashEntry *hashPtr;
TkDisplay *dispPtr = ((TkWindow *) tkwin)->dispPtr;
- if (objPtr->typePtr != &borderObjType) {
+ if (objPtr->typePtr != &tkBorderObjType) {
InitBorderObj(objPtr);
}
@@ -1356,7 +1356,7 @@ InitBorderObj(objPtr)
if ((typePtr != NULL) && (typePtr->freeIntRepProc != NULL)) {
(*typePtr->freeIntRepProc)(objPtr);
}
- objPtr->typePtr = &borderObjType;
+ objPtr->typePtr = &tkBorderObjType;
objPtr->internalRep.twoPtrValue.ptr1 = (VOID *) NULL;
}