diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-07-19 17:14:28 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-07-19 18:58:24 +0100 |
| commit | 7b12e1995891da95d898608215cfe7f3e8c3facc (patch) | |
| tree | 7e22fd9321d7a93bd8dbcec08e92a692430e7985 /src/lib | |
| parent | bd453939da140ea994282e1c167ea5f8d02e2d94 (diff) | |
Some missing ui_signaller use.
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/content.cc | 5 | ||||
| -rw-r--r-- | src/lib/player.cc | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/lib/content.cc b/src/lib/content.cc index 531dbc38f..cca4d56de 100644 --- a/src/lib/content.cc +++ b/src/lib/content.cc @@ -23,6 +23,7 @@ #include "content.h" #include "util.h" #include "content_factory.h" +#include "ui_signaller.h" using std::string; using std::set; @@ -78,7 +79,9 @@ Content::examine (shared_ptr<Job>) void Content::signal_changed (int p) { - Changed (shared_from_this (), p, _change_signals_frequent); + if (ui_signaller) { + ui_signaller->emit (boost::bind (boost::ref (Changed), shared_from_this (), p, _change_signals_frequent)); + } } void diff --git a/src/lib/player.cc b/src/lib/player.cc index 1ffced425..98a31ae74 100644 --- a/src/lib/player.cc +++ b/src/lib/player.cc @@ -45,7 +45,7 @@ using boost::shared_ptr; using boost::weak_ptr; using boost::dynamic_pointer_cast; -#define DEBUG_PLAYER 1 +//#define DEBUG_PLAYER 1 class Piece { |
