Commit d86dd242 authored by Brad King's avatar Brad King 💬
Browse files

COMP: Fix use of deprecated API. This addresses bug#2150.

parent 2ccb2ff2
......@@ -28,7 +28,7 @@
#include <math.h>
vtkCxxRevisionMacro(vtkCarbonRenderWindow, "1.38");
vtkCxxRevisionMacro(vtkCarbonRenderWindow, "1.39");
vtkStandardNewMacro(vtkCarbonRenderWindow);
//----------------------------------------------------------------------------
......@@ -390,13 +390,14 @@ void vtkCarbonRenderWindow::Clean()
void vtkCarbonRenderWindow::SetWindowName( const char * _arg )
{
vtkWindow::SetWindowName(_arg);
Str255 newTitle; // SetWTitle takes a pascal string
CopyCStringToPascal(_arg, newTitle);
if (this->OwnWindow)
if(this->OwnWindow)
{
SetWTitle (this->RootWindow, newTitle);
CFStringRef newTitle =
CFStringCreateWithCString(kCFAllocatorDefault, _arg,
kCFStringEncodingASCII);
SetWindowTitleWithCFString(this->RootWindow, newTitle);
CFRelease(newTitle);
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment