SF.net SVN: mahogany:[7570] trunk/M/src/gui/wxFolderTree.cpp
[email protected] Tue, 21 Jul 2009 00:23:14 +0000
| Newsgroups | gmane.mail.mahogany.cvs |
|---|---|
| Message-ID | <[email protected]> |
Revision: 7570
http://mahogany.svn.sourceforge.net/mahogany/?rev=7570&view=rev
Author: vadz
Date: 2009-07-21 00:23:14 +0000 (Tue, 21 Jul 2009)
Log Message:
-----------
Use wxGetTopLevelParent() instead of M-specific function doing the same thing.
This makes the code simpler but mostly was done to fix strange MSVC 7.1 error
after recent wxLog changes it now refuses to compile code passing
GetFrame(m_tree->wxWindow::GetParent()) to wxLogXXX() functions complaining
about "wxWindow not member of wxFolderTreeImpl" (!?).
Modified Paths:
--------------
trunk/M/src/gui/wxFolderTree.cpp
Modified: trunk/M/src/gui/wxFolderTree.cpp
===================================================================
--- trunk/M/src/gui/wxFolderTree.cpp 2009-07-21 00:16:59 UTC (rev 7569)
+++ trunk/M/src/gui/wxFolderTree.cpp 2009-07-21 00:23:14 UTC (rev 7570)
@@ -1135,7 +1135,7 @@
if ( rc )
{
- wxLogStatus(GetFrame(m_tree->wxWindow::GetParent()),
+ wxLogStatus(wxGetTopLevelParent(m_tree),
_("Successfully renamed folder '%s'."),
folder->GetFullName().c_str());
}
@@ -1174,7 +1174,7 @@
rc = folder->Move(newParent);
if ( rc )
{
- wxLogStatus(GetFrame(m_tree->wxWindow::GetParent()),
+ wxLogStatus(wxGetTopLevelParent(m_tree),
_("Successfully moved folder '%s' to '%s'."),
folder->GetFullName().c_str(), newParent->GetFullName().c_str());
}
@@ -1240,7 +1240,7 @@
}
else
{
- wxLogStatus(GetFrame(m_tree->wxWindow::GetParent()),
+ wxLogStatus(wxGetTopLevelParent(m_tree),
_("Updated status of the folder '%s'"),
folder->GetFullName().c_str());
}
@@ -1257,7 +1257,7 @@
}
else
{
- wxLogStatus(GetFrame(m_tree->wxWindow::GetParent()),
+ wxLogStatus(wxGetTopLevelParent(m_tree),
_("Updated status of %d folders."),
nUpdated);
}
@@ -1270,7 +1270,7 @@
// connection as well ("don't linger")
(void)MailFolder::CloseFolder(folder, false /* don't linger */);
- wxLogStatus(GetFrame(m_tree->wxWindow::GetParent()),
+ wxLogStatus(wxGetTopLevelParent(m_tree),
_("Folder '%s' closed."),
folder->GetFullName().c_str());
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge