diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2024-05-13 13:46:23 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2024-05-13 13:46:23 (GMT) |
commit | 4e62a7b2dd7655dae65e0fe637912e870209f2c7 (patch) | |
tree | 035dea7d480c890753ad99d0ac2bfd437f82b6c4 | |
parent | 2c3ccd7095739d87563b0fb410fc21cfbc9d383b (diff) | |
parent | 91030c03b750afa4571fe20a9dbcdf4208c899b5 (diff) | |
download | tk-4e62a7b2dd7655dae65e0fe637912e870209f2c7.zip tk-4e62a7b2dd7655dae65e0fe637912e870209f2c7.tar.gz tk-4e62a7b2dd7655dae65e0fe637912e870209f2c7.tar.bz2 |
Merge 8.7
-rw-r--r-- | generic/ttk/ttkEntry.c | 6 | ||||
-rw-r--r-- | generic/ttk/ttkNotebook.c | 2 | ||||
-rw-r--r-- | library/ttk/aquaTheme.tcl | 1 | ||||
-rw-r--r-- | library/ttk/clamTheme.tcl | 1 | ||||
-rw-r--r-- | library/ttk/classicTheme.tcl | 1 | ||||
-rw-r--r-- | library/ttk/defaults.tcl | 1 | ||||
-rw-r--r-- | library/ttk/winTheme.tcl | 2 |
7 files changed, 5 insertions, 9 deletions
diff --git a/generic/ttk/ttkEntry.c b/generic/ttk/ttkEntry.c index c279ed8..85d65e9 100644 --- a/generic/ttk/ttkEntry.c +++ b/generic/ttk/ttkEntry.c @@ -1252,9 +1252,9 @@ static void EntryDisplay(void *clientData, Drawable d) Tk_3DBorder selBorder = Tk_Get3DBorderFromObj(tkwin, es.selBorderObj); int selStartX = EntryCharPosition(entryPtr, selFirst); int selEndX = EntryCharPosition(entryPtr, selLast); - int borderWidth = 1; + int borderWidth = 0; - Tcl_GetIntFromObj(NULL, es.selBorderWidthObj, &borderWidth); + Tk_GetPixelsFromObj(NULL, tkwin, es.selBorderWidthObj, &borderWidth); if (selBorder) { Tk_Fill3DRectangle(tkwin, d, selBorder, @@ -1288,7 +1288,7 @@ static void EntryDisplay(void *clientData, Drawable d) cursorHeight = entryPtr->entry.layoutHeight, cursorWidth = 1; - Tcl_GetIntFromObj(NULL,es.insertWidthObj,&cursorWidth); + Tk_GetPixelsFromObj(NULL, tkwin, es.insertWidthObj, &cursorWidth); if (cursorWidth <= 0) { cursorWidth = 1; } diff --git a/generic/ttk/ttkNotebook.c b/generic/ttk/ttkNotebook.c index f8198cc..8c771ee 100644 --- a/generic/ttk/ttkNotebook.c +++ b/generic/ttk/ttkNotebook.c @@ -189,7 +189,7 @@ static void NotebookStyleOptions( nbstyle->minTabWidth = DEFAULT_MIN_TAB_WIDTH; if ((objPtr = Ttk_QueryOption(nb->core.layout, "-mintabwidth", 0)) != 0) { - Tcl_GetIntFromObj(NULL, objPtr, &nbstyle->minTabWidth); + Tk_GetPixelsFromObj(NULL, tkwin, objPtr, &nbstyle->minTabWidth); } } diff --git a/library/ttk/aquaTheme.tcl b/library/ttk/aquaTheme.tcl index 06b8769..a631376 100644 --- a/library/ttk/aquaTheme.tcl +++ b/library/ttk/aquaTheme.tcl @@ -11,7 +11,6 @@ namespace eval ttk::theme::aqua { -foreground systemLabelColor \ -selectbackground systemSelectedTextBackgroundColor \ -selectforeground systemSelectedTextColor \ - -selectborderwidth 0 \ -insertwidth 1 ttk::style map . \ diff --git a/library/ttk/clamTheme.tcl b/library/ttk/clamTheme.tcl index f4644ee..be72290 100644 --- a/library/ttk/clamTheme.tcl +++ b/library/ttk/clamTheme.tcl @@ -33,7 +33,6 @@ namespace eval ttk::theme::clam { -troughcolor $colors(-darker) \ -selectbackground $colors(-selectbg) \ -selectforeground $colors(-selectfg) \ - -selectborderwidth 0 \ -font TkDefaultFont ttk::style map "." \ diff --git a/library/ttk/classicTheme.tcl b/library/ttk/classicTheme.tcl index 575e899..7964034 100644 --- a/library/ttk/classicTheme.tcl +++ b/library/ttk/classicTheme.tcl @@ -31,7 +31,6 @@ namespace eval ttk::theme::classic { -indicatorcolor $colors(-frame) \ -highlightcolor $colors(-frame) \ -highlightthickness 1 \ - -selectborderwidth 0 \ -borderwidth 1 \ -insertwidth 2 \ -focuswidth 0 diff --git a/library/ttk/defaults.tcl b/library/ttk/defaults.tcl index 58c8c18..226bd39 100644 --- a/library/ttk/defaults.tcl +++ b/library/ttk/defaults.tcl @@ -90,7 +90,6 @@ proc ttk::theme::default::reconfigureDefaultTheme {} { -foreground $colors(-foreground) \ -troughcolor $colors(-darker) \ -font TkDefaultFont \ - -selectborderwidth 0 \ -selectbackground $colors(-selectbg) \ -selectforeground $colors(-selectfg) \ -insertwidth 1 \ diff --git a/library/ttk/winTheme.tcl b/library/ttk/winTheme.tcl index ec833bf..3be8add 100644 --- a/library/ttk/winTheme.tcl +++ b/library/ttk/winTheme.tcl @@ -30,7 +30,7 @@ namespace eval ttk::theme::winnative { -padding {6p 3p} -arrowsize 2.25p -relief raised ttk::style configure TEntry \ - -padding 2 -selectborderwidth 0 -insertwidth 1 + -padding 2 -insertwidth 1 ttk::style map TEntry \ -fieldbackground \ {readonly SystemButtonFace disabled SystemButtonFace} \ |