some prep work for generally handling dbl-click on draggable objects

This commit is contained in:
Paul Davis 2013-06-21 15:18:54 -04:00
parent a079118981
commit 479e97dc59
3 changed files with 26 additions and 2 deletions

View file

@ -1293,6 +1293,11 @@ Editor::button_press_handler_2 (ArdourCanvas::Item* item, GdkEvent* event, ItemT
bool
Editor::button_press_handler (ArdourCanvas::Item* item, GdkEvent* event, ItemType item_type)
{
if (event->type == GDK_2BUTTON_PRESS) {
_drags->mark_double_click ();
return false;
}
if (event->type != GDK_BUTTON_PRESS) {
return false;
}