mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 16:46:35 +01:00
make selectability of a TimeAxisView be overridable
This commit is contained in:
parent
4aea553467
commit
e626db22a0
2 changed files with 4 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue