CVS: M/include/gui wxMApp.h,1.74,1.75

Vadim Zeitlin <[email protected]>
Newsgroups gmane.mail.mahogany.cvs
Message-ID <[email protected]>
Update of /cvsroot/mahogany/M/include/gui
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv6638/include/gui

Modified Files:
	wxMApp.h 
Log Message:
ignore command and char events received while c-client is locked, this should fix mm_fatal() calls when we try to do something in response to such event called from inside wxProgressDialog::Update() which calls wxYield()

Index: wxMApp.h
===================================================================
RCS file: /cvsroot/mahogany/M/include/gui/wxMApp.h,v
retrieving revision 1.74
retrieving revision 1.75
diff -b -u -2 -r1.74 -r1.75
--- wxMApp.h	9 Apr 2005 15:37:03 -0000	1.74
+++ wxMApp.h	18 Sep 2006 23:47:27 -0000	1.75
@@ -91,11 +91,11 @@
    virtual bool OnCmdLineParsed(wxCmdLineParser& parser);
 
-   // this function is virtual only in 2.3.0
-#if wxCHECK_VERSION(2, 3, 0)
+   // stop event processing while c-client is locked to prevent reentrancies
+   virtual int FilterEvent(wxEvent& event);
+
    // override top level window detection: never return splash frame from here
    // as it is transient and so is not suitable for use as a parent for the
    // dialogs (it can disappear before the dialog is closed)
    virtual wxWindow *GetTopWindow() const;
-#endif // 2.3.0
 
    // override wxWindows default icons


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.