Don't show Crossfade-related menu items on busses.

git-svn-id: svn://localhost/ardour2/branches/3.0@8913 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2011-02-21 00:16:36 +00:00
parent 279c9d8b4c
commit 9ac5fdfefb
3 changed files with 4 additions and 2 deletions

View File

@ -179,9 +179,10 @@ AudioTimeAxisView::append_extra_display_menu_items ()
MenuList& items = display_menu->items();
// crossfade stuff
if (!Profile->get_sae()) {
if (!Profile->get_sae() && is_track ()) {
items.push_back (MenuElem (_("Hide All Crossfades"), sigc::mem_fun(*this, &AudioTimeAxisView::hide_all_xfades)));
items.push_back (MenuElem (_("Show All Crossfades"), sigc::mem_fun(*this, &AudioTimeAxisView::show_all_xfades)));
items.push_back (SeparatorElem ());
}
}

View File

@ -349,6 +349,8 @@ MidiTimeAxisView::append_extra_display_menu_items ()
items.push_back (CheckMenuElem (_("MIDI Thru"), sigc::mem_fun(*this, &MidiTimeAxisView::toggle_midi_thru)));
_midi_thru_item = dynamic_cast<CheckMenuItem*>(&items.back());
items.push_back (SeparatorElem ());
}
Gtk::Menu*

View File

@ -458,7 +458,6 @@ RouteTimeAxisView::build_display_menu ()
// Hook for derived classes to add type specific stuff
append_extra_display_menu_items ();
items.push_back (SeparatorElem());
if (is_track()) {