[dconf] editor: Load *.enums.xml as well as *.gschema.xml. This was stopping some enums from being loaded.



commit 0d00a6ad3385e08eff0c50efe970af8d5d63c536
Author: Robert Ancell <robert ancell canonical com>
Date:   Tue Mar 29 16:50:12 2011 +1100

    editor: Load *.enums.xml as well as *.gschema.xml.  This was stopping some enums from being loaded.
    
    Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=636880

 editor/dconf-schema.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/editor/dconf-schema.vala b/editor/dconf-schema.vala
index 2b34e28..c2654b5 100644
--- a/editor/dconf-schema.vala
+++ b/editor/dconf-schema.vala
@@ -371,7 +371,7 @@ public class SchemaList
         while ((info = i.next_file (null)) != null) {
             string name = info.get_name();
 
-            if (!name.has_suffix(".gschema.xml"))
+            if (!name.has_suffix(".gschema.xml") && !name.has_suffix(".enums.xml"))
                 continue;
 
             string path = Path.build_filename(dir, name, null);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]