diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2008-09-12 09:01:52 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2008-09-12 09:01:52 +0000 |
commit | b0424889b32e136ca25186037b032b229824ac79 (patch) | |
tree | ea91d64e0e80954384a6a330b9d8b91981949a81 /gtk2_ardour/route_time_axis.cc | |
parent | 823f44e50a35d75eb7765e74bbbe8908af9a5c1d (diff) |
make tracks visible again
git-svn-id: svn://localhost/ardour2/branches/3.0@3719 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/route_time_axis.cc')
-rw-r--r-- | gtk2_ardour/route_time_axis.cc | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/gtk2_ardour/route_time_axis.cc b/gtk2_ardour/route_time_axis.cc index 82777944f4..f5e1a82a10 100644 --- a/gtk2_ardour/route_time_axis.cc +++ b/gtk2_ardour/route_time_axis.cc @@ -117,6 +117,11 @@ RouteTimeAxisView::RouteTimeAxisView (PublicEditor& ed, Session& sess, boost::sh playlist_action_menu = 0; automation_action_menu = 0; _view = 0; + + if (!_route->is_hidden()) { + _marked_for_display = true; + } + timestretch_rect = 0; no_redraw = false; destructive_track_mode_item = 0; @@ -1795,6 +1800,7 @@ RouteTimeAxisView::add_automation_child(Parameter param, boost::shared_ptr<Autom using namespace Menu_Helpers; XMLProperty* prop; + XMLNode* node; add_child (track); @@ -1802,8 +1808,6 @@ RouteTimeAxisView::add_automation_child(Parameter param, boost::shared_ptr<Autom bool hideit = (!show); - XMLNode* node; - if ((node = track->get_state_node()) != 0) { if ((prop = node->property ("shown")) != 0) { if (prop->value() == "yes") { @@ -1811,6 +1815,8 @@ RouteTimeAxisView::add_automation_child(Parameter param, boost::shared_ptr<Autom } } } + + cerr << "with show = " << show << " Adding automation child for " << _route->name() << " hideit = " << hideit << " prop = " << prop << endl; _automation_tracks.insert(std::make_pair(param, new RouteAutomationNode(param, NULL, track))); @@ -1819,6 +1825,7 @@ RouteTimeAxisView::add_automation_child(Parameter param, boost::shared_ptr<Autom } else { _show_automation.insert (param); + if (!no_redraw) { _route->gui_changed ("visible_tracks", (void *) 0); /* EMIT_SIGNAL */ } |