summaryrefslogtreecommitdiffstats
path: root/generic/ttk
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2024-05-13 13:39:12 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2024-05-13 13:39:12 (GMT)
commit91030c03b750afa4571fe20a9dbcdf4208c899b5 (patch)
tree2759fc33de266e331411917ac4785d94782cf993 /generic/ttk
parenta980e63c27aad956c0f39806752e5d517aa6d870 (diff)
downloadtk-91030c03b750afa4571fe20a9dbcdf4208c899b5.zip
tk-91030c03b750afa4571fe20a9dbcdf4208c899b5.tar.gz
tk-91030c03b750afa4571fe20a9dbcdf4208c899b5.tar.bz2
selectborderwidth/insertwidth can take any "pixel" form as well
Diffstat (limited to 'generic/ttk')
-rw-r--r--generic/ttk/ttkEntry.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/ttk/ttkEntry.c b/generic/ttk/ttkEntry.c
index 8921ebd..11f4653 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;
}