summaryrefslogtreecommitdiff
path: root/testing/dconf/load-enum.patch
blob: 949de1e0054c0e58ad0505f7d3d150c81af0f9a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From 0d00a6ad3385e08eff0c50efe970af8d5d63c536 Mon Sep 17 00:00:00 2001
From: Robert Ancell <robert.ancell@canonical.com>
Date: Tue, 29 Mar 2011 05:50:12 +0000
Subject: 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
---
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);
--
cgit v0.9