Sort the translation formats in AddTranslationItems by name.
This is used by ShowImage and CodyCam to create a list of image formats which a file can be saved as. Tracker sorts the image MIME types used in the Find window by name, so this makes these Save As menus match that (minus the icons which I think are superfluous.) Fixes #6782. If the use of BList is no longer recommended, I welcome better suggestions for sorting which will work in both GCC2 and GCC4. But this works ;)
This commit is contained in:
@@ -77,6 +77,9 @@ public:
|
||||
BTranslatorRoster* roster = NULL);
|
||||
|
||||
private:
|
||||
static int CompareTranslationFormatByName(const void* format1,
|
||||
const void* format2);
|
||||
|
||||
static color_space sBitmapSpace;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user