diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2007-01-29 20:02:43 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2007-01-29 20:02:43 +0000 |
commit | 9e8082aad6645f67cb18ea608abb6a854fd268d0 (patch) | |
tree | 4b6c7cfe6e8171d26d4c33287bbb259ed252c8b8 /gtk2_ardour/editor_canvas.cc | |
parent | 433f2cfb437e189a5114338c70967815a6d9d02a (diff) |
small change to region creation for make-mono-regions; add untested short_path(); fix double-redraws when canvas zoom/position changes
git-svn-id: svn://localhost/ardour2/trunk@1396 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_canvas.cc')
-rw-r--r-- | gtk2_ardour/editor_canvas.cc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/gtk2_ardour/editor_canvas.cc b/gtk2_ardour/editor_canvas.cc index 3f70322573..87e593b0ea 100644 --- a/gtk2_ardour/editor_canvas.cc +++ b/gtk2_ardour/editor_canvas.cc @@ -280,7 +280,7 @@ Editor::track_canvas_allocate (Gtk::Allocation alloc) if (!initial_ruler_update_required) { if (!canvas_idle_queued) { /* call this first so that we do stuff before any pending redraw */ - Glib::signal_idle().connect (mem_fun (*this, &Editor::track_canvas_idle), false); + Glib::signal_idle().connect (mem_fun (*this, &Editor::track_canvas_size_allocated), false); canvas_idle_queued = true; } return; @@ -288,11 +288,11 @@ Editor::track_canvas_allocate (Gtk::Allocation alloc) initial_ruler_update_required = false; - track_canvas_idle (); + track_canvas_size_allocated (); } bool -Editor::track_canvas_idle () +Editor::track_canvas_size_allocated () { if (canvas_idle_queued) { canvas_idle_queued = false; @@ -321,7 +321,6 @@ Editor::track_canvas_idle () full_canvas_height = height; } - zoom_range_clock.set ((nframes_t) floor ((canvas_width * frames_per_unit))); edit_cursor->set_position (edit_cursor->current_frame); playhead_cursor->set_position (playhead_cursor->current_frame); @@ -363,7 +362,7 @@ Editor::track_canvas_idle () } update_fixed_rulers(); - tempo_map_changed (Change (0)); + tempo_map_changed (Change (0), true); Resized (); /* EMIT_SIGNAL */ |