diff options
Diffstat (limited to 'gtk2_ardour/marker.cc')
-rw-r--r-- | gtk2_ardour/marker.cc | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/gtk2_ardour/marker.cc b/gtk2_ardour/marker.cc index faa4365ed5..15ef13fa4e 100644 --- a/gtk2_ardour/marker.cc +++ b/gtk2_ardour/marker.cc @@ -436,16 +436,22 @@ ArdourMarker::setup_name_display () * arbitrary 2 pixels of extra padding at the end */ switch (_type) { - case Mark: case Tempo: + _name_item->hide (); + // tip's x-pos is at "M3", box is 2x marker's + _name_background->set_x0 (-M3); + _name_background->set_x1 (3 * M3); + break; + case Mark: case Meter: _name_background->set_x0 (M3); + _name_background->set_x1 (_name_item->position().x + name_width + padding); break; default: _name_background->set_x0 (0); + _name_background->set_x1 (_name_item->position().x + name_width + padding); break; } - _name_background->set_x1 (_name_item->position().x + name_width + padding); } } |