make selectability of a TimeAxisView be overridable

This commit is contained in:
Paul Davis 2016-05-21 16:35:32 -04:00
parent 4aea553467
commit e626db22a0
2 changed files with 4 additions and 1 deletions

View File

@ -510,7 +510,9 @@ TimeAxisView::controls_ebox_button_release (GdkEventButton* ev)
switch (ev->button) {
case 1:
selection_click (ev);
if (selectable()) {
selection_click (ev);
}
break;
case 3:

View File

@ -134,6 +134,7 @@ class TimeAxisView : public virtual AxisView
bool hidden () const { return _hidden; }
void set_selected (bool);
virtual bool selectable() const { return true; }
/**
* potential handler for entered events