warning fix w/o #ifdefs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28801 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
8334c5b958
commit
012f1014df
@ -110,7 +110,7 @@ BEGIN_EVENT_TABLE(MyTaskBarIcon, wxTaskBarIcon)
|
||||
EVT_MENU(PU_RESTORE, MyTaskBarIcon::OnMenuRestore)
|
||||
EVT_MENU(PU_EXIT, MyTaskBarIcon::OnMenuExit)
|
||||
EVT_MENU(PU_NEW_ICON,MyTaskBarIcon::OnMenuSetNewIcon)
|
||||
EVT_TASKBAR_LEFT_DCLICK (MyTaskBarIcon::OnLButtonDClick)
|
||||
EVT_TASKBAR_LEFT_DCLICK (MyTaskBarIcon::OnLeftButtonDClick)
|
||||
END_EVENT_TABLE()
|
||||
|
||||
void MyTaskBarIcon::OnMenuRestore(wxCommandEvent& )
|
||||
@ -143,11 +143,7 @@ wxMenu *MyTaskBarIcon::CreatePopupMenu()
|
||||
return menu;
|
||||
}
|
||||
|
||||
#if WXWIN_COMPATIBILITY_2_4
|
||||
void MyTaskBarIcon::OnLButtonDClick(wxEvent&)
|
||||
#else
|
||||
void MyTaskBarIcon::OnLButtonDClick(wxTaskBarIconEvent&)
|
||||
#endif
|
||||
void MyTaskBarIcon::OnLeftButtonDClick(wxTaskBarIconEvent&)
|
||||
{
|
||||
dialog->Show(true);
|
||||
}
|
||||
|
@ -14,11 +14,7 @@ class MyTaskBarIcon: public wxTaskBarIcon
|
||||
public:
|
||||
MyTaskBarIcon() {};
|
||||
|
||||
#if WXWIN_COMPATIBILITY_2_4
|
||||
void OnLButtonDClick(wxEvent&);
|
||||
#else
|
||||
void OnLButtonDClick(wxTaskBarIconEvent&);
|
||||
#endif
|
||||
void OnLeftButtonDClick(wxTaskBarIconEvent&);
|
||||
void OnMenuRestore(wxCommandEvent&);
|
||||
void OnMenuExit(wxCommandEvent&);
|
||||
void OnMenuSetNewIcon(wxCommandEvent&);
|
||||
|
Loading…
Reference in New Issue
Block a user