13
0

Merge branch 'ardour'

This commit is contained in:
Robin Gareus 2024-06-06 00:39:00 +02:00
commit bc01edcff1
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
3 changed files with 34 additions and 29 deletions

View File

@ -7325,6 +7325,10 @@ Editor::mid_track_drag (GdkEventMotion* ev, Gtk::Widget& w)
void
Editor::end_track_drag ()
{
if (!track_drag) {
return;
}
if (track_drag->have_predrag_cursor) {
gdk_window_set_cursor (edit_controls_vbox.get_toplevel()->get_window()->gobj(), track_drag->predrag_cursor);
}

View File

@ -3761,8 +3761,8 @@ Mixer_UI::register_actions ()
ActionManager::register_action (group, "solo", _("Toggle Solo on Mixer-Selected Tracks/Busses"), sigc::mem_fun (*this, &Mixer_UI::solo_action));
ActionManager::register_action (group, "mute", _("Toggle Mute on Mixer-Selected Tracks/Busses"), sigc::mem_fun (*this, &Mixer_UI::mute_action));
ActionManager::register_action (group, "recenable", _("Toggle Rec-enable on Mixer-Selected Tracks/Busses"), sigc::mem_fun (*this, &Mixer_UI::rec_enable_action));
ActionManager::register_action (group, "increment-gain", _("Decrease Gain on Mixer-Selected Tracks/Busses"), sigc::mem_fun (*this, &Mixer_UI::step_gain_up_action));
ActionManager::register_action (group, "decrement-gain", _("Increase Gain on Mixer-Selected Tracks/Busses"), sigc::mem_fun (*this, &Mixer_UI::step_gain_down_action));
ActionManager::register_action (group, "increment-gain", _("Increase Gain on Mixer-Selected Tracks/Busses"), sigc::mem_fun (*this, &Mixer_UI::step_gain_up_action));
ActionManager::register_action (group, "decrement-gain", _("Decrease Gain on Mixer-Selected Tracks/Busses"), sigc::mem_fun (*this, &Mixer_UI::step_gain_down_action));
ActionManager::register_action (group, "unity-gain", _("Set Gain to 0dB on Mixer-Selected Tracks/Busses"), sigc::mem_fun (*this, &Mixer_UI::unity_gain_action));

View File

@ -1024,7 +1024,9 @@ Region::modify_front_unchecked (timepos_t const & npos, bool reset_fade)
source_zero = timepos_t (source_position().time_domain()); // its actually negative, but this will work for us
}
if (new_position < last) { /* can't trim it zero or negative length */
if (new_position >= last) { /* can't trim it zero or negative length */
return;
}
timecnt_t newlen (_length);
timepos_t np = new_position;
@ -1052,7 +1054,6 @@ Region::modify_front_unchecked (timepos_t const & npos, bool reset_fade)
maybe_invalidate_transients ();
}
}
void
Region::modify_end_unchecked (timepos_t const & new_endpoint, bool reset_fade)