From 07407c4e7ce749661737dbdb0bc2b90670aeade3 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 31 Jan 2024 14:39:03 -0700 Subject: [PATCH] add a tooltip to describe ops on the pianoroll header, incl note select --- gtk2_ardour/piano_roll_header.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gtk2_ardour/piano_roll_header.cc b/gtk2_ardour/piano_roll_header.cc index 498d70a6a6..b3ffe0dbaf 100644 --- a/gtk2_ardour/piano_roll_header.cc +++ b/gtk2_ardour/piano_roll_header.cc @@ -26,6 +26,7 @@ #include "gtkmm2ext/colors.h" #include "gtkmm2ext/keyboard.h" #include "gtkmm2ext/rgb_macros.h" +#include "gtkmm2ext/gtk_ui.h" #include "editing.h" #include "midi_streamview.h" @@ -74,6 +75,10 @@ PianoRollHeader::PianoRollHeader(MidiStreamView& v) //set_min_page_size(12); //_adj = v->note_range_adjustment; + + Gtkmm2ext::UI::instance()->set_tip (*this, string_compose (_("Left-button to play a note, left-button-drag to play a series of notes\n" + "%1-left-button to select or extend selection to all notes with this pitch\n"), + Keyboard::tertiary_modifier_name())); add_events (Gdk::BUTTON_PRESS_MASK | Gdk::BUTTON_RELEASE_MASK | Gdk::POINTER_MOTION_MASK |