Ejemplo n.º 1
0
    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;
        }

    }
Ejemplo n.º 2
0
void ScannerGUI::updateProgressMain(){
	Glib::Threads::Mutex::Lock lock (mainMutex); 
	m_progress.set_text(worker->progressMessage);
	m_progress.set_fraction(worker->progressFraction);
}