refactor methods to add a location/section marker so that there is only one method for this

This commit is contained in:
Paul Davis 2024-05-21 08:21:02 -06:00
parent 8ad53bc96c
commit 2d5884ccb1
8 changed files with 34 additions and 64 deletions

View file

@ -1180,7 +1180,7 @@ Editor::section_rect_event (GdkEvent* ev, Location* loc, ArdourCanvas::Rectangle
MenuList& items (section_box_menu.items());
items.clear ();
items.push_back (MenuElem (_("New Arrangement Marker"), sigc::bind (sigc::mem_fun(*this, &Editor::mouse_add_new_marker), where, Location::Flags(Location::IsMark | Location::IsSection), 0)));
items.push_back (MenuElem (_("New Arrangement Marker"), sigc::bind (sigc::mem_fun(*this, &Editor::add_location_mark_with_flag), where, Location::Flags(Location::IsMark | Location::IsSection), 0)));
items.push_back (MenuElem (_("Select Arrangement Section"), sigc::bind (sigc::mem_fun(*_sections, &EditorSections::select), l)));
#if 0
items.push_back (SeparatorElem());