summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2024-06-17 10:06:34 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2024-06-17 10:06:34 (GMT)
commitb8b8de56e290dd3d82585190651360c843542e7b (patch)
tree59a06e08d732d6a5aa0483a0cf1e42292920db43 /win
parenta57ef5af4aab0abe5f0a7f1676b8cc6c3c057dbd (diff)
downloadtk-b8b8de56e290dd3d82585190651360c843542e7b.zip
tk-b8b8de56e290dd3d82585190651360c843542e7b.tar.gz
tk-b8b8de56e290dd3d82585190651360c843542e7b.tar.bz2
Change the -elementborderwidth default (for scrollbar) from -1 to {}. Move sanity check from platform-code to generic. See TIP #577.
Diffstat (limited to 'win')
-rw-r--r--win/tkWinDefault.h2
-rw-r--r--win/tkWinScrlbr.c4
2 files changed, 1 insertions, 5 deletions
diff --git a/win/tkWinDefault.h b/win/tkWinDefault.h
index 5318f84..5af7877 100644
--- a/win/tkWinDefault.h
+++ b/win/tkWinDefault.h
@@ -450,7 +450,7 @@
#define DEF_SCROLLBAR_BORDER_WIDTH "0"
#define DEF_SCROLLBAR_COMMAND ""
#define DEF_SCROLLBAR_CURSOR ""
-#define DEF_SCROLLBAR_EL_BORDER_WIDTH "-1"
+#define DEF_SCROLLBAR_EL_BORDER_WIDTH NULL
#define DEF_SCROLLBAR_HIGHLIGHT_BG NORMAL_BG
#define DEF_SCROLLBAR_HIGHLIGHT HIGHLIGHT
#define DEF_SCROLLBAR_HIGHLIGHT_WIDTH "0"
diff --git a/win/tkWinScrlbr.c b/win/tkWinScrlbr.c
index 457b82f..a54deeb 100644
--- a/win/tkWinScrlbr.c
+++ b/win/tkWinScrlbr.c
@@ -394,10 +394,6 @@ TkpComputeScrollbarGeometry(
* basic sanity checks to appease backwards compatibility.
*/
- if (scrollPtr->highlightWidth < 0) {
- scrollPtr->highlightWidth = 0;
- }
-
if (scrollPtr->vertical) {
scrollPtr->arrowLength = vArrowHeight;
fieldLength = Tk_Height(scrollPtr->tkwin);