summaryrefslogtreecommitdiffstats
path: root/unix/tkUnixWm.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2012-06-19 09:55:18 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2012-06-19 09:55:18 (GMT)
commit23abd217c7df90a80ee411cfe2090d75942cf750 (patch)
tree047c7883c2e3add51b74078a8e69f0012cc4645c /unix/tkUnixWm.c
parent6a2cb75b188aad9e6ecf9906ab5d1491647fbd09 (diff)
downloadtk-23abd217c7df90a80ee411cfe2090d75942cf750.zip
tk-23abd217c7df90a80ee411cfe2090d75942cf750.tar.gz
tk-23abd217c7df90a80ee411cfe2090d75942cf750.tar.bz2
SetOptions.3: minor doc fix
make various other tables CONST (All backported from Tk 8.6)
Diffstat (limited to 'unix/tkUnixWm.c')
-rw-r--r--unix/tkUnixWm.c8
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));