On Thu, 2004-11-25 at 12:06 +0000, Angus Leeming wrote:
> John, the GTK file dialog currently ignores the list of filters. Is there
> any plan to change that?
The plan is to rewrite the file dialog stuff to use GtkFileChooser
instead of GtkFileSelection.  I'd been planning to leave that until the
dialogs were done, but what the hell, now I'm interested in this :-)

> The idea is to populate a combobox like:
>         All files (*)
>         LyX files (*.lyx)
>         Graphics files (*.{png,jpg} *.ps)
> 
> and to pass the chosen filter to GTK with:
>         filters.filters()[2].globs() -> "*.{png,jpg} *.ps"
> 
> Can you tell me what, if any of this functionality you'd need?

Thanks for the explanation.  From a quick look at the gtk docs, it
appears that one adds filters to a filechooser individually with the
"add_filter (const FileFilter& filter)" function.  The
FileFilter::add_pattern function claims to accept shell-style globs.  I
may have to split the existing glob string on spaces and hand each one
to gtk separately.

So in conclusion, the backend ought to be fine as it is.

John



Reply via email to