RE: FileFilter signal when changed in FileChooserDialog



Never mind about that, I didn't notice add_filter() took in a reference and I was passing in a local Gtk::Filter() which went out of scope by the time I wanted to use it.

Thanks for the help!

- Soo Wei

-----Original Message-----
From: Murray Cumming [mailto:murrayc murrayc com] 
Sent: Wednesday, May 20, 2009 1:58 AM
To: Soo Wei Tan
Cc: gtkmm-list gnome org
Subject: Re: FileFilter signal when changed in FileChooserDialog

On Tue, 2009-05-19 at 17:40 -0700, Soo Wei Tan wrote:
> Initially, I thought I could simply use FileChooser::GetFilter to 
> retrieve the currently selected filter after the user clicks "Save 
> As". However, this returns me a null pointer instead.

I think FileChooser::get_filter() should work for this. Could you please create a small test case, for instance by modifying an example from the gtkmm-documentation module, and put it in bugzilla if necessary.

--
murrayc murrayc com
www.murrayc.com
www.openismus.com



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