From d1ae7a2fccff0eb33e0f5043fd4e0435907d8989 Mon Sep 17 00:00:00 2001 From: Charlie Fenton Date: Wed, 11 May 2011 00:50:52 +0000 Subject: [PATCH] MGR: Fixes to new Simple GUI for Linux svn path=/trunk/boinc/; revision=23522 --- checkin_notes | 7 +++++++ clientgui/sg_BoincSimpleFrame.cpp | 2 ++ clientgui/sg_ProjectPanel.cpp | 5 +++-- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/checkin_notes b/checkin_notes index 1c56a67bee..22f2a9b3b5 100644 --- a/checkin_notes +++ b/checkin_notes @@ -2879,3 +2879,10 @@ David 10 May 2011 samples/vboxwrapper/ vbox.cpp vm.cpp,h + +Charlie 10 May 2011 + - MGR: Fixes to new Simple GUI for Linux. + + clientgui/ + sg_BoincSimpleFrame.cpp + sg_ProjectPanel.cpp diff --git a/clientgui/sg_BoincSimpleFrame.cpp b/clientgui/sg_BoincSimpleFrame.cpp index f2e6e57c06..23c2a38561 100755 --- a/clientgui/sg_BoincSimpleFrame.cpp +++ b/clientgui/sg_BoincSimpleFrame.cpp @@ -730,6 +730,8 @@ void CSimpleGUIPanel::OnFrameRender() { } else if (m_oldWorkCount == 0) { m_projPanel->Show(); } + this->Layout(); + ReskinInterface(); } if (IsShown()) { diff --git a/clientgui/sg_ProjectPanel.cpp b/clientgui/sg_ProjectPanel.cpp index 5576f5f0b1..c727b46c61 100755 --- a/clientgui/sg_ProjectPanel.cpp +++ b/clientgui/sg_ProjectPanel.cpp @@ -204,15 +204,16 @@ void CSimpleProjectPanel::UpdateInterface() { m_TaskAddProjectButton->SetLabel(m_sSynchronizeString); m_TaskAddProjectButton->Enable(); m_TaskAddProjectButton->Show(); - m_TaskAddProjectButton->SetToolTip(m_sAddProjectToolTip); + m_TaskAddProjectButton->SetToolTip(m_sSynchronizeToolTip); } else { m_TaskAddProjectButton->SetLabel(m_sAddProjectString); if (!status.disallow_attach) { m_TaskAddProjectButton->Enable(); m_TaskAddProjectButton->Show(); - m_TaskAddProjectButton->SetToolTip(m_sSynchronizeToolTip); + m_TaskAddProjectButton->SetToolTip(m_sAddProjectToolTip); } } + this->Layout(); } } else { m_TaskAddProjectButton->Hide();