summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_mouse.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2010-05-04 15:27:23 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2010-05-04 15:27:23 +0000
commit9a61a9b0bfe618ee33c08aa751fc16502e97886f (patch)
treeab4f1d68d5baaf15b562800ba232408d82efd803 /gtk2_ardour/editor_mouse.cc
parent1f3024c32421d82bccd230bc773549d02d2cfa03 (diff)
back-port carl's workaround for a gnomecanvas bug that causes a crash during certain resize operations and others
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@7051 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_mouse.cc')
-rw-r--r--gtk2_ardour/editor_mouse.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/gtk2_ardour/editor_mouse.cc b/gtk2_ardour/editor_mouse.cc
index a2ba0476a0..15f8b235e2 100644
--- a/gtk2_ardour/editor_mouse.cc
+++ b/gtk2_ardour/editor_mouse.cc
@@ -2320,7 +2320,7 @@ Editor::cursor_drag_motion_callback (ArdourCanvas::Item* item, GdkEvent* event)
show_verbose_time_cursor (cursor->current_frame, 10);
#ifdef GTKOSX
- track_canvas->update_now ();
+ flush_canvas ();
#endif
UpdateAllTransportClocks (cursor->current_frame);
@@ -2634,7 +2634,7 @@ Editor::marker_drag_motion_callback (ArdourCanvas::Item* item, GdkEvent* event)
show_verbose_time_cursor (newframe, 10);
#ifdef GTKOSX
- track_canvas->update_now ();
+ flush_canvas ();
#endif
}
@@ -3273,7 +3273,7 @@ Editor::start_region_grab (ArdourCanvas::Item* item, GdkEvent* event)
_region_motion_group->raise_to_top ();
/* sync the canvas to what we think is its current state */
- track_canvas->update_now();
+ flush_canvas ();
}
void
@@ -3399,7 +3399,7 @@ Editor::possibly_copy_regions_during_grab (GdkEvent* event)
..only if the mouse is in rapid motion at the time of the grab.
something to do with regionview creation raking so long?
*/
- track_canvas->update_now();
+ flush_canvas ();
}
}
@@ -4018,7 +4018,7 @@ Editor::region_drag_finished_callback (ArdourCanvas::Item* item, GdkEvent* event
drag_delta = clicked_regionview->region()->position() - drag_info.last_frame_position;
- track_canvas->update_now ();
+ flush_canvas ();
for (list<RegionView*>::const_iterator i = selection->regions.by_layer().begin(); i != selection->regions.by_layer().end(); ) {