diff --git a/gtk2_ardour/location_ui.cc b/gtk2_ardour/location_ui.cc index 29f9c29ecc..d3eb19554b 100644 --- a/gtk2_ardour/location_ui.cc +++ b/gtk2_ardour/location_ui.cc @@ -352,6 +352,7 @@ LocationEditRow::set_location (Location *loc) /* connect to per-location signals, since this row only cares about this location */ location->NameChanged.connect (connections, invalidator (*this), boost::bind (&LocationEditRow::name_changed, this), gui_context()); + location->StartChanged.connect (connections, invalidator (*this), boost::bind (&LocationEditRow::start_changed, this), gui_context()); location->EndChanged.connect (connections, invalidator (*this), boost::bind (&LocationEditRow::end_changed, this), gui_context()); location->Changed.connect (connections, invalidator (*this), boost::bind (&LocationEditRow::location_changed, this), gui_context()); location->FlagsChanged.connect (connections, invalidator (*this), boost::bind (&LocationEditRow::flags_changed, this), gui_context()); @@ -889,20 +890,6 @@ LocationUI::location_remove_requested (ARDOUR::Location *loc) Glib::signal_idle().connect (sigc::bind (sigc::mem_fun(*this, &LocationUI::do_location_remove), loc)); } -void -LocationUI::queue_refresh_location_list () -{ - if (!_redisplay_connection.connected ()) { - _redisplay_connection = Glib::signal_idle().connect (sigc::mem_fun (*this, &LocationUI::idle_refresh_location_list), Glib::PRIORITY_HIGH_IDLE+10); - } -} - -bool -LocationUI::idle_refresh_location_list () -{ - refresh_location_list (); - return false; -} void LocationUI::location_redraw_ranges () @@ -1110,7 +1097,6 @@ LocationUI::set_session(ARDOUR::Session* s) _session->locations()->added.connect (_session_connections, invalidator (*this), boost::bind (&LocationUI::location_added, this, _1), gui_context()); _session->locations()->removed.connect (_session_connections, invalidator (*this), boost::bind (&LocationUI::location_removed, this, _1), gui_context()); _session->locations()->changed.connect (_session_connections, invalidator (*this), boost::bind (&LocationUI::refresh_location_list, this), gui_context()); - Location::start_changed.connect (_session_connections, invalidator (*this), boost::bind (&LocationUI::queue_refresh_location_list, this), gui_context()); _clock_group->set_clock_mode (clock_mode_from_session_instant_xml ()); } else { diff --git a/gtk2_ardour/location_ui.h b/gtk2_ardour/location_ui.h index 9ac00f3e4e..5c9368bc76 100644 --- a/gtk2_ardour/location_ui.h +++ b/gtk2_ardour/location_ui.h @@ -202,9 +202,6 @@ private: void location_remove_requested (ARDOUR::Location *); void location_redraw_ranges (); - void queue_refresh_location_list (); - bool idle_refresh_location_list (); - sigc::connection _redisplay_connection; gint do_location_remove (ARDOUR::Location *);