summaryrefslogtreecommitdiff
path: root/gtk2_ardour/time_axis_view.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2008-07-07 15:52:22 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2008-07-07 15:52:22 +0000
commitdda3143dc76877657454dac0fde2f1cfad800c85 (patch)
treed8493d484a74f5cd4ce0ac881fc83966369a0b5b /gtk2_ardour/time_axis_view.cc
parent3be87c2c91acf3cc238e3531cfed2638d6c1c7f2 (diff)
move to scons Clone everywhere rather than Copy; add Session::micro_locate() for ongoing work on video sync; debugging output for export precision problem; minor clean up to IO::find_possible_connection(); fix up a few signed/unsigned issues; make "feature lines" always be the right height as tracks resize; change version to 2.5
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3517 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/time_axis_view.cc')
-rw-r--r--gtk2_ardour/time_axis_view.cc15
1 files changed, 4 insertions, 11 deletions
diff --git a/gtk2_ardour/time_axis_view.cc b/gtk2_ardour/time_axis_view.cc
index 69a057bcf9..3e639773c8 100644
--- a/gtk2_ardour/time_axis_view.cc
+++ b/gtk2_ardour/time_axis_view.cc
@@ -382,7 +382,8 @@ TimeAxisView::set_height(uint32_t h)
/* resize the selection rect */
show_selection (editor.get_selection().time);
}
-
+
+ reshow_feature_lines ();
}
bool
@@ -1162,8 +1163,6 @@ TimeAxisView::reshow_feature_lines ()
while (feature_lines.size()< analysis_features.size()) {
ArdourCanvas::SimpleLine* l = new ArdourCanvas::SimpleLine (*canvas_display);
l->property_color_rgba() = (guint) ARDOUR_UI::config()->canvasvar_ZeroLine.get();
- l->property_y1() = 0;
- l->property_y2() = current_height();
feature_lines.push_back (l);
}
@@ -1179,6 +1178,8 @@ TimeAxisView::reshow_feature_lines ()
for (i = analysis_features.begin(), l = feature_lines.begin(); i != analysis_features.end() && l != feature_lines.end(); ++i, ++l) {
(*l)->property_x1() = editor.frame_to_pixel (*i);
(*l)->property_x2() = editor.frame_to_pixel (*i);
+ (*l)->property_y1() = 0;
+ (*l)->property_y2() = current_height();
(*l)->show ();
}
}
@@ -1214,16 +1215,8 @@ TimeAxisView::resizer_motion (GdkEventMotion* ev)
}
int32_t delta = (int32_t) floor (resize_drag_start - ev->y_root);
- int xroot, yroot;
- Glib::RefPtr<Gdk::Window> win (resizer.get_window());
-
- if (win) {
- win->get_origin (xroot, yroot);
- editor.queue_draw_resize_line (yroot + ev->y);
- }
resize_idle_target = std::max (resize_idle_target - delta, (int) hSmall);
-
editor.add_to_idle_resize (this, resize_idle_target);
resize_drag_start = ev->y_root;