bool updateProgressBar() { Gtk::ProgressBar *progressBar; builder->get_widget("progressBar", progressBar); if(runner.isRunning() && !runner.isInterrupted()) { progressBar->set_fraction(runner.getProgress()); return true; } else { progressBar->set_fraction(0.0); return false; } }
void ScannerGUI::updateProgressMain(){ Glib::Threads::Mutex::Lock lock (mainMutex); m_progress.set_text(worker->progressMessage); m_progress.set_fraction(worker->progressFraction); }