From ac2a38784b1f83fa1e5b41ba7aa2e3101538e4b0 Mon Sep 17 00:00:00 2001 From: Sampo Savolainen Date: Tue, 5 Dec 2006 18:54:05 +0000 Subject: [PATCH] Make playlist selected from another track visible in the playlist menu git-svn-id: svn://localhost/ardour2/trunk@1189 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/route_time_axis.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gtk2_ardour/route_time_axis.cc b/gtk2_ardour/route_time_axis.cc index 0e8b28bb45..371f055c46 100644 --- a/gtk2_ardour/route_time_axis.cc +++ b/gtk2_ardour/route_time_axis.cc @@ -1283,9 +1283,15 @@ RouteTimeAxisView::build_playlist_menu (Gtk::Menu * menu) if (ds->playlist()->id() == (*i)->id()) { static_cast(&playlist_items.back())->set_active(); } + } else if (ds->playlist()->id() == (*i)->id()) { + playlist_items.push_back (RadioMenuElem (playlist_group, (*i)->name(), bind (mem_fun (*this, &RouteTimeAxisView::use_playlist), (*i)))); + static_cast(&playlist_items.back())->set_active(); + } } + + playlist_items.push_back (SeparatorElem()); playlist_items.push_back (MenuElem (_("Rename"), mem_fun(*this, &RouteTimeAxisView::rename_current_playlist))); playlist_items.push_back (SeparatorElem());