- MGR: Another place that interacts with the taskbar but was

included only if compiled for Windows or the Mac.
        
    clientgui/
        AsyncRPC.cpp
        MainDocument.cpp

svn path=/trunk/boinc/; revision=20534
This commit is contained in:
Rom Walton 2010-02-11 05:16:24 +00:00
parent 553b7b29bc
commit 6e388fd050
3 changed files with 9 additions and 4 deletions

View File

@ -1130,3 +1130,12 @@ Rom 10 Feb 2010
clientgui/
BOINCTaskBar.cpp, .h
Rom 10 Feb 2010
- MGR: Another place that interacts with the taskbar but was
included only if compiled for Windows or the Mac.
clientgui/
AsyncRPC.cpp
MainDocument.cpp

View File

@ -1122,7 +1122,6 @@ void CMainDocument::HandleCompletedRPC() {
// We must get the frame immediately before using it,
// since it may have been changed by SetActiveGUI().
CBOINCBaseFrame* pFrame = wxGetApp().GetFrame();
if (pFrame) {
CFrameEvent event(wxEVT_FRAME_REFRESHVIEW, pFrame);
pFrame->ProcessEvent(event);
@ -1132,7 +1131,6 @@ void CMainDocument::HandleCompletedRPC() {
if (m_bNeedTaskBarRefresh && !m_bWaitingForRPC) {
m_bNeedTaskBarRefresh = false;
CTaskBarIcon* pTaskbar = wxGetApp().GetTaskBarIcon();
if (pTaskbar) {
CTaskbarEvent event(wxEVT_TASKBAR_REFRESH, pTaskbar);
pTaskbar->ProcessEvent(event);

View File

@ -840,13 +840,11 @@ void CMainDocument::RunPeriodicRPCs(int frameRefreshRate) {
if (!IsConnected()) {
CFrameEvent event(wxEVT_FRAME_REFRESHVIEW, pFrame);
pFrame->AddPendingEvent(event);
#if defined(__WXMSW__) || defined(__WXMAC__)
CTaskBarIcon* pTaskbar = wxGetApp().GetTaskBarIcon();
if (pTaskbar) {
CTaskbarEvent event(wxEVT_TASKBAR_REFRESH, pTaskbar);
pTaskbar->AddPendingEvent(event);
}
#endif
return;
}