diff options
author | nijtmans <nijtmans> | 2007-01-03 05:06:25 (GMT) |
---|---|---|
committer | nijtmans <nijtmans> | 2007-01-03 05:06:25 (GMT) |
commit | 04839e2ede345ab7e9e61a07baefd1c91cca56bf (patch) | |
tree | ee02b8a4aebc8b8d0adb8c18fad99e3cbea4c19a /generic/ttk/ttkButton.c | |
parent | df1d5b0c6b3bdf308fd86c0101f8e9110b177a6d (diff) | |
download | tk-04839e2ede345ab7e9e61a07baefd1c91cca56bf.zip tk-04839e2ede345ab7e9e61a07baefd1c91cca56bf.tar.gz tk-04839e2ede345ab7e9e61a07baefd1c91cca56bf.tar.bz2 |
various "const" additions, in line with TIP #27
Diffstat (limited to 'generic/ttk/ttkButton.c')
-rw-r--r-- | generic/ttk/ttkButton.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/generic/ttk/ttkButton.c b/generic/ttk/ttkButton.c index b87a7db..a054931 100644 --- a/generic/ttk/ttkButton.c +++ b/generic/ttk/ttkButton.c @@ -1,4 +1,4 @@ -/* $Id: ttkButton.c,v 1.4 2006/12/14 19:51:02 jenglish Exp $ +/* $Id: ttkButton.c,v 1.5 2007/01/03 05:06:25 nijtmans Exp $ * Copyright (c) 2003, Joe English * * label, button, checkbutton, radiobutton, and menubutton widgets. @@ -54,7 +54,7 @@ typedef struct BasePart base; } Base; -static Tk_OptionSpec BaseOptionSpecs[] = +static const Tk_OptionSpec BaseOptionSpecs[] = { {TK_OPTION_STRING, "-text", "text", "Text", "", Tk_Offset(Base,base.textObj), -1, @@ -219,7 +219,7 @@ typedef struct LabelPart label; } Label; -static Tk_OptionSpec LabelOptionSpecs[] = +static const Tk_OptionSpec LabelOptionSpecs[] = { {TK_OPTION_BORDER, "-background", "frameColor", "FrameColor", NULL, Tk_Offset(Label,label.backgroundObj), -1, @@ -296,7 +296,7 @@ typedef struct /* * Option specifications: */ -static Tk_OptionSpec ButtonOptionSpecs[] = +static const Tk_OptionSpec ButtonOptionSpecs[] = { WIDGET_TAKES_FOCUS, @@ -401,7 +401,7 @@ typedef struct /* * Option specifications: */ -static Tk_OptionSpec CheckbuttonOptionSpecs[] = +static const Tk_OptionSpec CheckbuttonOptionSpecs[] = { WIDGET_TAKES_FOCUS, @@ -593,7 +593,7 @@ typedef struct /* * Option specifications: */ -static Tk_OptionSpec RadiobuttonOptionSpecs[] = +static const Tk_OptionSpec RadiobuttonOptionSpecs[] = { WIDGET_TAKES_FOCUS, @@ -763,7 +763,7 @@ typedef struct static const char *directionStrings[] = { "above", "below", "left", "right", "flush", NULL }; -static Tk_OptionSpec MenubuttonOptionSpecs[] = +static const Tk_OptionSpec MenubuttonOptionSpecs[] = { WIDGET_TAKES_FOCUS, |