Re: Gtk::FileChooserDialog::run()



On Mon, 2005-08-01 at 16:25 -0500, Rob Benton wrote:
> I'm confused about the showing and hiding of the dialog objects after 
> their run function completes.
> 
> I'm opening a FileChooserDialog, calling run(), checking the response 
> type for OK, and finally doing a little xml processing with Xerces which 
> I check for exceptions.  If I catch an exception I throw up a 
> Gtk::MessageDialog.
> 
> But after Gtk::FileChooserDialog::run() completes that dialog is still 
> visibile and my Gtk::MessageDialog goes on top of that instead of my 
> main window.  Is this expected behavior?

Yes:
http://www.gtkmm.org/docs/gtkmm-2.4/docs/reference/html/classGtk_1_1Dialog.html#a16

"After Gtk::Dialog::run() returns, you are responsible for hiding or
destroying the dialog if you wish to do so."

-- 
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com




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