summaryrefslogtreecommitdiff
path: root/gtk2_ardour/automation_time_axis.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2010-01-09 02:36:47 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2010-01-09 02:36:47 +0000
commitca2f505ec16f69ef1b5090e48b93f7ded6ae795a (patch)
treebfc484be20fa577b0e5754f1bac0c6a49e80db6c /gtk2_ardour/automation_time_axis.cc
parentc115b3d71c47f5bac7fa59de3c97918e764658bd (diff)
lots of debug code still in place, but get a much improved structure for MIDI automation menus actually working. tweaks to follow
git-svn-id: svn://localhost/ardour2/branches/3.0@6470 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/automation_time_axis.cc')
-rw-r--r--gtk2_ardour/automation_time_axis.cc17
1 files changed, 15 insertions, 2 deletions
diff --git a/gtk2_ardour/automation_time_axis.cc b/gtk2_ardour/automation_time_axis.cc
index 5cb26a6435..1046588fb3 100644
--- a/gtk2_ardour/automation_time_axis.cc
+++ b/gtk2_ardour/automation_time_axis.cc
@@ -454,8 +454,10 @@ AutomationTimeAxisView::set_height (uint32_t h)
}
if (changed) {
- /* only emit the signal if the height really changed */
- _route->gui_changed ("visible_tracks", (void *) 0); /* EMIT_SIGNAL */
+ if (canvas_item_visible (_canvas_display)) {
+ /* only emit the signal if the height really changed and we were visible */
+ _route->gui_changed ("visible_tracks", (void *) 0); /* EMIT_SIGNAL */
+ }
}
}
@@ -928,3 +930,14 @@ AutomationTimeAxisView::hide ()
TimeAxisView::hide ();
}
+bool
+AutomationTimeAxisView::set_visibility (bool yn)
+{
+ bool changed = TimeAxisView::set_visibility (yn);
+
+ if (changed) {
+ get_state_node()->add_property ("shown", yn ? X_("yes") : X_("no"));
+ }
+
+ return changed;
+}