- MGR: Enable task bar icon on Linux. (Improvements)

clientgui/
        BOINCBaseFrame.cpp
        BOINCGUIApp.cpp

svn path=/trunk/boinc/; revision=20441
This commit is contained in:
Rom Walton 2010-02-05 19:50:42 +00:00
parent 057c51b5d3
commit 90d3e024e6
3 changed files with 0 additions and 12 deletions

View File

@ -306,7 +306,6 @@ void CBOINCBaseFrame::OnClose(wxCloseEvent& event) {
wxLogTrace(wxT("Function Start/End"), wxT("CBOINCBaseFrame::OnClose - Function Begin"));
#ifdef wxHAS_TASK_BAR_ICON
if (!event.CanVeto() || IsIconized()) {
wxGetApp().FrameClosed();
Destroy();
@ -329,10 +328,6 @@ void CBOINCBaseFrame::OnClose(wxCloseEvent& event) {
#endif
Hide();
}
#else
wxGetApp().FrameClosed();
Destroy();
#endif
wxLogTrace(wxT("Function Start/End"), wxT("CBOINCBaseFrame::OnClose - Function End"));
}
@ -373,9 +368,7 @@ void CBOINCBaseFrame::OnExit(wxCommandEvent& WXUNUSED(event)) {
wxGetApp().DeleteMacSystemMenu();
#endif
#ifdef wxHAS_TASK_BAR_ICON
wxGetApp().DeleteTaskBarIcon();
#endif
CDlgEventLog* eventLog = wxGetApp().GetEventLog();
if (eventLog) {

View File

@ -1127,14 +1127,12 @@ bool CBOINCGUIApp::IsModalDialogDisplayed() {
return false;
}
#if defined(__WXMSW__) || defined(__WXMAC__)
void CBOINCGUIApp::DeleteTaskBarIcon() {
if (m_pTaskBarIcon) {
delete m_pTaskBarIcon;
}
m_pTaskBarIcon = NULL;
}
#endif
#ifdef __WXMAC__
void CBOINCGUIApp::DeleteMacSystemMenu() {

View File

@ -127,11 +127,8 @@ public:
wxString GetDataDirectory() { return m_strBOINCMGRDataDirectory; }
wxString GetArguments() { return m_strBOINCArguments; }
CDlgEventLog* GetEventLog() { return m_pEventLog; }
#if defined(__WXMSW__) || defined(__WXMAC__)
CTaskBarIcon* GetTaskBarIcon() { return m_pTaskBarIcon; }
void DeleteTaskBarIcon();
#endif
bool IsAccessibilityEnabled() { return m_bAccessibilityEnabled; }