diff options
author | s_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b> | 2010-06-22 03:45:37 +0000 |
---|---|---|
committer | s_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b> | 2010-06-22 03:45:37 +0000 |
commit | 8efd8f7f47bb84e3bfca07e64693514a8f90240b (patch) | |
tree | b2b53f4da6404fa521fc5b9d9b4c99d6ff8b8ef8 | |
parent | 36bb88e1b9825f84c49c04643461dce823f70455 (diff) |
re-enable hiding taskbar button on minimize on linux, though it doesn't work cleanly
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@89 1a98c847-1fd6-4fd8-948a-caf3550aa51b
-rw-r--r-- | main.cpp | 2 | ||||
-rw-r--r-- | ui.cpp | 8 |
2 files changed, 5 insertions, 5 deletions
@@ -2725,7 +2725,7 @@ void BitcoinMiner() string strStatus = strprintf(" %.0f khash/s", dHashesPerSec/1000.0);
UIThreadCall(bind(CalledSetStatusBar, strStatus, 0));
static int64 nLogTime;
- if (GetTime() - nLogTime > 60 * 60)
+ if (GetTime() - nLogTime > 30 * 60)
{
nLogTime = GetTime();
printf("%s ", DateTimeStrFormat("%x %H:%M", GetTime()).c_str());
@@ -375,13 +375,13 @@ void CMainFrame::OnIconize(wxIconizeEvent& event) // to get rid of the deprecated warning. Just ignore it.
if (!event.Iconized())
fClosedToTray = false;
-#ifdef __WXMSW__
+//#ifdef __WXMSW__
// The tray icon sometimes disappears on ubuntu karmic
- // Hiding the taskbar button doesn't work reliably on ubuntu lucid
+ // Hiding the taskbar button doesn't work cleanly on ubuntu lucid
if (fMinimizeToTray && event.Iconized())
fClosedToTray = true;
Show(!fClosedToTray);
-#endif
+//#endif
ptaskbaricon->Show(fMinimizeToTray || fClosedToTray);
}
@@ -2437,7 +2437,7 @@ void CMyTaskBarIcon::Show(bool fShow) {
strlcpy(pszPrevTip, strTooltip.c_str(), sizeof(pszPrevTip));
#ifdef __WXMSW__
- // somehow it'll choose the wrong icon and scale it down if
+ // somehow it'll choose the wrong size and scale it down if
// we use the main icon, so we hand it one with only 16x16
SetIcon(wxICON(favicon), strTooltip);
#else
|