MGR: Fixes to new Simple GUI for Linux

svn path=/trunk/boinc/; revision=23522
This commit is contained in:
Charlie Fenton 2011-05-11 00:50:52 +00:00
parent 2ea990b9a1
commit d1ae7a2fcc
3 changed files with 12 additions and 2 deletions

View File

@ -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

View File

@ -730,6 +730,8 @@ void CSimpleGUIPanel::OnFrameRender() {
} else if (m_oldWorkCount == 0) {
m_projPanel->Show();
}
this->Layout();
ReskinInterface();
}
if (IsShown()) {

View File

@ -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();