Index: GUISupport/Qt/QVTKWidget.cxx
===================================================================
RCS file: /cvsroot/ParaView3/ParaView3/VTK/GUISupport/Qt/QVTKWidget.cxx,v
retrieving revision 1.40
diff -u -r1.40 QVTKWidget.cxx
--- GUISupport/Qt/QVTKWidget.cxx	23 Jan 2009 19:51:24 -0000	1.40
+++ GUISupport/Qt/QVTKWidget.cxx	11 Feb 2009 18:07:40 -0000
@@ -45,9 +45,6 @@
 #if defined(QVTK_USE_CARBON)
 #  include "vtkCarbonRenderWindow.h"
 #endif
-#if defined(QVTK_USE_COCOA)
-#  include "vtkCocoaRenderWindow.h"
-#endif
 #include "vtkCommand.h"
 #include "vtkOStrStreamWrapper.h"
 #include "vtkObjectFactory.h"
@@ -188,7 +185,6 @@
       {
       this->mRenWin->Finalize();
       }
-    this->mRenWin->SetDisplayId(NULL);
     this->mRenWin->SetWindowId(NULL);
     this->mRenWin->UnRegister(NULL);
     }
@@ -220,11 +216,7 @@
     x11_setup_window();
     
     // give the qt window id to the vtk window
-#if defined(QVTK_USE_COCOA)
-    this->mRenWin->SetDisplayId( reinterpret_cast<void*>(this->winId()));
-#else
     this->mRenWin->SetWindowId( reinterpret_cast<void*>(this->winId()));
-#endif
 
     // mac compatibility issues
 #if defined(QVTK_USE_CARBON) && (QT_VERSION < 0x040000)
