using namespace Editing;
void
-Editor::handle_audio_region_removed (AudioRegion* ignored)
+Editor::handle_audio_region_removed (AudioRegion* region)
{
+ ENSURE_GUI_THREAD (bind (mem_fun (*this, &Editor::handle_audio_region_removed), region));
redisplay_regions ();
}
void
Editor::handle_new_audio_region (AudioRegion *region)
{
+ ENSURE_GUI_THREAD (bind (mem_fun (*this, &Editor::handle_new_audio_region), region));
+
/* don't copy region - the one we are being notified
about belongs to the session, and so it will
never be edited.
*/
if ((iter = region_list_model->get_iter (*i))) {
- set_selected_regionview_from_region_list (*((*iter)[region_list_columns.region]), false);
+ set_selected_regionview_from_region_list (*((*iter)[region_list_columns.region]), Selection::Set);
}
}
}
const SelectionData& data,
guint info, guint time)
{
- vector<string> paths;
+ vector<ustring> paths;
if (convert_drop_to_paths (paths, context, x, y, data, info, time) == 0) {
- do_embed_sndfiles (paths, false);
+ jack_nframes_t pos = 0;
+ do_embed (paths, false, ImportAsRegion, 0, pos, true);
context->drag_finish (true, false, time);
}
}