X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Fwx%2Fwx_signal_manager.cc;h=78a98b1d60e036bd433acb9399f3ac45e4479fba;hp=3d8b9992a20a7f6d394d86d7d7529b4ff54c5ed3;hb=c622a06189181a3a6ad356094c9a3cf4e1f5a722;hpb=6f0a590bc3266f21ba577116219bd019e891d480 diff --git a/src/wx/wx_signal_manager.cc b/src/wx/wx_signal_manager.cc index 3d8b9992a..78a98b1d6 100644 --- a/src/wx/wx_signal_manager.cc +++ b/src/wx/wx_signal_manager.cc @@ -1,24 +1,28 @@ /* Copyright (C) 2012-2015 Carl Hetherington - This program is free software; you can redistribute it and/or modify + This file is part of DCP-o-matic. + + DCP-o-matic is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, + DCP-o-matic is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + along with DCP-o-matic. If not, see . */ -#include #include "wx_signal_manager.h" +#include "lib/warnings.h" +DCPOMATIC_DISABLE_WARNINGS +#include +DCPOMATIC_ENABLE_WARNINGS wxSignalManager::wxSignalManager (wxEvtHandler* h) : _handler (h) @@ -29,6 +33,6 @@ wxSignalManager::wxSignalManager (wxEvtHandler* h) void wxSignalManager::wake_ui () { - wxCommandEvent event (-1, -1); + wxCommandEvent event (wxEVT_IDLE); _handler->AddPendingEvent (event); }