]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/widgets/statbmp.cpp
fixes potential crash under gatekeeper
[wxWidgets.git] / samples / widgets / statbmp.cpp
index c5f1a1f09b0cb705f1c86a0fb4e4ee1a72799d62..12ec4704b852e9ad4251e578c55e4bc6117cbcaf 100644 (file)
@@ -104,9 +104,9 @@ void StatBmpWidgetsPage::CreateContent()
 
     wxInitAllImageHandlers();
 
-    Connect(wxEVT_COMMAND_FILEPICKER_CHANGED,
+    Connect(wxEVT_FILEPICKER_CHANGED,
             wxFileDirPickerEventHandler(StatBmpWidgetsPage::OnFileChange));
-    Connect(wxEVT_COMMAND_RADIOBOX_SELECTED,
+    Connect(wxEVT_RADIOBOX,
             wxCommandEventHandler(StatBmpWidgetsPage::OnRadioChange));
 
     m_statbmp = NULL;
@@ -122,7 +122,7 @@ void StatBmpWidgetsPage::RecreateWidget()
         return;
 
     wxImage image(filepath);
-    if (! image.Ok() )
+    if (! image.IsOk() )
     {
         wxLogMessage("Reading image from file '%s' failed.", filepath.c_str());
         return;