Fix UI files opening in Directory Browser

James Westman requested to merge jwestman/gnome-builder:fix-ls-plugin into master

This was happening because the Directory Browser used a priority of G_MAXINT for regular files, causing an integer overflow in the comparator function here (because some other plugins have negative priorities).

Question: Should there be a set of predefined priorities that could be used? Something like HIGH, REGULAR, and FALLBACK, so plugin writers don't have to look up what other plugins are using?

Merge request reports