summaryrefslogtreecommitdiffstats
path: root/generic/tkScrollbar.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2024-06-16 22:16:46 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2024-06-16 22:16:46 (GMT)
commit72fb10940a9941ab37ccffa22f56a4f4a044e1fe (patch)
treed1ba9e919b7b48e86094388830d923d0831c2396 /generic/tkScrollbar.c
parent3951487aa1587e2fedee41985f6b60f0e9bb1e77 (diff)
downloadtk-72fb10940a9941ab37ccffa22f56a4f4a044e1fe.zip
tk-72fb10940a9941ab37ccffa22f56a4f4a044e1fe.tar.gz
tk-72fb10940a9941ab37ccffa22f56a4f4a044e1fe.tar.bz2
Implement TK_CONFIG_NULL_OK for TK_CONFIG_PIXELS. Needed for "-elementborderwidth" in tkScrollbar.c
Make TK_OPTION_NULL_OK the same value as TCL_NULL_OK for Tcl 9, but keep binary compatibility. Fix some spacing
Diffstat (limited to 'generic/tkScrollbar.c')
-rw-r--r--generic/tkScrollbar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tkScrollbar.c b/generic/tkScrollbar.c
index 04a4168..d91b603 100644
--- a/generic/tkScrollbar.c
+++ b/generic/tkScrollbar.c
@@ -57,7 +57,7 @@ static const Tk_ConfigSpec configSpecs[] = {
DEF_SCROLLBAR_CURSOR, offsetof(TkScrollbar, cursor), TK_CONFIG_NULL_OK, NULL},
{TK_CONFIG_PIXELS, "-elementborderwidth", "elementBorderWidth",
"BorderWidth", DEF_SCROLLBAR_EL_BORDER_WIDTH,
- offsetof(TkScrollbar, elementBorderWidth), 0, NULL},
+ offsetof(TkScrollbar, elementBorderWidth), TK_CONFIG_NULL_OK, NULL},
{TK_CONFIG_COLOR, "-highlightbackground", "highlightBackground",
"HighlightBackground", DEF_SCROLLBAR_HIGHLIGHT_BG,
offsetof(TkScrollbar, highlightBgColorPtr), 0, NULL},