sprinkled some runMainLoop() calls at more-or-less random locations;

this might improve the responsiveness
This commit is contained in:
fgerlits 2006-08-17 14:48:28 +00:00
parent 5f900b5214
commit 36b266be89
3 changed files with 10 additions and 0 deletions

View File

@ -136,6 +136,7 @@ CuePlayer :: onPlayItem(void) throw ()
remove(*playButton);
pack_end(*pauseButton, Gtk::PACK_SHRINK, 3);
pauseButton->show();
gLiveSupport->runMainLoop();
}
}
@ -157,6 +158,7 @@ CuePlayer :: onPlayButtonClicked(void) throw ()
remove(*playButton);
pack_end(*pauseButton, Gtk::PACK_SHRINK, 3);
pauseButton->show();
gLiveSupport->runMainLoop();
} catch (std::logic_error &e) {
std::cerr << "GLiveSupport::pauseCueAudio() error:" << std::endl
<< e.what() << std::endl;
@ -183,6 +185,7 @@ CuePlayer :: onPauseButtonClicked(void) throw ()
remove(*pauseButton);
pack_end(*playButton, Gtk::PACK_SHRINK, 3);
playButton->show();
gLiveSupport->runMainLoop();
} catch (std::logic_error &e) {
std::cerr << "GLiveSupport::pauseCueAudio() error:" << std::endl
<< e.what() << std::endl;
@ -227,5 +230,6 @@ CuePlayer :: onStop(void) throw ()
audioState = waitingState;
pack_end(*playButton, Gtk::PACK_SHRINK, 3);
playButton->show();
gLiveSupport->runMainLoop();
}

View File

@ -252,6 +252,7 @@ LiveModeWindow :: addItem(Ptr<Playable>::Ref playable) throw ()
infoString->append("</span>");
row[modelColumns.infoColumn] = *infoString;
gLiveSupport->runMainLoop();
}
@ -268,6 +269,7 @@ LiveModeWindow :: popTop(void) throw ()
playable = (*iter)[modelColumns.playableColumn];
treeModel->erase(iter);
}
gLiveSupport->runMainLoop();
return playable;
}
@ -297,6 +299,7 @@ LiveModeWindow :: onOutputPlay(void) throw ()
std::cerr << "cannot play on live mode output device: "
<< e.what() << std::endl;
}
gLiveSupport->runMainLoop();
}
}

View File

@ -423,6 +423,9 @@ MasterPanelWindow :: onUpdateTime(int dummy) throw ()
}
}
// refresh all windows
gLiveSupport->runMainLoop();
return true;
}