diff --git a/checkin_notes b/checkin_notes index 0ce6a9fb34..6ea07c4364 100644 --- a/checkin_notes +++ b/checkin_notes @@ -932,3 +932,10 @@ Rom 5 Feb 2010 clientscr/ boinc_ss.rc + +Rom 5 Feb 2010 + - MGR: Enable task bar icon on Linux. + + clientgui/ + BOINCBaseFrame.cpp + BOINCGUIApp.cpp diff --git a/clientgui/BOINCBaseFrame.cpp b/clientgui/BOINCBaseFrame.cpp index 2dcec87483..8c93102a5e 100644 --- a/clientgui/BOINCBaseFrame.cpp +++ b/clientgui/BOINCBaseFrame.cpp @@ -306,7 +306,7 @@ void CBOINCBaseFrame::OnClose(wxCloseEvent& event) { wxLogTrace(wxT("Function Start/End"), wxT("CBOINCBaseFrame::OnClose - Function Begin")); -#if defined(__WXMSW__) || defined(__WXMAC__) +#ifdef wxHAS_TASK_BAR_ICON if (!event.CanVeto() || IsIconized()) { wxGetApp().FrameClosed(); Destroy(); @@ -373,8 +373,7 @@ void CBOINCBaseFrame::OnExit(wxCommandEvent& WXUNUSED(event)) { wxGetApp().DeleteMacSystemMenu(); #endif - // TaskBarIcon isn't used in Linux -#if defined(__WXMSW__) || defined(__WXMAC__) +#ifdef wxHAS_TASK_BAR_ICON wxGetApp().DeleteTaskBarIcon(); #endif diff --git a/clientgui/BOINCGUIApp.cpp b/clientgui/BOINCGUIApp.cpp index 09c32118e4..554a7765da 100644 --- a/clientgui/BOINCGUIApp.cpp +++ b/clientgui/BOINCGUIApp.cpp @@ -410,7 +410,7 @@ bool CBOINCGUIApp::OnInit() { #endif // Initialize the task bar icon -#if defined(__WXMSW__) || defined(__WXMAC__) +#ifdef wxHAS_TASK_BAR_ICON m_pTaskBarIcon = new CTaskBarIcon( m_pSkinManager->GetAdvanced()->GetApplicationName(), m_pSkinManager->GetAdvanced()->GetApplicationIcon(),