]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/widgets/widgets.cpp
added workaround for GTK+ focus_out bug (and removed Vaclav's mouse capture stack...
[wxWidgets.git] / samples / widgets / widgets.cpp
index d8994358665d9e3d3fb8e43e0ecaa85f639fc414..59ee9950f08af02830dfc70069a3820a38825cf9 100644 (file)
@@ -192,11 +192,14 @@ END_EVENT_TABLE()
 
 bool WidgetsApp::OnInit()
 {
+    if ( !wxApp::OnInit() )
+        return FALSE;
+
     // the reason for having these ifdef's is that I often run two copies of
     // this sample side by side and it is useful to see which one is which
     wxString title;
 #if defined(__WXUNIVERSAL__)
-    title = _T("wxUniv/")
+    title = _T("wxUniv/");
 #endif
 
 #if defined(__WXMSW__)