Hey,
I was looking through the new fileselector code and found a couple of issues that I think should be worked out. Namely, with the inclusion of input and output formats that are done through extensions.
Previously, the file dialog called the extensions code to get a menu that contained all the input/output formats that could be handled, and each one had a key attached to it that specified which extension should be used. I'm not saying that this is a good thing, there is too much GUI code in the extensions system with that solution. But, I still think that the extensions system needs to be queried on the matter, and get that key passed into the save functions.
Probably the best thing would be a list of verbs, but I don't know if that is the best option as these aren't actions as much as selections. So, I'm proposing this:
GSList * Inkscape::Extension::get_input_list (void);
This will return a list of items that are:
gchar * name gchar * extension gchar * key
And then the GUI code can do what ever it wants with them, so long as it returns the key when it finishes (along with the filename ;)
Thoughts?
--Ted