]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/event.cpp
removed gtk.h include
[wxWidgets.git] / src / common / event.cpp
index 678d31d3cc41388d481264983cbcf3f96ebe272e..93d17db76e4c89f8080c863a972119aad0fc4e93 100644 (file)
@@ -338,7 +338,7 @@ int wxNewEventType()
 // ----------------------------------------------------------------------------
 
 /*
- * General wxWindows events, covering
+ * General wxWidgets events, covering
  * all interesting things that might happen (button clicking, resizing,
  * setting text in widgets, etc.).
  *
@@ -1095,9 +1095,11 @@ void wxEvtHandler::AddPendingEvent(wxEvent& event)
 
 void wxEvtHandler::ProcessPendingEvents()
 {
-    // DE: It doesn't look like this method was intended to be called unless
-    // pending events have already been created.
-    wxASSERT_MSG(m_pendingEvents,wxT("Please call wxApp::ProcessPendingEvents() instead"));
+    // this method is only called by wxApp if this handler does have pending
+    // events
+    wxCHECK_RET( m_pendingEvents,
+                 wxT("Please call wxApp::ProcessPendingEvents() instead") );
+
 #if defined(__VISAGECPP__)
     wxENTER_CRIT_SECT( m_eventsLocker);
 #else