]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/mobile/wxedit/wxedit.cpp
compilation fix for systems with XtIMSignal
[wxWidgets.git] / samples / mobile / wxedit / wxedit.cpp
index 87676f457169083033e96d5fe85d418539bdea23..491b8c333d9b45235442d8575fc6f67c57a64ef3 100644 (file)
@@ -6,7 +6,7 @@
 /////////////////////////////////////////////////////////////////////////////
 
 #ifdef __GNUG__
-    #pragma implementation "wxedit.cpp"
+    #pragma implementation "wxedit.h"
 #endif
 
 // For compilers that support precompilation
@@ -229,6 +229,8 @@ void MyFrame::OnOpen( wxCommandEvent& WXUNUSED(event) )
         m_text->Clear();
 
 #ifdef __WXX11__
+        // requires wxUSE_UNIV_TEXTCTRL to be set to 0
+#if 0
         wxFileName fname( dialog.GetPath() );
         if ((fname.GetExt() == _T("cpp")) ||
             (fname.GetExt() == _T("c")) ||
@@ -253,6 +255,7 @@ void MyFrame::OnOpen( wxCommandEvent& WXUNUSED(event) )
         {
             m_text->SetLanguage( wxSOURCE_LANG_NONE );
         }
+#endif
 #endif
 
         m_filename = dialog.GetPath();