diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2001-08-15 15:44:35 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2001-08-15 15:44:35 (GMT) |
commit | 0494d6ea369901955402d84ce76a13ddc200957f (patch) | |
tree | e817d32e68064c76449930b08bb891ff654501b8 /generic/tkObj.c | |
parent | fb862db0788d85c6d070781c2cad608e0a470a96 (diff) | |
download | tk-0494d6ea369901955402d84ce76a13ddc200957f.zip tk-0494d6ea369901955402d84ce76a13ddc200957f.tar.gz tk-0494d6ea369901955402d84ce76a13ddc200957f.tar.bz2 |
Register Tk's object types with Tcl (Tcl Bug 450545)
Diffstat (limited to 'generic/tkObj.c')
-rw-r--r-- | generic/tkObj.c | 34 |
1 files changed, 33 insertions, 1 deletions
diff --git a/generic/tkObj.c b/generic/tkObj.c index b26da1c..1a4372b 100644 --- a/generic/tkObj.c +++ b/generic/tkObj.c @@ -9,7 +9,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkObj.c,v 1.4 2001/03/30 07:11:44 hobbs Exp $ + * RCS: @(#) $Id: tkObj.c,v 1.5 2001/08/15 15:44:36 dkf Exp $ */ #include "tkInt.h" @@ -735,3 +735,35 @@ SetWindowFromAny(interp, objPtr) return TCL_OK; } + +/* + *---------------------------------------------------------------------- + * + * TkRegisterObjTypes -- + * + * Registers Tk's Tcl_ObjType structures with the Tcl run-time. + * + * Results: + * None + * + * Side effects: + * All instances of Tcl_ObjType structues used in Tk are registered + * with Tcl. + * + *---------------------------------------------------------------------- + */ + +void +TkRegisterObjTypes() +{ + Tcl_RegisterObjType(&tkBorderObjType); + Tcl_RegisterObjType(&tkBitmapObjType); + Tcl_RegisterObjType(&tkColorObjType); + Tcl_RegisterObjType(&tkCursorObjType); + Tcl_RegisterObjType(&tkFontObjType); + Tcl_RegisterObjType(&mmObjType); + Tcl_RegisterObjType(&tkOptionObjType); + Tcl_RegisterObjType(&pixelObjType); + Tcl_RegisterObjType(&tkStateKeyObjType); + Tcl_RegisterObjType(&windowObjType); +} |