]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/textdlgg.cpp
Don't do the wx cleanup if wxPython didn't do the initialization.
[wxWidgets.git] / src / generic / textdlgg.cpp
index 9b6a5b965efdde7d256432afdd4f80bc4be58696..5eadd8e01812f50ed79c398b4ee53783686b53ff 100644 (file)
@@ -31,8 +31,6 @@
 #if wxUSE_TEXTDLG
 
 #ifndef WX_PRECOMP
 #if wxUSE_TEXTDLG
 
 #ifndef WX_PRECOMP
-    #include <stdio.h>
-
     #include "wx/utils.h"
     #include "wx/dialog.h"
     #include "wx/button.h"
     #include "wx/utils.h"
     #include "wx/dialog.h"
     #include "wx/button.h"
@@ -122,4 +120,11 @@ void wxTextEntryDialog::OnOK(wxCommandEvent& WXUNUSED(event) )
     EndModal(wxID_OK);
 }
 
     EndModal(wxID_OK);
 }
 
+void wxTextEntryDialog::SetValue(const wxString& val)
+{
+    m_value = val;
+
+    m_textctrl->SetValue(val);
+}
+
 #endif // wxUSE_TEXTDLG
 #endif // wxUSE_TEXTDLG