From f8212aec535f12c4e39a530f0ab6dbffec8ccedc Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 4 Dec 2025 01:26:31 +0100 Subject: [PATCH] Fix pesky follow-playhead button tooltip ArdourButton uses the tooltip from the related action (if any). --- gtk2_ardour/editing_context.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gtk2_ardour/editing_context.cc b/gtk2_ardour/editing_context.cc index 9b1796c787..5c36f70342 100644 --- a/gtk2_ardour/editing_context.cc +++ b/gtk2_ardour/editing_context.cc @@ -234,7 +234,6 @@ EditingContext::EditingContext (std::string const & name) set_tooltip (play_note_selection_button, _("Play notes when selected")); set_tooltip (note_mode_button, _("Switch between sustained and percussive mode")); - set_tooltip (follow_playhead_button, _("Scroll automatically to keep playhead visible")); set_tooltip (follow_edits_button, _("Playhead follows Range tool clicks, and Range selections")); /* Leave tip for full zoom button to derived class */ set_tooltip (visible_channel_selector, _("Select visible MIDI channel")); @@ -455,6 +454,8 @@ EditingContext::register_common_actions (Bindings* common_bindings, std::string follow_playhead_action = toggle_reg_sens (_common_actions, "toggle-follow-playhead", _("Follow Playhead"), sigc::mem_fun (*this, &EditingContext::follow_playhead_chosen)); stationary_playhead_action = toggle_reg_sens (_common_actions, "toggle-stationary-playhead", _("Stationary Playhead"), (mem_fun(*this, &EditingContext::stationary_playhead_chosen))); + follow_playhead_action->set_tooltip (_("Scroll automatically to keep playhead visible")); + undo_action = reg_sens (_common_actions, "undo", S_("Command|Undo"), sigc::bind (sigc::mem_fun (*this, &EditingContext::undo), 1U)); redo_action = reg_sens (_common_actions, "redo", _("Redo"), sigc::bind (sigc::mem_fun (*this, &EditingContext::redo), 1U)); alternate_redo_action = reg_sens (_common_actions, "alternate-redo", _("Redo"), sigc::bind (sigc::mem_fun (*this, &EditingContext::redo), 1U));