X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4f167b46b42b81f8f646e594057535f05b05027f..0c14b6c3241d48d9cc36a2fd0aeab0ba330d96de:/src/common/taskbarcmn.cpp diff --git a/src/common/taskbarcmn.cpp b/src/common/taskbarcmn.cpp index 29f39c23ee..5373d527c7 100644 --- a/src/common/taskbarcmn.cpp +++ b/src/common/taskbarcmn.cpp @@ -20,9 +20,12 @@ #ifndef WX_PRECOMP #include "wx/app.h" + #include "wx/list.h" #include "wx/menu.h" #endif +extern WXDLLIMPEXP_DATA_CORE(wxList) wxPendingDelete; + // DLL options compatibility check: WX_CHECK_BUILD_OPTIONS("wxAdvanced") @@ -35,6 +38,8 @@ DEFINE_EVENT_TYPE( wxEVT_TASKBAR_RIGHT_DOWN ) DEFINE_EVENT_TYPE( wxEVT_TASKBAR_RIGHT_UP ) DEFINE_EVENT_TYPE( wxEVT_TASKBAR_LEFT_DCLICK ) DEFINE_EVENT_TYPE( wxEVT_TASKBAR_RIGHT_DCLICK ) +DEFINE_EVENT_TYPE( wxEVT_TASKBAR_BALLOON_TIMEOUT ) +DEFINE_EVENT_TYPE( wxEVT_TASKBAR_BALLOON_CLICK ) BEGIN_EVENT_TABLE(wxTaskBarIconBase, wxEvtHandler) @@ -51,4 +56,9 @@ void wxTaskBarIconBase::OnRightButtonDown(wxTaskBarIconEvent& WXUNUSED(event)) } } +void wxTaskBarIconBase::Destroy() +{ + wxPendingDelete.Append(this); +} + #endif // wxUSE_TASKBARICON