summaryrefslogtreecommitdiffstats
path: root/win/ttkWinTheme.c
diff options
context:
space:
mode:
Diffstat (limited to 'win/ttkWinTheme.c')
-rw-r--r--win/ttkWinTheme.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/win/ttkWinTheme.c b/win/ttkWinTheme.c
index 476daea..0e79e6c 100644
--- a/win/ttkWinTheme.c
+++ b/win/ttkWinTheme.c
@@ -858,7 +858,7 @@ static void TabElementDraw(
XFillPolygon(disp, d, Tk_3DBorderGC(tkwin, border, TK_3D_FLAT_GC),
pts, 6, Convex, CoordModeOrigin);
- Tcl_GetIntFromObj(NULL, tab->borderWidthObj, &borderWidth);
+ Tk_GetPixelsFromObj(NULL, tkwin, tab->borderWidthObj, &borderWidth);
while (borderWidth--) {
XDrawLines(disp, d, Tk_3DBorderGC(tkwin, border, TK_3D_LIGHT_GC),
pts, 4, CoordModeOrigin);