mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 00:04:56 +01:00
fix up kludgy assumptions about mixer strip route ops menu ordering
git-svn-id: svn://localhost/ardour2/branches/3.0@4734 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
7ea68ecad6
commit
d50b65773a
2 changed files with 3 additions and 2 deletions
|
|
@ -1146,6 +1146,7 @@ MixerStrip::build_route_ops_menu ()
|
||||||
|
|
||||||
items.push_back (MenuElem (_("Save As Template"), mem_fun(*this, &RouteUI::save_as_template)));
|
items.push_back (MenuElem (_("Save As Template"), mem_fun(*this, &RouteUI::save_as_template)));
|
||||||
items.push_back (MenuElem (_("Rename"), mem_fun(*this, &RouteUI::route_rename)));
|
items.push_back (MenuElem (_("Rename"), mem_fun(*this, &RouteUI::route_rename)));
|
||||||
|
rename_menu_item = &items.back();
|
||||||
items.push_back (SeparatorElem());
|
items.push_back (SeparatorElem());
|
||||||
items.push_back (CheckMenuElem (_("Active"), mem_fun (*this, &RouteUI::toggle_route_active)));
|
items.push_back (CheckMenuElem (_("Active"), mem_fun (*this, &RouteUI::toggle_route_active)));
|
||||||
route_active_menu_item = dynamic_cast<CheckMenuItem *> (&items.back());
|
route_active_menu_item = dynamic_cast<CheckMenuItem *> (&items.back());
|
||||||
|
|
@ -1181,8 +1182,7 @@ MixerStrip::name_button_button_press (GdkEventButton* ev)
|
||||||
|
|
||||||
Menu_Helpers::MenuList& items = route_ops_menu->items();
|
Menu_Helpers::MenuList& items = route_ops_menu->items();
|
||||||
/* do not allow rename if the track is record-enabled */
|
/* do not allow rename if the track is record-enabled */
|
||||||
static_cast<MenuItem*> (&items.front())->set_sensitive (!_route->record_enabled());
|
rename_menu_item->set_sensitive (!_route->record_enabled());
|
||||||
|
|
||||||
route_ops_menu->popup (1, ev->time);
|
route_ops_menu->popup (1, ev->time);
|
||||||
}
|
}
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
|
||||||
|
|
@ -192,6 +192,7 @@ class MixerStrip : public RouteUI, public Gtk::EventBox
|
||||||
void diskstream_changed ();
|
void diskstream_changed ();
|
||||||
|
|
||||||
Gtk::Menu *send_action_menu;
|
Gtk::Menu *send_action_menu;
|
||||||
|
Gtk::MenuItem* rename_menu_item;
|
||||||
void build_send_action_menu ();
|
void build_send_action_menu ();
|
||||||
|
|
||||||
void new_send ();
|
void new_send ();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue