summaryrefslogtreecommitdiff
path: root/gtk2_ardour/marker.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2017-03-11 05:14:32 +0100
committerRobin Gareus <robin@gareus.org>2017-03-11 05:14:32 +0100
commitfd9330f591cdb41861b948ae0b386e9513cdfcb7 (patch)
tree090fcbe3790695df5c08821f75393c6a6fd6adfd /gtk2_ardour/marker.cc
parent34d6de83a0085916e150f3842c5d1a583f29898b (diff)
Tweak tempo-marker grab-handle (extend left/right)
Diffstat (limited to 'gtk2_ardour/marker.cc')
-rw-r--r--gtk2_ardour/marker.cc10
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);
}
}