mini-tl: subscribe to location add/remove signals
This commit is contained in:
parent
741df6e6ef
commit
f9743a1eb1
@ -68,7 +68,7 @@ void
|
||||
MiniTimeline::session_going_away ()
|
||||
{
|
||||
super_rapid_connection.disconnect ();
|
||||
session_connection.disconnect ();
|
||||
session_connection.drop_connections ();
|
||||
SessionHandlePtr::session_going_away ();
|
||||
_jumplist.clear ();
|
||||
}
|
||||
@ -85,10 +85,23 @@ MiniTimeline::set_session (Session* s)
|
||||
super_rapid_connection = Timers::super_rapid_connect (
|
||||
sigc::mem_fun (*this, &MiniTimeline::super_rapid_update)
|
||||
);
|
||||
|
||||
_session->config.ParameterChanged.connect (session_connection,
|
||||
invalidator (*this),
|
||||
boost::bind (&MiniTimeline::parameter_changed, this, _1), gui_context()
|
||||
);
|
||||
_session->locations()->added.connect (session_connection,
|
||||
invalidator (*this),
|
||||
boost::bind (&MiniTimeline::update_minitimeline, this), gui_context()
|
||||
);
|
||||
_session->locations()->removed.connect (session_connection,
|
||||
invalidator (*this),
|
||||
boost::bind (&MiniTimeline::update_minitimeline, this), gui_context()
|
||||
);
|
||||
_session->locations()->changed.connect (session_connection,
|
||||
invalidator (*this),
|
||||
boost::bind (&MiniTimeline::update_minitimeline, this), gui_context()
|
||||
);
|
||||
|
||||
_jumplist.clear ();
|
||||
}
|
||||
|
@ -69,7 +69,7 @@ private:
|
||||
Glib::RefPtr<Pango::Layout> _layout;
|
||||
sigc::connection super_rapid_connection;
|
||||
PBD::ScopedConnectionList marker_connection;
|
||||
PBD::ScopedConnection session_connection;
|
||||
PBD::ScopedConnectionList session_connection;
|
||||
|
||||
framepos_t _last_update_frame;
|
||||
AudioClock::Mode _clock_mode;
|
||||
|
Loading…
Reference in New Issue
Block a user