From ac8f4baa002db37506a84088861b7a288dcdfae6 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 25 Jul 2016 14:51:23 +0200 Subject: add some flush_pending timeouts --- gtk2_ardour/ardour_ui.cc | 2 +- gtk2_ardour/editor.cc | 2 +- gtk2_ardour/editor_ops.cc | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc index 4ce4a5b944..d6671205a7 100644 --- a/gtk2_ardour/ardour_ui.cc +++ b/gtk2_ardour/ardour_ui.cc @@ -3509,7 +3509,7 @@ ARDOUR_UI::load_session (const std::string& path, const std::string& snap_name, { Timers::TimerSuspender t; - flush_pending (); + flush_pending (10); } #ifdef WINDOWS_VST_SUPPORT diff --git a/gtk2_ardour/editor.cc b/gtk2_ardour/editor.cc index 4edf3a5693..d869442b83 100644 --- a/gtk2_ardour/editor.cc +++ b/gtk2_ardour/editor.cc @@ -5049,7 +5049,7 @@ Editor::first_idle () true ); dialog->present (); - ARDOUR_UI::instance()->flush_pending (); + ARDOUR_UI::instance()->flush_pending (60); } for (TrackViewList::iterator t = track_views.begin(); t != track_views.end(); ++t) { diff --git a/gtk2_ardour/editor_ops.cc b/gtk2_ardour/editor_ops.cc index c83e96d67f..5419ce9374 100644 --- a/gtk2_ardour/editor_ops.cc +++ b/gtk2_ardour/editor_ops.cc @@ -7909,7 +7909,7 @@ Editor::update_bring_in_message (Gtk::Label* label, uint32_t n, uint32_t total, { Timers::TimerSuspender t; label->set_text (string_compose ("Copying %1, %2 of %3", name, n, total)); - Gtkmm2ext::UI::instance()->flush_pending (); + Gtkmm2ext::UI::instance()->flush_pending (1); } void @@ -7929,7 +7929,7 @@ Editor::bring_all_sources_into_session () */ Timers::TimerSuspender t; - Gtkmm2ext::UI::instance()->flush_pending (); + Gtkmm2ext::UI::instance()->flush_pending (3); cerr << " Do it\n"; -- cgit v1.2.3