diff options
author | jan.nijtmans <jan.nijtmans@noemail.net> | 2012-06-19 09:55:18 (GMT) |
---|---|---|
committer | jan.nijtmans <jan.nijtmans@noemail.net> | 2012-06-19 09:55:18 (GMT) |
commit | 0acc68a6147bac87f21e7e62d27758b2445de8fa (patch) | |
tree | 047c7883c2e3add51b74078a8e69f0012cc4645c /unix/tkUnixWm.c | |
parent | 30aaa074df2ebda5f10281f622e132fa82b5fa01 (diff) | |
download | tk-0acc68a6147bac87f21e7e62d27758b2445de8fa.zip tk-0acc68a6147bac87f21e7e62d27758b2445de8fa.tar.gz tk-0acc68a6147bac87f21e7e62d27758b2445de8fa.tar.bz2 |
SetOptions.3: minor doc fix
make various other tables CONST
(All backported from Tk 8.6)
FossilOrigin-Name: 213ad7fdd3df8afd283afab1a86cfde6170327d2
Diffstat (limited to 'unix/tkUnixWm.c')
-rw-r--r-- | unix/tkUnixWm.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/unix/tkUnixWm.c b/unix/tkUnixWm.c index 1ab5980..cb5b643 100644 --- a/unix/tkUnixWm.c +++ b/unix/tkUnixWm.c @@ -4487,7 +4487,7 @@ UpdateTitle(winPtr) { WmInfo *wmPtr = winPtr->wmInfoPtr; Atom XA_UTF8_STRING = Tk_InternAtom((Tk_Window) winPtr, "UTF8_STRING"); - const char *string; + CONST char *string; Tcl_DString ds; /* @@ -4502,7 +4502,7 @@ UpdateTitle(winPtr) XChangeProperty(winPtr->display, wmPtr->wrapperPtr->window, Tk_InternAtom((Tk_Window) winPtr, "_NET_WM_NAME"), XA_UTF8_STRING, 8, PropModeReplace, - (const unsigned char*)string, (signed int)strlen(string)); + (CONST unsigned char*)string, (signed int)strlen(string)); /* * Set icon name: @@ -4516,7 +4516,7 @@ UpdateTitle(winPtr) XChangeProperty(winPtr->display, wmPtr->wrapperPtr->window, Tk_InternAtom((Tk_Window) winPtr, "_NET_WM_ICON_NAME"), XA_UTF8_STRING, 8, PropModeReplace, - (const unsigned char*)wmPtr->iconName, + (CONST unsigned char*)wmPtr->iconName, (signed int)strlen(wmPtr->iconName)); } } @@ -4969,7 +4969,7 @@ GetNetWmType(winPtr) &bytesAfter, &propertyValue)) { atoms = (Atom *)propertyValue; for (n = 0; n < count; ++n) { - const char *name = Tk_GetAtomName(tkwin, atoms[n]); + CONST char *name = Tk_GetAtomName(tkwin, atoms[n]); if (strncmp("_NET_WM_WINDOW_TYPE_", name, 20) == 0) { Tcl_ExternalToUtfDString(NULL, name+20, -1, &ds); Tcl_UtfToLower(Tcl_DStringValue(&ds)); |