File: prescandialog.cpp

package info (click to toggle)
aeskulap 0.2.2b1-11
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 4,164 kB
  • sloc: sh: 8,940; cpp: 8,849; ansic: 496; makefile: 316
file content (15 lines) | stat: -rw-r--r-- 460 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "prescandialog.h"
#include <iostream>

PrescanDialog::PrescanDialog(BaseObjectType* cobject, const Glib::RefPtr<Gnome::Glade::Xml>& refGlade) :
Gtk::Window(cobject){

	refGlade->get_widget("progress_prescan", m_progress);
	set_progress(0);
}

void PrescanDialog::set_progress(double progress) {
	std::cout << "prescan: " << progress << std::endl;
	m_progress->set_fraction(progress);
	while(Gtk::Main::events_pending()) Gtk::Main::iteration(false);
}