diff options
author | das <das> | 2006-04-10 09:25:40 (GMT) |
---|---|---|
committer | das <das> | 2006-04-10 09:25:40 (GMT) |
commit | ee3c49d3354201ca3a9673df18c62288ea360485 (patch) | |
tree | 0ff8927df048ffc7cab6f98c941c42ca6f277daa /macosx | |
parent | a6901e826d5279f6f8def7f16c353db25a81c365 (diff) | |
download | tk-ee3c49d3354201ca3a9673df18c62288ea360485.zip tk-ee3c49d3354201ca3a9673df18c62288ea360485.tar.gz tk-ee3c49d3354201ca3a9673df18c62288ea360485.tar.bz2 |
* macosx/tkMacOSXWm.c (TkSetWMName, TkMacOSXMakeRealWindowExist):
allow empty name for toplevels, remove bogus initial window name.
[Bug 1450800]
Diffstat (limited to 'macosx')
-rw-r--r-- | macosx/tkMacOSXWm.c | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/macosx/tkMacOSXWm.c b/macosx/tkMacOSXWm.c index bd0201e..ff4e64e 100644 --- a/macosx/tkMacOSXWm.c +++ b/macosx/tkMacOSXWm.c @@ -12,7 +12,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkMacOSXWm.c,v 1.7.2.21 2006/04/09 22:07:27 das Exp $ + * RCS: @(#) $Id: tkMacOSXWm.c,v 1.7.2.22 2006/04/10 09:25:42 das Exp $ */ #include "tkMacOSXInt.h" @@ -4486,19 +4486,12 @@ TkSetWMName( return; } - if (strlen(titleUid) > 0) { - title = CFStringCreateWithBytes(NULL, (unsigned char*) titleUid, strlen(titleUid), - kCFStringEncodingUTF8, false); - } else { - title = NULL; - } - - macWin = GetWindowFromPort(TkMacOSXGetDrawablePort(winPtr->window)); - - SetWindowTitleWithCFString(macWin, title); - - if (title != NULL) { - CFRelease(title); + title = CFStringCreateWithBytes(NULL, (unsigned char*) titleUid, + strlen(titleUid), kCFStringEncodingUTF8, false); + if (title) { + macWin = GetWindowFromPort(TkMacOSXGetDrawablePort(winPtr->window)); + SetWindowTitleWithCFString(macWin, title); + CFRelease(title); } } @@ -5028,7 +5021,7 @@ TkMacOSXMakeRealWindowExist( } } else { - newWindow = NewCWindow(NULL, &geometry, "\ptemp", false, + newWindow = NewCWindow(NULL, &geometry, "\p", false, (short) wmPtr->style, (WindowRef) -1, true, 0); } |