X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/012f1014dfcb3140d5133045b4d3d903218dca3a..2a8db3cddacf2c3fc244f109fdecbba3b0dfc386:/samples/taskbar/tbtest.cpp diff --git a/samples/taskbar/tbtest.cpp b/samples/taskbar/tbtest.cpp index 89f7295273..3fdbc781a6 100644 --- a/samples/taskbar/tbtest.cpp +++ b/samples/taskbar/tbtest.cpp @@ -64,6 +64,9 @@ MyDialog::MyDialog(wxWindow* parent, const wxWindowID id, const wxString& title, MyDialog::~MyDialog() { delete m_taskBarIcon; +#if defined(__WXCOCOA__) + delete m_dockIcon; +#endif } void MyDialog::OnOK(wxCommandEvent& WXUNUSED(event)) @@ -94,6 +97,9 @@ void MyDialog::Init(void) Centre(wxBOTH); m_taskBarIcon = new MyTaskBarIcon(); +#if defined(__WXCOCOA__) + m_dockIcon = new MyTaskBarIcon(wxTaskBarIcon::DOCK); +#endif if (!m_taskBarIcon->SetIcon(wxICON(sample), wxT("wxTaskBarIcon Sample"))) wxMessageBox(wxT("Could not set icon.")); }