]> git.saurik.com Git - wxWidgets.git/commitdiff
Add EVT_FSWATCHER event table macro.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 24 Dec 2011 15:43:08 +0000 (15:43 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 24 Dec 2011 15:43:08 +0000 (15:43 +0000)
It was documented, and ought to have existed anyhow for consistency with
wxEVT_FSWATCHER, but wasn't defined. Do it now.

Closes #13804.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70107 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/fswatcher.h

index 34e14fecd6f0b770d12d3e6824e8e1f167754f8f..ff856722c1a397ff5e337a49ca44f0dc4b58449a 100644 (file)
@@ -184,6 +184,8 @@ typedef void (wxEvtHandler::*wxFileSystemWatcherEventFunction)
 #define wxFileSystemWatcherEventHandler(func) \
     wxEVENT_HANDLER_CAST(wxFileSystemWatcherEventFunction, func)
 
+#define EVT_FSWATCHER(winid, func) \
+    wx__DECLARE_EVT1(wxEVT_FSWATCHER, winid, wxFileSystemWatcherEventHandler(func))
 
 // ----------------------------------------------------------------------------
 // wxFileSystemWatcherBase: interface for wxFileSystemWatcher