Revision: 7261
http://svn.sourceforge.net/mahogany/?rev=7261&view=rev
Author: vadz
Date: 2007-04-30 10:10:13 -0700 (Mon, 30 Apr 2007)
Log Message:
-----------
don't freeze/thaw list control under MSW, it results in more, not less, flicker
when opening the folder
Modified Paths:
--------------
trunk/M/src/gui/wxFolderView.cpp
Modified: trunk/M/src/gui/wxFolderView.cpp
===================================================================
--- trunk/M/src/gui/wxFolderView.cpp 2007-04-30 16:45:56 UTC (rev 7260)
+++ trunk/M/src/gui/wxFolderView.cpp 2007-04-30 17:10:13 UTC (rev 7261)
@@ -1571,8 +1571,14 @@
InvalidateCache();
}
+ // freezing the control under MSW actually results in more flicker, not
+ // less: Thaw() repaints it, but it's also repained when we give it the
+ // focus so it's painted at least twice, while without Freeze/Thaw() it's
+ // still painted correctly and only once
+#ifndef __WXMSW__
// wait until we get the headers
Freeze();
+#endif // __WXMSW__
}
void wxFolderListCtrl::UpdateColumnWidths()
@@ -2359,8 +2365,10 @@
m_FolderView->SelectInitialMessage();
+#ifndef __WXMSW__
// we can redraw now
Thaw();
+#endif // __WXMSW__
}
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Mahogany-cvsupdates mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates