Re: [gtkmm] some help needed for a standard process



Hi Murray,

so you think my code is ok?

  // I want to display the FileSelection window
  // until the selected file is ok
  string dataBaseFile;
  while (dataBaseFile.length() == 0) {
    // Display window for file selection
    FileSelection *fileSel = new FileSelection(string("select file:"));
    dataBaseFile = fileSel->getSelectedFile();
    fileSel->response(Gtk::RESPONSE_OK); // has no effect
    delete fileSel;  // destroy object but window remains
  }

Thx,
Andi

A window should never still be seen after you have deleted its C++
instance. A test case in bugzilla might help us find the problem.






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