mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 15:54:57 +01:00
fix progress reporter, use idle callback.
do not directly hook into Glib's Main Context.
This commit is contained in:
parent
f3b47dc939
commit
62a161195c
1 changed files with 2 additions and 6 deletions
|
|
@ -18,7 +18,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <glibmm/main.h>
|
#include "ardour/ardour.h"
|
||||||
#include "progress_reporter.h"
|
#include "progress_reporter.h"
|
||||||
|
|
||||||
ProgressReporter::ProgressReporter ()
|
ProgressReporter::ProgressReporter ()
|
||||||
|
|
@ -35,10 +35,6 @@ void
|
||||||
ProgressReporter::set_overall_progress (float p)
|
ProgressReporter::set_overall_progress (float p)
|
||||||
{
|
{
|
||||||
update_progress_gui (p);
|
update_progress_gui (p);
|
||||||
|
ARDOUR::GUIIdle ();
|
||||||
/* Make sure the progress widget gets updated */
|
|
||||||
while (Glib::MainContext::get_default()->iteration (false)) {
|
|
||||||
/* do nothing */
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue