summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-09-20 10:45:49 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-09-20 10:45:49 (GMT)
commit6fb78493c08598f261c7b8b6d5bb320cd58f27e0 (patch)
tree51ba887f9bd055ce85d72a7c73377bcaa263b66d
parent8d11cc8eacd0e8ba40c491c14435adce2a969075 (diff)
parentd6b9036b665ab06fcb218295a69a011b385c9609 (diff)
downloadtk-6fb78493c08598f261c7b8b6d5bb320cd58f27e0.zip
tk-6fb78493c08598f261c7b8b6d5bb320cd58f27e0.tar.gz
tk-6fb78493c08598f261c7b8b6d5bb320cd58f27e0.tar.bz2
Merge 8.6
-rw-r--r--generic/tkImgListFormat.c3
-rw-r--r--generic/tkMenu.c2
-rw-r--r--win/tkWinButton.c2
-rw-r--r--win/tkWinCursor.c6
-rw-r--r--win/tkWinWm.c2
-rw-r--r--win/ttkWinMonitor.c6
6 files changed, 11 insertions, 10 deletions
diff --git a/generic/tkImgListFormat.c b/generic/tkImgListFormat.c
index 0a4435c..2b23699 100644
--- a/generic/tkImgListFormat.c
+++ b/generic/tkImgListFormat.c
@@ -158,7 +158,8 @@ Tk_PhotoImageFormat tkImgFmtDefault = {
NULL, /* fileReadProc: format doesn't support file read */
StringReadDef, /* stringReadProc */
NULL, /* fileWriteProc: format doesn't support file write */
- StringWriteDef /* stringWriteProc */
+ StringWriteDef, /* stringWriteProc */
+ NULL /* nextPtr */
};
/*
diff --git a/generic/tkMenu.c b/generic/tkMenu.c
index 1b38444..4c58981 100644
--- a/generic/tkMenu.c
+++ b/generic/tkMenu.c
@@ -759,7 +759,7 @@ MenuWidgetObjCmd(
first = 1;
}
- if ((first < 0) || (last < first)) {
+ if ((first == TCL_INDEX_NONE) || (last < first)) {
goto done;
}
DeleteMenuCloneEntries(menuPtr, first, last);
diff --git a/win/tkWinButton.c b/win/tkWinButton.c
index c471cd2..aaec2e5 100644
--- a/win/tkWinButton.c
+++ b/win/tkWinButton.c
@@ -131,7 +131,7 @@ InitBoxes(void)
ThreadSpecificData *tsdPtr = (ThreadSpecificData *)
Tcl_GetThreadData(&dataKey, sizeof(ThreadSpecificData));
- hrsrc = FindResourceW(module, L"buttons", RT_BITMAP);
+ hrsrc = FindResourceW(module, L"buttons", (LPWSTR) RT_BITMAP);
if (hrsrc == NULL) {
Tcl_Panic("FindResourceW() failed for buttons bitmap resource, "
"resources in tk_base.rc must be linked into Tk dll or static executable");
diff --git a/win/tkWinCursor.c b/win/tkWinCursor.c
index 3fe9899..3cf33e8 100644
--- a/win/tkWinCursor.c
+++ b/win/tkWinCursor.c
@@ -41,7 +41,7 @@ typedef struct {
static struct CursorName {
const char *name;
- LPCWSTR id;
+ LPCTSTR id;
} cursorNames[] = {
{"starting", IDC_APPSTARTING},
{"arrow", IDC_ARROW},
@@ -71,7 +71,7 @@ static struct CursorName {
* The default cursor is used whenever no other cursor has been specified.
*/
-#define TK_DEFAULT_CURSOR IDC_ARROW
+#define TK_DEFAULT_CURSOR (LPCWSTR)IDC_ARROW
/*
*----------------------------------------------------------------------
@@ -145,7 +145,7 @@ TkGetCursorByName(
for (namePtr = cursorNames; namePtr->name != NULL; namePtr++) {
if (strcmp(namePtr->name, argv[0]) == 0) {
- cursorPtr->winCursor = LoadCursorW(NULL, namePtr->id);
+ cursorPtr->winCursor = LoadCursorW(NULL, (LPCWSTR) namePtr->id);
break;
}
}
diff --git a/win/tkWinWm.c b/win/tkWinWm.c
index 6cadf38..bbb9439 100644
--- a/win/tkWinWm.c
+++ b/win/tkWinWm.c
@@ -892,7 +892,7 @@ InitWindowClass(
tsdPtr->iconPtr = titlebaricon;
}
- class.hCursor = LoadCursorW(NULL, IDC_ARROW);
+ class.hCursor = LoadCursorW(NULL, (LPCWSTR)IDC_ARROW);
if (!RegisterClassW(&class)) {
Tcl_Panic("Unable to register TkTopLevel class");
diff --git a/win/ttkWinMonitor.c b/win/ttkWinMonitor.c
index bbacd99..4ecd9ac 100644
--- a/win/ttkWinMonitor.c
+++ b/win/ttkWinMonitor.c
@@ -81,9 +81,9 @@ CreateThemeMonitorWindow(HINSTANCE hinst, Tcl_Interp *interp)
wc.cbClsExtra = 0;
wc.cbWndExtra = 0;
wc.hInstance = hinst;
- wc.hIcon = LoadIconW(NULL, IDI_APPLICATION);
- wc.hIconSm = LoadIconW(NULL, IDI_APPLICATION);
- wc.hCursor = LoadCursorW(NULL, IDC_ARROW);
+ wc.hIcon = LoadIconW(NULL, (LPCWSTR)IDI_APPLICATION);
+ wc.hIconSm = LoadIconW(NULL, (LPCWSTR)IDI_APPLICATION);
+ wc.hCursor = LoadCursorW(NULL, (LPCWSTR)IDC_ARROW);
wc.hbrBackground = (HBRUSH)COLOR_WINDOW;
wc.lpszMenuName = name;
wc.lpszClassName = name;