aboutsummaryrefslogtreecommitdiff
path: root/ui.cpp
diff options
context:
space:
mode:
authors_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b>2010-06-21 01:33:44 +0000
committers_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b>2010-06-21 01:33:44 +0000
commit68b973a913fd1569d3a9a444d4233b15f7866e3e (patch)
tree97973a93f646b9350a332cef285f68ec44fc68c5 /ui.cpp
parent24ba1b64e93baafba2657ba7d8b63c759c3439ce (diff)
fixed colors on ubuntu lucid,v0.2.13
enabled -O2 in makefile.unix, boost removed -mt from their library names in 1.40, updated bitcoin icon, hashmeter, generated and hashmeter log entries -- version 0.2.13 git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@86 1a98c847-1fd6-4fd8-948a-caf3550aa51b
Diffstat (limited to 'ui.cpp')
-rw-r--r--ui.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/ui.cpp b/ui.cpp
index a21cd436c4..6a1f6bafaf 100644
--- a/ui.cpp
+++ b/ui.cpp
@@ -250,7 +250,8 @@ CMainFrame::CMainFrame(wxWindow* parent) : CMainFrameBase(parent)
#ifdef __WXMSW__
SetIcon(wxICON(bitcoin));
#else
- SetIcon(bitcoin16_xpm);
+ SetIcon(bitcoin20_xpm);
+ SetBackgroundColour(m_toolBar->GetBackgroundColour());
wxFont fontTmp = m_staticText41->GetFont();
fontTmp.SetFamily(wxFONTFAMILY_TELETYPE);
m_staticTextBalance->SetFont(fontTmp);
@@ -374,13 +375,13 @@ void CMainFrame::OnIconize(wxIconizeEvent& event)
// to get rid of the deprecated warning. Just ignore it.
if (!event.Iconized())
fClosedToTray = false;
-#ifndef __WXMSW__
- // Tray is not reliable on ubuntu 9.10 gnome
- fClosedToTray = false;
-#endif
+#ifdef __WXMSW__
+ // The tray icon sometimes disappears on ubuntu karmic
+ // Hiding the taskbar button doesn't work reliably on ubuntu lucid
if (fMinimizeToTray && event.Iconized())
fClosedToTray = true;
Show(!fClosedToTray);
+#endif
ptaskbaricon->Show(fMinimizeToTray || fClosedToTray);
}