summaryrefslogtreecommitdiffstats
path: root/generic/tkListbox.c
diff options
context:
space:
mode:
authornijtmans <nijtmans>2007-01-03 05:06:25 (GMT)
committernijtmans <nijtmans>2007-01-03 05:06:25 (GMT)
commit04839e2ede345ab7e9e61a07baefd1c91cca56bf (patch)
treeee02b8a4aebc8b8d0adb8c18fad99e3cbea4c19a /generic/tkListbox.c
parentdf1d5b0c6b3bdf308fd86c0101f8e9110b177a6d (diff)
downloadtk-04839e2ede345ab7e9e61a07baefd1c91cca56bf.zip
tk-04839e2ede345ab7e9e61a07baefd1c91cca56bf.tar.gz
tk-04839e2ede345ab7e9e61a07baefd1c91cca56bf.tar.bz2
various "const" additions, in line with TIP #27
Diffstat (limited to 'generic/tkListbox.c')
-rw-r--r--generic/tkListbox.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tkListbox.c b/generic/tkListbox.c
index d5f0663..ca888a2 100644
--- a/generic/tkListbox.c
+++ b/generic/tkListbox.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: tkListbox.c,v 1.36 2006/12/04 20:13:21 hobbs Exp $
+ * RCS: @(#) $Id: tkListbox.c,v 1.37 2007/01/03 05:06:25 nijtmans Exp $
*/
#include "tkPort.h"
@@ -230,7 +230,7 @@ static char *activeStyleStrings[] = {
* listbox widget.
*/
-static Tk_OptionSpec optionSpecs[] = {
+static const Tk_OptionSpec optionSpecs[] = {
{TK_OPTION_STRING_TABLE, "-activestyle", "activeStyle", "ActiveStyle",
DEF_LISTBOX_ACTIVE_STYLE, -1, Tk_Offset(Listbox, activeStyle),
0, (ClientData) activeStyleStrings, 0},
@@ -311,7 +311,7 @@ static Tk_OptionSpec optionSpecs[] = {
* listbox items
*/
-static Tk_OptionSpec itemAttrOptionSpecs[] = {
+static const Tk_OptionSpec itemAttrOptionSpecs[] = {
{TK_OPTION_BORDER, "-background", "background", "Background",
NULL, -1, Tk_Offset(ItemAttr, border),
TK_OPTION_NULL_OK|TK_OPTION_DONT_SET_DEFAULT,