Ticket #150: boincmgr_150.patch
File boincmgr_150.patch, 2.6 KB (added by , 17 years ago) |
---|
-
clientgui/BOINCTaskBar.cpp
145 145 146 146 // Which icon should be displayed? 147 147 if (!pDoc->IsConnected()) { 148 if (IsBalloonsSupported()) {149 SetIcon(m_iconTaskBarDisconnected, wxEmptyString);150 } else {151 148 SetIcon(m_iconTaskBarDisconnected, m_strDefaultTitle); 152 }153 149 } else { 154 150 if (RUN_MODE_NEVER == status.task_mode) { 155 if (IsBalloonsSupported()) {156 SetIcon(m_iconTaskBarSnooze, wxEmptyString);157 } else {158 151 SetIcon(m_iconTaskBarSnooze, m_strDefaultTitle); 159 }160 152 } else { 161 if (IsBalloonsSupported()) {162 SetIcon(m_iconTaskBarNormal, wxEmptyString);163 } else {164 153 SetIcon(m_iconTaskBarNormal, m_strDefaultTitle); 165 }166 154 } 167 155 } 168 156 … … 448 436 449 437 void CTaskBarIcon::ResetTaskBar() { 450 438 #ifdef __WXMSW___ 451 SetBalloon(m_iconTaskBarNormal, wxT(""), wxT(""));439 SetBalloon(m_iconTaskBarNormal, m_strDefaultTitle, wxT("")); 452 440 #else 453 441 SetIcon(m_iconTaskBarNormal, wxT("")); 454 442 #endif -
clientgui/msw/taskbarex.cpp
141 141 if (!IsOK()) 142 142 return false; 143 143 144 wxString strTip = wxEmptyString;145 146 if (!IsBalloonsSupported())147 strTip = title + wxT(" - ") + message;148 149 144 memset(¬ifyData, 0, sizeof(notifyData)); 150 145 notifyData.cbSize = sizeof(notifyData); 151 146 notifyData.hWnd = (HWND) m_hWnd; … … 162 157 notifyData.hIcon = (HICON) icon.GetHICON(); 163 158 } 164 159 165 if (IsBalloonsSupported()) 160 notifyData.uFlags |= NIF_TIP; 161 lstrcpyn(notifyData.szTip, WXSTRINGCAST title, sizeof(notifyData.szTip)); 162 163 if (IsBalloonsSupported()) 166 164 { 167 notifyData.uFlags |= NIF_INFO | NIF_TIP;165 notifyData.uFlags |= NIF_INFO; 168 166 lstrcpyn(notifyData.szInfo, WXSTRINGCAST message, sizeof(notifyData.szInfo)); 169 167 lstrcpyn(notifyData.szInfoTitle, WXSTRINGCAST title, sizeof(notifyData.szInfoTitle)); 170 lstrcpyn(notifyData.szTip, WXSTRINGCAST wxEmptyString, sizeof(notifyData.szTip));171 168 } 172 else173 {174 notifyData.uFlags |= NIF_TIP;175 lstrcpyn(notifyData.szTip, WXSTRINGCAST strTip, sizeof(notifyData.szTip));176 }177 169 178 170 if (m_iconAdded) 179 171 return (Shell_NotifyIcon(NIM_MODIFY, & notifyData) != 0);