
This is about the Gtk::FileChooser::get_filter() call, which keeps generating that annoying message, even though it is working fine. This has been noticeable when selecting OK on Open, Import, or Save.
I did a temporary hack to use Gtk C calls instead; get the GtkFileChooser *, and then call get_file_chooser_get_filter(). This avoids the warning message, but the code looks evil. I am sending a bug to the Gtkmm guys about this. I am certain it is their code making the message.
But the warning is gone for now!
Bob
Bob Jamison wrote:
I have worked on this occasionally for weeks, from several approaches. The one I had best hopes for, was to save references to all of the FileFilters, so that the C++ wrapper would not be discarded. This did not work either.
I think that this might be a bug in gtkmm itself. Maybe I should try a workaround, and find which filter a user had selected another way.
btw: this comes from the Gtk::FileChooser::get_filter() call.
Bob