[gtkmm] progress bar



Hello,
When I do a long computation inside a button clicked method, the progress bar 
does not get updated when I call its pulse() method from within the 
computation. For example:

void somedialog::on_some_btn_clicked()
{
  for (int i=0; i<50; i++)
  {
    for (int j=0; j<60000; j++)
      for (int k=0; k<1000; k++)
        ; // dummy loop waste some time here

    cout << "Test: " << endl;
    progressbar->pulse(); // this does not update the progress bar
  }
}

Anything else I have to do?

Mani. M




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]