From a2e324ea285c785449b462e7bc70fa57c8cd2482 Mon Sep 17 00:00:00 2001 From: oehhar Date: Tue, 30 Nov 2021 13:16:55 +0000 Subject: "wm protocol" documentation: add information, that WM_SAVE_YOURSELF is called on the windows platform on user logout or system shutdown. --- doc/wm.n | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/wm.n b/doc/wm.n index 5bb1c61..abd9c88 100644 --- a/doc/wm.n +++ b/doc/wm.n @@ -638,6 +638,10 @@ If a \fBWM_DELETE_WINDOW\fR message arrives when you have not defined a handler, then Tk handles the message by destroying the window for which it was received. .RE +.RS +.PP +On the Windows platform, the protocol handler \fBWM_SAVE_YOURSELF\fR is called on user logout or system restart. +.RE .TP \fBwm resizable \fIwindow\fR ?\fIwidth height\fR? . -- cgit v0.12 From fb9c3d74f22741bc6f79d97609719ab2c663afc3 Mon Sep 17 00:00:00 2001 From: "jan.nijtmans" Date: Tue, 30 Nov 2021 19:46:11 +0000 Subject: Add "SelectedMenuItemTextColor" color on MacOS (backported from 8.7). Improve some comments --- macosx/tkMacOSXColor.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/macosx/tkMacOSXColor.h b/macosx/tkMacOSXColor.h index bc9d307..37db7cc 100644 --- a/macosx/tkMacOSXColor.h +++ b/macosx/tkMacOSXColor.h @@ -38,14 +38,14 @@ enum colorType { rgbColor, /* The 24 bit value is an rgb color. */ clearColor, /* The unique rgba color with all channels 0. */ HIBrush, /* A HITheme brush color.*/ - HIText, /* A HITheme text color. */ - HIBackground, /* A HITheme background color. */ + HIText, /* A HITheme text color (32-bit only). */ + HIBackground, /* A HITheme background color (32-bit only). */ ttkBackground, /* A background color which indicates nesting level.*/ semantic, /* A semantic NSColor.*/ }; typedef struct xpixel_t { - unsigned value: 24; /* Either RGB or an index into systemColorMap. */ + unsigned value: 24; /* Either RGB or an index into systemColorData. */ unsigned colortype: 8; } xpixel; @@ -246,6 +246,7 @@ static SystemColorDatum systemColorData[] = { /* Color to use for selected button labels -- depends on OS version. */ {"PressedButtonTextColor", semantic, 0, "textColor", 0, NULL }, /* Semantic colors that we simulate on older systems which don't supoort them. */ +{"SelectedMenuItemTextColor", semantic, 0, "selectedMenuItemTextColor", 0, NULL }, {"ControlAccentColor", semantic, 0, "controlAccentColor", 0, NULL }, {"LabelColor", semantic, 0, "blackColor", 0, NULL }, {"LinkColor", semantic, 0, "blueColor", 0, NULL }, -- cgit v0.12