
On Sat, 2005-01-01 at 07:46 -0800, Kees Cook wrote:
On Fri, Dec 31, 2004 at 05:29:27PM -0400, bulia byak wrote:
(BTW, will someone please fix the default-plain-svg-on-save bug? It's SO annoying.)
The order of the file extensions comes from extension/db.cpp
Problem seems to be that the internal extension list is stored as a map (moduledict). This does not retain the extension initialization order, unfortunately. Why this just started, though, I'm not sure. It looks like that code wasn't changed. I've added a list now to track init order. This seems to fix things. However, the "open" file list is a little weird too, even prior to my changes. I've tried to re-order things so that the GDK image loader comes absolutely last.
What's the "right" way to handle file extension order?
However, why was glob handling removed? Did it get implemented somewhere else? (cvs rev 1.16 for db.cpp)
Well, this was kinda broken when we switched to the new file dialog. The new file dialog doesn't save what format was used last in the preferences (like the previous one did) -- so basically the first one is selected.
Now, what aggravated this is that I went and cleaned up some of the code which grabs lists from the extensions database, so the order changed. So, just randomly, it switched from Inkscape SVG to Plain SVG.
1st fix, need to update the new file selectors to use preferences.
2nd, I'm not sure which order that the list should be in. Probably alphabetical -- but I'm not sure. This also comes down to what order should all the lists of modules be in?
--Ted
PS - I see that Kees you changed it to keep the same order as initialized, which isn't bad. It would make it so that the internal modules would end up first, thoughts anyone?