summaryrefslogtreecommitdiffstats
path: root/generic/ttk/ttkScrollbar.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-02-06 11:52:04 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-02-06 11:52:04 (GMT)
commitbb451dfa1c09cc91c232cae7df94ecd215ee309b (patch)
tree061497eeb1942b0371db61d67ffaa70db8aa3483 /generic/ttk/ttkScrollbar.c
parent9905c8d8c5b919c6205b5cb20e0cfdf48b76596b (diff)
downloadtk-bb451dfa1c09cc91c232cae7df94ecd215ee309b.zip
tk-bb451dfa1c09cc91c232cae7df94ecd215ee309b.tar.gz
tk-bb451dfa1c09cc91c232cae7df94ecd215ee309b.tar.bz2
Add many 'const' modifiers, allowing the C-compiler to put many configuration-tables in static read-only memory. Mainly for Ttk (because Tk already did this a long time ago).
Diffstat (limited to 'generic/ttk/ttkScrollbar.c')
-rw-r--r--generic/ttk/ttkScrollbar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/ttk/ttkScrollbar.c b/generic/ttk/ttkScrollbar.c
index 2825c54..4648d91 100644
--- a/generic/ttk/ttkScrollbar.c
+++ b/generic/ttk/ttkScrollbar.c
@@ -31,7 +31,7 @@ typedef struct
ScrollbarPart scrollbar;
} Scrollbar;
-static Tk_OptionSpec ScrollbarOptionSpecs[] =
+static const Tk_OptionSpec ScrollbarOptionSpecs[] =
{
{TK_OPTION_STRING, "-command", "command", "Command", "",
offsetof(Scrollbar,scrollbar.commandObj), -1, 0,0,0},