diff options
author | ericm <ericm@noemail.net> | 2000-09-29 17:55:30 (GMT) |
---|---|---|
committer | ericm <ericm@noemail.net> | 2000-09-29 17:55:30 (GMT) |
commit | a8513f52cd228c4d8255f56dcadc3c8b3a127e04 (patch) | |
tree | 9bdecb1bdde3ea9cc046f83fc3993dbdf3c089b8 /generic/tk.h | |
parent | 6a7cc7ec51c88a8ae16a52b993753612594e7617 (diff) | |
download | tk-a8513f52cd228c4d8255f56dcadc3c8b3a127e04.zip tk-a8513f52cd228c4d8255f56dcadc3c8b3a127e04.tar.gz tk-a8513f52cd228c4d8255f56dcadc3c8b3a127e04.tar.bz2 |
* generic/tkTest.c: Fixed tests to use updated API.
* doc/SetOptions.3:
* generic/tk.h:
* generic/tkConfig.c: Changed interface for Tk_CustomOptionSetProc
and Tk_CustomOptionGetProc; these now take a pointer to the start
of the widget record, and an integer offset to the slot for the
option value, instead of just a pointer to the slot. This allows
more sophisticated options to do interesting things based on other
data in the widget record.
FossilOrigin-Name: ec369c24d18e5de8d10ac7c7932338a0ed1267d0
Diffstat (limited to 'generic/tk.h')
-rw-r--r-- | generic/tk.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/tk.h b/generic/tk.h index bbecf6a..e372b3c 100644 --- a/generic/tk.h +++ b/generic/tk.h @@ -12,7 +12,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tk.h,v 1.50 2000/09/17 21:02:39 ericm Exp $ + * RCS: @(#) $Id: tk.h,v 1.51 2000/09/29 17:55:31 ericm Exp $ */ #ifndef _TK @@ -212,10 +212,10 @@ typedef struct Tk_OptionSpec { */ typedef int (Tk_CustomOptionSetProc) _ANSI_ARGS_((ClientData clientData, - Tcl_Interp *interp, Tk_Window tkwin, Tcl_Obj **value, - char *internalPtr, char *saveInternalPtr, int flags)); + Tcl_Interp *interp, Tk_Window tkwin, Tcl_Obj **value, char *widgRec, + int offset, char *saveInternalPtr, int flags)); typedef Tcl_Obj *(Tk_CustomOptionGetProc) _ANSI_ARGS_((ClientData clientData, - Tk_Window tkwin, char *internalPtr)); + Tk_Window tkwin, char *widgRec, int offset)); typedef void (Tk_CustomOptionRestoreProc) _ANSI_ARGS_((ClientData clientData, Tk_Window tkwin, char *internalPtr, char *saveInternalPtr)); typedef void (Tk_CustomOptionFreeProc) _ANSI_ARGS_((ClientData clientData, |