trigger_ui: slot-to-slot drag, with static variable implementation (gtk part)
This commit is contained in:
parent
7a3624af6f
commit
0f4a5f2d52
@ -988,6 +988,19 @@ TriggerBoxUI::drag_data_received (Glib::RefPtr<Gdk::DragContext> const& context,
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (data.get_target () == "x-ardour/trigger.pbdid") {
|
||||||
|
PBD::ID tid (data.get_data_as_string ());
|
||||||
|
boost::shared_ptr<Trigger> source = _triggerbox.session().trigger_by_id (tid);
|
||||||
|
if (source) {
|
||||||
|
_triggerbox.enqueue_trigger_source(tid);
|
||||||
|
_triggerbox.set_from_selection (n, source->region());
|
||||||
|
context->drag_finish (true, false, time);
|
||||||
|
} else {
|
||||||
|
context->drag_finish (false, false, time);
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
std::vector<std::string> paths;
|
std::vector<std::string> paths;
|
||||||
if (ARDOUR_UI_UTILS::convert_drop_to_paths (paths, data)) {
|
if (ARDOUR_UI_UTILS::convert_drop_to_paths (paths, data)) {
|
||||||
for (std::vector<std::string>::iterator s = paths.begin (); s != paths.end (); ++s) {
|
for (std::vector<std::string>::iterator s = paths.begin (); s != paths.end (); ++s) {
|
||||||
|
Loading…
Reference in New Issue
Block a user