mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
[Summary]: change type of item "Lock" from context menu (from check item to usual item)
This commit is contained in:
parent
7ca9392777
commit
ffccd23f08
1 changed files with 3 additions and 6 deletions
|
|
@ -662,12 +662,9 @@ Editor::build_marker_menu (Location* loc)
|
|||
items.push_back (SeparatorElem());
|
||||
|
||||
items.push_back (MenuElem (_("Rename"), sigc::mem_fun(*this, &Editor::marker_menu_rename)));
|
||||
items.push_back (CheckMenuElem (_("Lock")));
|
||||
Gtk::CheckMenuItem* lock_item = static_cast<Gtk::CheckMenuItem*> (&items.back());
|
||||
if (loc->locked ()) {
|
||||
lock_item->set_active ();
|
||||
}
|
||||
lock_item->signal_activate().connect (sigc::mem_fun (*this, &Editor::toggle_marker_menu_lock));
|
||||
|
||||
items.push_back (MenuElem (_("Lock"), sigc::mem_fun(*this, &Editor::toggle_marker_menu_lock)));
|
||||
|
||||
items.push_back (MenuElem (_("Delete"), sigc::mem_fun(*this, &Editor::marker_menu_remove)));
|
||||
items.push_back (SeparatorElem());
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue