diff options
author | ericm <ericm> | 2000-11-22 01:49:37 (GMT) |
---|---|---|
committer | ericm <ericm> | 2000-11-22 01:49:37 (GMT) |
commit | de39e31b0e2fe25bdace0f7cc595bf23c3b50647 (patch) | |
tree | b3d9ff19b6b8294780db27da55671e4ef2f9fd75 /generic/tkText.c | |
parent | 5f087931231b7d843af1631a08f139365b35975c (diff) | |
download | tk-de39e31b0e2fe25bdace0f7cc595bf23c3b50647.zip tk-de39e31b0e2fe25bdace0f7cc595bf23c3b50647.tar.gz tk-de39e31b0e2fe25bdace0f7cc595bf23c3b50647.tar.bz2 |
Overall change: Implemented TIP 5, which exports
TkClassProcs/TkSetClassProcs as Tk_ClassProcs/Tk_SetClassProcs,
adding a size field to Tk_ClassProcs to allow for future
expansion, and renaming the geometryProc to worldChangedProc,
which is more in keeping with the actual use of the callback.
See ChangeLog for details.
Diffstat (limited to 'generic/tkText.c')
-rw-r--r-- | generic/tkText.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/generic/tkText.c b/generic/tkText.c index 2ab2e2a..ef1ae4d 100644 --- a/generic/tkText.c +++ b/generic/tkText.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: tkText.c,v 1.17 2000/07/25 00:05:40 ericm Exp $ + * RCS: @(#) $Id: tkText.c,v 1.18 2000/11/22 01:49:38 ericm Exp $ */ #include "default.h" @@ -310,10 +310,9 @@ static int DumpSegment _ANSI_ARGS_((Tcl_Interp *interp, char *key, * that can be invoked from generic window code. */ -static TkClassProcs textClass = { - NULL, /* createProc. */ - TextWorldChanged, /* geometryProc. */ - NULL /* modalProc. */ +static Tk_ClassProcs textClass = { + sizeof(Tk_ClassProcs), /* size */ + TextWorldChanged, /* worldChangedProc */ }; @@ -440,7 +439,7 @@ Tk_TextCmd(clientData, interp, argc, argv) textPtr->insertMarkPtr = TkTextSetMark(textPtr, "insert", &startIndex); Tk_SetClass(textPtr->tkwin, "Text"); - TkSetClassProcs(textPtr->tkwin, &textClass, (ClientData) textPtr); + Tk_SetClassProcs(textPtr->tkwin, &textClass, (ClientData) textPtr); Tk_CreateEventHandler(textPtr->tkwin, ExposureMask|StructureNotifyMask|FocusChangeMask, TextEventProc, (ClientData) textPtr); |