Re: Gtk::Main::iteration();
- From: Mark Roberts <gtkmm manumark de>
- To: "Adam Chyla [PL]" <adam chyla gmail com>
- Cc: gtkmm-list gnome org
- Subject: Re: Gtk::Main::iteration();
- Date: Mon, 15 Mar 2010 17:23:43 +0100 (CET)
On Sun, 14 Mar 2010, Adam Chyla [PL] wrote:
Could you give me a simple example?
I try this:
unsigned long long FileSize;
char _char[1] = {0};
Glib::RefPtr<Gio::File> FileOut
= Gio::File::create_for_path(FileName);
Glib::RefPtr<Gio::FileInfo> FileOutInfo
= FileOut->query_info();
FileSize = FileOutInfo->get_size();
Glib::RefPtr<Gio::SlotAsyncReady> FileOutData;
//FileOut->replace_async(FileOutData, FileName);
std::cerr << FileSize<<'\n';
for (unsigned long long i = 1; i <= FileSize; i++)
{
ProgressbarStatusbarHBox.set_fraction((float)i/FileSize);
//FileOutData->write(_char, 1);
}
But it isn't working.
What are you trying to do and in what way is it not working?
Mark
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]