]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/frame.cpp
make wxControlContainer accept focus depending on whether it has any focusable childr...
[wxWidgets.git] / src / motif / frame.cpp
index 24c4eb0f9da583fee49bf6d13bd15f82dcf4a6b8..8de4757af2a4cc44a5a2e8c9e932e9d571e7c0a8 100644 (file)
     #include "wx/log.h"
     #include "wx/app.h"
     #include "wx/utils.h"
+    #include "wx/menu.h"
+    #include "wx/icon.h"
+    #include "wx/settings.h"
+    #include "wx/toolbar.h"
+    #include "wx/statusbr.h"
 #endif
 
-#include "wx/statusbr.h"
-#include "wx/toolbar.h"
-#include "wx/menu.h"
-#include "wx/settings.h"
-#include "wx/icon.h"
-
 #ifdef __VMS__
     #pragma message disable nosimpint
 #endif
@@ -88,7 +87,6 @@ static void wxFrameMapProc(Widget frameShell, XtPointer clientData,
 // ----------------------------------------------------------------------------
 
 extern wxList wxModelessWindows;
-extern wxList wxPendingDelete;
 
 // ----------------------------------------------------------------------------
 // wxWin macros
@@ -456,8 +454,8 @@ void wxFrame::SetTitle(const wxString& title)
 
     if( !title.empty() )
         XtVaSetValues( (Widget)m_frameShell,
-                       XmNtitle, title.c_str(),
-                       XmNiconName, title.c_str(),
+                       XmNtitle, title.mb_str(),
+                       XmNiconName, title.mb_str(),
                        NULL );
 }