]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/log.cpp
several fixes
[wxWidgets.git] / src / common / log.cpp
index 525f8cfd190ddd5fb0947b1f075c00e3c856f544..66b2caa787ff3bf10e40bd9fe0ea1c5c3bdd0f64 100644 (file)
@@ -362,17 +362,13 @@ void wxLogStream::DoLogString(const char *szString)
 // ----------------------------------------------------------------------------
 wxLogTextCtrl::wxLogTextCtrl(wxTextCtrl *pTextCtrl)
 // @@@ TODO: in wxGTK wxTextCtrl doesn't derive from streambuf
-#ifndef __WXGTK__
              : wxLogStream(new ostream(pTextCtrl))
-#endif //GTK
 {
 }
 
 wxLogTextCtrl::~wxLogTextCtrl()
 {
-  #ifndef __WXGTK__
-    delete m_ostr;
-  #endif //GTK
+  delete m_ostr;
 }
 
 // ----------------------------------------------------------------------------
@@ -659,6 +655,11 @@ void wxLogWindow::Show(bool bShow)
   m_pLogFrame->Show(bShow);
 }
 
+wxFrame *wxLogWindow::GetFrame() const
+{
+  return m_pLogFrame;
+}
+
 void wxLogWindow::DoLog(wxLogLevel level, const char *szString)
 {
   // first let the previous logger show it