summaryrefslogtreecommitdiff
path: root/src/wx/film_viewer.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-07-24 21:17:50 +0100
committerCarl Hetherington <cth@carlh.net>2019-07-24 21:17:50 +0100
commit7c730205e50014347bd96ab9735346d0b5922798 (patch)
tree4697202e7acc0a88c569a14eed9ef4d8899da60c /src/wx/film_viewer.h
parent335ef709439cd3678f6813a3fb880110e4c9cb26 (diff)
Re-work idle handling from previous commit.
Diffstat (limited to 'src/wx/film_viewer.h')
-rw-r--r--src/wx/film_viewer.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/wx/film_viewer.h b/src/wx/film_viewer.h
index 298e9dd00..a37d7581e 100644
--- a/src/wx/film_viewer.h
+++ b/src/wx/film_viewer.h
@@ -151,7 +151,9 @@ private:
void timer ();
void calculate_sizes ();
void player_change (ChangeType type, int, bool);
- void get (bool lazy);
+ bool get (bool lazy);
+ void idle_handler ();
+ void request_idle_get ();
void display_player_video ();
void film_change (ChangeType, Film::Property);
void recreate_butler ();
@@ -210,5 +212,8 @@ private:
StateTimer _state_timer;
int _gets;
+ /** true if an get() is required next time we are idle */
+ bool _idle_get;
+
boost::signals2::scoped_connection _config_changed_connection;
};