added helper GTKShouldIgnoreEvent() to use in void GTK event handlers

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61079 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2009-06-16 19:08:24 +00:00
parent 9330d5afb6
commit 02bad8305c
2 changed files with 12 additions and 1 deletions

View File

@@ -1208,6 +1208,11 @@ bool wxWindowGTK::GTKProcessEvent(wxEvent& event) const
return HandleWindowEvent(event);
}
bool wxWindowGTK::GTKShouldIgnoreEvent() const
{
return !m_hasVMT || g_blockEventsOnDrag;
}
int wxWindowGTK::GTKCallbackCommonPrologue(GdkEventAny *event) const
{
if (!m_hasVMT)