Bug 623401 - schema compiler: process enums first

Process *.enum.xml before any *.gschema.xml files to ensure that all
enums have been defined.
This commit is contained in:
Ryan Lortie 2010-07-02 11:11:45 -04:00
parent 1ca6a4687a
commit 7a44a2d223

View File

@ -1601,8 +1601,15 @@ compare_strings (gconstpointer a,
{
gchar *one = *(gchar **) a;
gchar *two = *(gchar **) b;
gint cmp;
return strcmp (one, two);
cmp = g_str_has_suffix (two, ".enums.xml") -
g_str_has_suffix (one, ".enums.xml");
if (!cmp)
cmp = strcmp (one, two);
return cmp;
}
int