summaryrefslogtreecommitdiff
path: root/src/tools
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2012-10-24 19:49:14 +0100
committerCarl Hetherington <cth@carlh.net>2012-10-24 19:49:14 +0100
commit17830349b580b5933589f2b739671828b5cfc208 (patch)
tree9b81623c16cf4d899458a87d32337c4b7b7b0e39 /src/tools
parentbd8fa9a370f1739952c83107352baa08c79d095e (diff)
Cross-thread UI signalling.
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/dvdomatic.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/tools/dvdomatic.cc b/src/tools/dvdomatic.cc
index 5bc8b93fb..4e3006c57 100644
--- a/src/tools/dvdomatic.cc
+++ b/src/tools/dvdomatic.cc
@@ -31,6 +31,7 @@
#include "wx/wx_util.h"
#include "wx/new_film_dialog.h"
#include "wx/properties_dialog.h"
+#include "wx/wx_ui_signaller.h"
#include "lib/film.h"
#include "lib/format.h"
#include "lib/config.h"
@@ -39,6 +40,7 @@
#include "lib/scaler.h"
#include "lib/exceptions.h"
#include "lib/version.h"
+#include "lib/ui_signaller.h"
using namespace std;
using namespace boost;
@@ -381,8 +383,17 @@ class App : public wxApp
SetTopWindow (f);
f->Maximize ();
f->Show ();
+
+ ui_signaller = new wxUISignaller (this);
+ this->Connect (-1, wxEVT_IDLE, wxIdleEventHandler (App::idle));
+
return true;
}
+
+ void idle (wxIdleEvent &)
+ {
+ ui_signaller->ui_idle ();
+ }
};
IMPLEMENT_APP (App)