diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2024-06-17 10:06:34 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2024-06-17 10:06:34 (GMT) |
commit | b8b8de56e290dd3d82585190651360c843542e7b (patch) | |
tree | 59a06e08d732d6a5aa0483a0cf1e42292920db43 /unix | |
parent | a57ef5af4aab0abe5f0a7f1676b8cc6c3c057dbd (diff) | |
download | tk-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 'unix')
-rw-r--r-- | unix/tkUnixDefault.h | 2 | ||||
-rw-r--r-- | unix/tkUnixScrlbr.c | 3 |
2 files changed, 1 insertions, 4 deletions
diff --git a/unix/tkUnixDefault.h b/unix/tkUnixDefault.h index dfcf858..16fdcc6 100644 --- a/unix/tkUnixDefault.h +++ b/unix/tkUnixDefault.h @@ -448,7 +448,7 @@ #define DEF_SCROLLBAR_BORDER_WIDTH "1" #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 BLACK #define DEF_SCROLLBAR_HIGHLIGHT_WIDTH "0" diff --git a/unix/tkUnixScrlbr.c b/unix/tkUnixScrlbr.c index 001b2e9..65166e4 100644 --- a/unix/tkUnixScrlbr.c +++ b/unix/tkUnixScrlbr.c @@ -283,9 +283,6 @@ TkpComputeScrollbarGeometry( { int width, fieldLength; - if (scrollPtr->highlightWidth < 0) { - scrollPtr->highlightWidth = 0; - } scrollPtr->inset = scrollPtr->highlightWidth + scrollPtr->borderWidth; width = (scrollPtr->vertical) ? Tk_Width(scrollPtr->tkwin) : Tk_Height(scrollPtr->tkwin); |