diff options
author | Dan Gudmundsson <[email protected]> | 2014-03-25 10:47:37 +0100 |
---|---|---|
committer | Dan Gudmundsson <[email protected]> | 2014-03-25 10:47:37 +0100 |
commit | f8a509d025fd920525ed49687465d422d71bc165 (patch) | |
tree | 8e0e4ecc2bcfb608591b5977db1b7cad20a9ef33 /lib/wx/c_src/wxe_impl.h | |
parent | 8bf9ec0cb4d4f15bbc2e0e6ccadb43284bcfaa7a (diff) | |
download | otp-f8a509d025fd920525ed49687465d422d71bc165.tar.gz otp-f8a509d025fd920525ed49687465d422d71bc165.tar.bz2 otp-f8a509d025fd920525ed49687465d422d71bc165.zip |
wx: Fix possibility to fetch early open msgs on mac
Mac doesn't add clicked files to program arguments, a callback
is invoked instead, send msgs to erlang about them.
Diffstat (limited to 'lib/wx/c_src/wxe_impl.h')
-rw-r--r-- | lib/wx/c_src/wxe_impl.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/wx/c_src/wxe_impl.h b/lib/wx/c_src/wxe_impl.h index bb54961edd..44a36692d5 100644 --- a/lib/wx/c_src/wxe_impl.h +++ b/lib/wx/c_src/wxe_impl.h @@ -41,12 +41,15 @@ extern "C" { #define WXE_EXITED 2 #define WXE_ERROR -1 -void send_msg(const char *, wxString *); // For debugging and error msgs +void send_msg(const char *, const wxString *); // For debugging and error msgs class WxeApp : public wxApp { public: - virtual bool OnInit(); + virtual bool OnInit(); +#ifdef _MACOSX + virtual void MacOpenFile(const wxString &filename); +#endif void shutdown(wxeMetaCommand& event); int dispatch(wxList *, int, int); |