mirror of https://github.com/BOINC/boinc.git
Merge branch 'master' of ssh://boinc.berkeley.edu/boinc-v2
This commit is contained in:
commit
e498cde46c
Binary file not shown.
Before Width: | Height: | Size: 278 KiB After Width: | Height: | Size: 89 KiB |
|
@ -220,7 +220,7 @@ CAdvancedFrame::CAdvancedFrame(wxString title, wxIcon* icon, wxIcon* icon32, wxP
|
|||
|
||||
// Initialize Application
|
||||
#ifdef __WXMSW__
|
||||
SetIcon(wxICON(APP_ICON));
|
||||
SetIcons(wxICON(BOINCGUIAPP));
|
||||
#else
|
||||
wxIconBundle icons;
|
||||
icons.AddIcon(*icon);
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
// Microsoft Visual C++ generated resource script.
|
||||
//
|
||||
#include "resource.h"
|
||||
|
||||
#define APSTUDIO_READONLY_SYMBOLS
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -22,28 +21,6 @@ LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
|
|||
#pragma code_page(1252)
|
||||
#endif //_WIN32
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Icon
|
||||
//
|
||||
|
||||
// Icon with lowest ID value placed first to ensure application icon
|
||||
// remains consistent on all systems.
|
||||
#if defined(_GRIDREPUBLIC)
|
||||
APP_ICON ICON "res\\gridrepublic.ico"
|
||||
#elif defined(_PROGRESSTHRUPROCESSORS)
|
||||
APP_ICON ICON "res\\progress.ico"
|
||||
#elif defined(_CHARITYENGINE)
|
||||
APP_ICON ICON "res\\ce.ico"
|
||||
#elif defined(_WCG)
|
||||
APP_ICON ICON "res\\wcg.ico"
|
||||
#else
|
||||
APP_ICON ICON "res\\boincguiApp.ico"
|
||||
#endif
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#endif // Neutral resources
|
||||
|
@ -75,6 +52,22 @@ LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
|
|||
// Icon
|
||||
//
|
||||
|
||||
// Icon with lowest ID value placed first to ensure application icon
|
||||
// remains consistent on all systems.
|
||||
#if defined(_GRIDREPUBLIC)
|
||||
BOINCGUIAPP ICON "res\\gridrepublic.ico"
|
||||
#elif defined(_PROGRESSTHRUPROCESSORS)
|
||||
BOINCGUIAPP ICON "res\\progress.ico"
|
||||
#elif defined(_CHARITYENGINE)
|
||||
BOINCGUIAPP ICON "res\\ce.ico"
|
||||
#elif defined(_WCG)
|
||||
BOINCGUIAPP ICON "res\\wcg.ico"
|
||||
#else
|
||||
BOINCGUIAPP ICON "res\\boincguiapp.ico"
|
||||
#endif
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Bitmap
|
||||
|
@ -87,18 +80,13 @@ LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
|
|||
//
|
||||
|
||||
1 TEXTINCLUDE
|
||||
BEGIN
|
||||
"resource.h\0"
|
||||
END
|
||||
|
||||
2 TEXTINCLUDE
|
||||
BEGIN
|
||||
"#include <wx/msw/wx.rc>\r\n"
|
||||
"#include ""win_config.h""\r\n"
|
||||
"\0"
|
||||
END
|
||||
|
||||
3 TEXTINCLUDE
|
||||
2 TEXTINCLUDE
|
||||
BEGIN
|
||||
"\0"
|
||||
END
|
||||
|
|
|
@ -555,21 +555,19 @@ int CMainDocument::OnExit() {
|
|||
|
||||
|
||||
int CMainDocument::OnPoll() {
|
||||
CBOINCBaseFrame* pFrame = wxGetApp().GetFrame();
|
||||
int iRetVal = 0;
|
||||
int otherInstanceID;
|
||||
wxString hostName = wxGetApp().GetClientHostNameArg();
|
||||
int portNum = wxGetApp().GetClientRPCPortArg();
|
||||
wxString password = wxGetApp().GetClientPasswordArg();
|
||||
int portNum = wxGetApp().GetClientRPCPortArg();
|
||||
|
||||
wxASSERT(wxDynamicCast(m_pClientManager, CBOINCClientManager));
|
||||
wxASSERT(wxDynamicCast(m_pNetworkConnection, CNetworkConnection));
|
||||
|
||||
if (!m_bClientStartCheckCompleted) {
|
||||
if (!m_bClientStartCheckCompleted && pFrame) {
|
||||
m_bClientStartCheckCompleted = true;
|
||||
|
||||
CBOINCBaseFrame* pFrame = wxGetApp().GetFrame();
|
||||
wxASSERT(wxDynamicCast(pFrame, CBOINCBaseFrame));
|
||||
|
||||
if (IsComputerNameLocal(hostName)) {
|
||||
otherInstanceID = wxGetApp().IsAnotherInstanceRunning();
|
||||
if (otherInstanceID) {
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 278 KiB After Width: | Height: | Size: 89 KiB |
|
@ -2,8 +2,7 @@
|
|||
// Microsoft Visual C++ generated include file.
|
||||
// Used by BOINCGUIApp.rc
|
||||
//
|
||||
#define APP_ICON 0
|
||||
#define APP_ICON2 1
|
||||
#define ICON_BOINCGUIAPP 0
|
||||
|
||||
// Next default values for new objects
|
||||
//
|
||||
|
|
|
@ -96,7 +96,7 @@ CSimpleFrame::CSimpleFrame(wxString title, wxIcon* icon, wxIcon* icon32, wxPoint
|
|||
|
||||
// Initialize Application
|
||||
#ifdef __WXMSW__
|
||||
SetIcon(wxICON(APP_ICON));
|
||||
SetIcons(wxICON(BOINCGUIAPP));
|
||||
#else
|
||||
wxIconBundle icons;
|
||||
icons.AddIcon(*icon);
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 278 KiB After Width: | Height: | Size: 89 KiB |
Loading…
Reference in New Issue