]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/widgets/widgets.cpp
/dev/null may not exist, be smarter about it
[wxWidgets.git] / samples / widgets / widgets.cpp
index 7e54947dbd3e5741d79adec7feb9e9c03e079cff..9d08c992c312c933056d8c56e3a920ae5377a357 100644 (file)
@@ -347,10 +347,6 @@ bool WidgetsApp::OnInit()
     title += wxT("wxMAC");
 #elif defined(__WXMOTIF__)
     title += wxT("wxMOTIF");
-#elif defined(__WXPALMOS5__)
-    title += wxT("wxPALMOS5");
-#elif defined(__WXPALMOS6__)
-    title += wxT("wxPALMOS6");
 #else
     title += wxT("wxWidgets");
 #endif
@@ -879,6 +875,10 @@ void WidgetsFrame::OnSetFont(wxCommandEvent& WXUNUSED(event))
         (*it)->SetFont(m_font);
         (*it)->Refresh();
     }
+
+    // The best size of the widget could have changed after changing its font,
+    // so re-layout to show it correctly.
+    page->Layout();
 #else
     wxLogMessage(wxT("Font selection dialog not available in current build."));
 #endif