summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2024-05-10 14:08:40 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2024-05-10 14:08:40 (GMT)
commita864407700fb5198a61456caa65624323415e744 (patch)
treee8011f10e097aba6e64f98fd67e4e75b015e4c66 /win
parente3436210ba311af1d4f9777c791773e3448f183e (diff)
downloadtk-a864407700fb5198a61456caa65624323415e744.zip
tk-a864407700fb5198a61456caa65624323415e744.tar.gz
tk-a864407700fb5198a61456caa65624323415e744.tar.bz2
Fix typo, revert unintended change
Diffstat (limited to 'win')
-rw-r--r--win/tkWinTest.c2
-rw-r--r--win/ttkWinTheme.c2
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}