From a864407700fb5198a61456caa65624323415e744 Mon Sep 17 00:00:00 2001 From: "jan.nijtmans" Date: Fri, 10 May 2024 14:08:40 +0000 Subject: Fix typo, revert unintended change --- win/tkWinTest.c | 2 +- win/ttkWinTheme.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/win/tkWinTest.c b/win/tkWinTest.c index 6f5551a..544f89c 100644 --- a/win/tkWinTest.c +++ b/win/tkWinTest.c @@ -383,7 +383,7 @@ TestwineventObjCmd( Tcl_ObjPrintf("Could not find control with id %d", id)); return TCL_ERROR; } - Tcl_UtfToExternalDString(NULL, Tcl_GetString(objv[4]), -1, &ds); + Tcl_UtfToExternalDString(NULL, Tcl_GetString(objv[4]), TCL_INDEX_NONE, &ds); result = SendMessageA(control, WM_SETTEXT, 0, (LPARAM)Tcl_DStringValue(&ds)); Tcl_DStringFree(&ds); if (result == 0) { diff --git a/win/ttkWinTheme.c b/win/ttkWinTheme.c index b78a81c..690c30b 100644 --- a/win/ttkWinTheme.c +++ b/win/ttkWinTheme.c @@ -732,7 +732,7 @@ typedef struct { static const Ttk_ElementOptionSpec TabElementOptions[] = { { "-borderwidth", TK_OPTION_PIXELS, - ofsetof(TabElement,borderWidthObj), "1" }, + offsetof(TabElement,borderWidthObj), "1" }, { "-background", TK_OPTION_BORDER, offsetof(TabElement,backgroundObj), DEFAULT_BACKGROUND }, {0,TK_OPTION_BOOLEAN,0,0} -- cgit v0.12