diff options
author | nijtmans <nijtmans> | 2008-10-28 22:33:06 (GMT) |
---|---|---|
committer | nijtmans <nijtmans> | 2008-10-28 22:33:06 (GMT) |
commit | cfe62cbebc1beaa8564e7f7e4075c7b99763ac10 (patch) | |
tree | cf99f99a21277e0bc21da965946d8e129c1a5814 /generic/tkVisual.c | |
parent | 66cc8f9b15845d8a5470409603feec48ee347d5f (diff) | |
download | tk-cfe62cbebc1beaa8564e7f7e4075c7b99763ac10.zip tk-cfe62cbebc1beaa8564e7f7e4075c7b99763ac10.tar.gz tk-cfe62cbebc1beaa8564e7f7e4075c7b99763ac10.tar.bz2 |
CONSTify TkPrintPadAmount, TkCreateFrame, TkCreateMainWindow
and Tk_ParseArgv. move TkSelGetSelection to internal stub table
(needed in tkWinTest.c)
Diffstat (limited to 'generic/tkVisual.c')
-rw-r--r-- | generic/tkVisual.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/tkVisual.c b/generic/tkVisual.c index e0e100a..c2a9622 100644 --- a/generic/tkVisual.c +++ b/generic/tkVisual.c @@ -11,7 +11,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkVisual.c,v 1.11 2008/04/27 22:38:58 dkf Exp $ + * RCS: @(#) $Id: tkVisual.c,v 1.12 2008/10/28 22:33:06 nijtmans Exp $ */ #include "tkInt.h" @@ -22,12 +22,12 @@ */ typedef struct VisualDictionary { - char *name; /* Textual name of class. */ + const char *name; /* Textual name of class. */ int minLength; /* Minimum # characters that must be specified * for an unambiguous match. */ int class; /* X symbol for class. */ } VisualDictionary; -static VisualDictionary visualNames[] = { +static const VisualDictionary visualNames[] = { {"best", 1, 0}, {"directcolor", 2, DirectColor}, {"grayscale", 1, GrayScale}, @@ -104,7 +104,7 @@ Tk_GetVisual( ptrdiff_t length; int c, numVisuals, prio, bestPrio, i; const char *p; - VisualDictionary *dictPtr; + const VisualDictionary *dictPtr; TkColormap *cmapPtr; TkDisplay *dispPtr = ((TkWindow *) tkwin)->dispPtr; |