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 /win | |
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 'win')
-rw-r--r-- | win/tkWinButton.c | 10 | ||||
-rw-r--r-- | win/tkWinScrlbr.c | 7 |
2 files changed, 9 insertions, 8 deletions
diff --git a/win/tkWinButton.c b/win/tkWinButton.c index 1aff26b..0578b35 100644 --- a/win/tkWinButton.c +++ b/win/tkWinButton.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: tkWinButton.c,v 1.11 2000/11/03 01:22:16 hobbs Exp $ + * RCS: @(#) $Id: tkWinButton.c,v 1.12 2000/11/22 01:49:38 ericm Exp $ */ #define OEMRESOURCE @@ -89,10 +89,10 @@ static void InitBoxes _ANSI_ARGS_((void)); * The class procedure table for the button widgets. */ -TkClassProcs tkpButtonProcs = { - CreateProc, /* createProc. */ - TkButtonWorldChanged, /* geometryProc. */ - NULL /* modalProc. */ +Tk_ClassProcs tkpButtonProcs = { + sizeof(Tk_ClassProcs), /* size */ + TkButtonWorldChanged, /* worldChangedProc */ + CreateProc, /* createProc */ }; diff --git a/win/tkWinScrlbr.c b/win/tkWinScrlbr.c index 1a9cbc9..70fae0e 100644 --- a/win/tkWinScrlbr.c +++ b/win/tkWinScrlbr.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: tkWinScrlbr.c,v 1.6 2000/11/03 01:22:17 hobbs Exp $ + * RCS: @(#) $Id: tkWinScrlbr.c,v 1.7 2000/11/22 01:49:38 ericm Exp $ */ #include "tkWinInt.h" @@ -87,9 +87,10 @@ static void UpdateScrollbarMetrics _ANSI_ARGS_((void)); * The class procedure table for the scrollbar widget. */ -TkClassProcs tkpScrollbarProcs = { +Tk_ClassProcs tkpScrollbarProcs = { + sizeof(Tk_ClassProcs), /* size */ + NULL, /* worldChangedProc */ CreateProc, /* createProc */ - NULL, /* geometryProc */ ModalLoopProc, /* modalProc */ }; |