On Fri, Jul 02, 2004 at 12:47:55AM -0700, John Finlay wrote: > >It's easy to set a name vie set_current_name() method of a chooser. > >But how do I detect that the filter has changed? I would think that > >there might be a signal that is emitted when the filter state changes. > >However, neither filter nor selection seem to have that signal. > > I figured that you could connect to the notify::filter signal on the > FileChooserDialog object but it doesn't work. It seems you have to > connect to the child FileChooserDefault object that is retrieved by: > > filechooserdefault = > filechooserdialog.get_children()[0].get_children()[0].get_children()[0] > > This seems kind of convoluted - maybe someone knows a better way.
I'm looking at the GTK+ source code. Indeed I can see the default being packed into the filechooserwidget. Interestingly enough, from my reading it appears that set/get_properties of the FileChooserWidget operate on the FileChooserDefault object; however, I don't see a way of getting the default back, not of connecting to its signal. It's stored as the impl member of the private object data; I suppose a hack could pull it out via an API (I'd done so for the CList one) but it's risky. Take care, -- Christian Robottom Reis | http://async.com.br/~kiko/ | [+55 16] 3361 2331 _______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
