add tooltip to mini-timeline
authorRobin Gareus <robin@gareus.org>
Tue, 20 Dec 2016 02:58:49 +0000 (03:58 +0100)
committerRobin Gareus <robin@gareus.org>
Tue, 20 Dec 2016 02:59:15 +0000 (03:59 +0100)
gtk2_ardour/mini_timeline.cc

index a16beaf4da3ce8ee1dfef562e5728bac46af88c0..e26dc9704df0e3c6c90be18c4bca36416d75b415 100644 (file)
@@ -31,6 +31,7 @@
 #include "main_clock.h"
 #include "mini_timeline.h"
 #include "timers.h"
+#include "tooltips.h"
 #include "ui_config.h"
 
 #include "pbd/i18n.h"
@@ -69,6 +70,11 @@ MiniTimeline::MiniTimeline ()
        Location::start_changed.connect (marker_connection, invalidator (*this), boost::bind (&MiniTimeline::update_minitimeline, this), gui_context ());
        Location::flags_changed.connect (marker_connection, invalidator (*this), boost::bind (&MiniTimeline::update_minitimeline, this), gui_context ());
 
+       ARDOUR_UI_UTILS::set_tooltip (*this,
+                       string_compose (_("<b>Navigation Timeline</b>. Use left-click to locate to time position or marker; scroll-wheel to jump, hold %1 for fine gained and %2 + %3 for extra-fine grained control. Right-click to set display range. The display unit is defined by the primary clock."),
+                               Gtkmm2ext::Keyboard::Keyboard::primary_modifier_name(),
+                               Gtkmm2ext::Keyboard::Keyboard::primary_modifier_name (),
+                               Gtkmm2ext::Keyboard::secondary_modifier_name ()));
 }
 
 MiniTimeline::~MiniTimeline ()