[banshee/gtk3] build: GSettingsSchemaExtractor should find non-public types too
- From: AndrÃs Aragoneses <aaragoneses src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee/gtk3] build: GSettingsSchemaExtractor should find non-public types too
- Date: Wed, 19 Dec 2012 17:44:59 +0000 (UTC)
commit e569be92bcddb542fbf5902950a9d1b25990d245
Author: Andres G. Aragoneses <knocte gmail com>
Date: Wed Dec 19 17:42:35 2012 +0000
build: GSettingsSchemaExtractor should find non-public types too
For example, Provider.ProviderSchema which is internal.
build/GSettingsSchemaExtractor.cs | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/build/GSettingsSchemaExtractor.cs b/build/GSettingsSchemaExtractor.cs
index 6cc4da0..87e6b53 100644
--- a/build/GSettingsSchemaExtractor.cs
+++ b/build/GSettingsSchemaExtractor.cs
@@ -65,7 +65,7 @@ public class GSettingsSchemaExtractorProgram
entries = new Dictionary<string, List<StringBuilder>> ();
foreach (Type type in types) {
- foreach (FieldInfo field in type.GetFields ()) {
+ foreach (FieldInfo field in type.GetFields (BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Static)) {
if (field.FieldType.IsGenericType &&
field.FieldType.GetGenericTypeDefinition ().Name.StartsWith ("SchemaEntry")) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]