diff options
author | nijtmans <nijtmans> | 2008-11-09 20:51:28 (GMT) |
---|---|---|
committer | nijtmans <nijtmans> | 2008-11-09 20:51:28 (GMT) |
commit | df18c1fe67355d2bb0b36c28e8c9a66f1d5ae3c8 (patch) | |
tree | b0eb47d8c31b341a93520b3ddc364fcb3e5077df /generic/tkCanvText.c | |
parent | 6bb91a5313a57dceb34e2cd3764971af61368408 (diff) | |
download | tk-df18c1fe67355d2bb0b36c28e8c9a66f1d5ae3c8.zip tk-df18c1fe67355d2bb0b36c28e8c9a66f1d5ae3c8.tar.gz tk-df18c1fe67355d2bb0b36c28e8c9a66f1d5ae3c8.tar.bz2 |
make all Tk_CustomOption tables const and
remove unnecessary type cast
Diffstat (limited to 'generic/tkCanvText.c')
-rw-r--r-- | generic/tkCanvText.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/tkCanvText.c b/generic/tkCanvText.c index bc0fe74..efa2b70 100644 --- a/generic/tkCanvText.c +++ b/generic/tkCanvText.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: tkCanvText.c,v 1.31 2008/11/01 16:14:30 dkf Exp $ + * RCS: @(#) $Id: tkCanvText.c,v 1.32 2008/11/09 20:51:28 nijtmans Exp $ */ #include <stdio.h> @@ -84,13 +84,13 @@ typedef struct TextItem { * Information used for parsing configuration specs: */ -static Tk_CustomOption stateOption = { +static const Tk_CustomOption stateOption = { TkStateParseProc, TkStatePrintProc, (ClientData) 2 }; -static Tk_CustomOption tagsOption = { +static const Tk_CustomOption tagsOption = { Tk_CanvasTagsParseProc, Tk_CanvasTagsPrintProc, (ClientData) NULL }; -static Tk_CustomOption offsetOption = { +static const Tk_CustomOption offsetOption = { TkOffsetParseProc, TkOffsetPrintProc, (ClientData) (TK_OFFSET_RELATIVE) }; |