[gxml] * actually commit local change to the test file to let it compile.
- From: Richard Hans Schwarting <rschwart src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gxml] * actually commit local change to the test file to let it compile.
- Date: Thu, 12 Jul 2012 15:05:13 +0000 (UTC)
commit 1aaf3532716a857be328a4331fdf235f9a2f53f9
Author: Richard Schwarting <aquarichy gmail com>
Date: Thu Jul 12 11:03:17 2012 -0400
* actually commit local change to the test file to let it compile.
test/XmlSerializableTest.vala | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/test/XmlSerializableTest.vala b/test/XmlSerializableTest.vala
index 84f9eb1..ca7da9a 100644
--- a/test/XmlSerializableTest.vala
+++ b/test/XmlSerializableTest.vala
@@ -159,7 +159,7 @@ public class SerializableBanana : GLib.Object, GXmlDom.Serializable {
properties = new ParamSpec[4];
int i = 0;
foreach (string name in new string[] { "private-field", "public-field", "private-property", "public-property" }) {
- properties[i] = new ParamSpecInt (name, name, name, int.MIN, int.MAX, ParamFlags.READABLE); // TODO: offer guidance for these fields, esp. ParamFlags
+ properties[i] = new ParamSpecInt (name, name, name, int.MIN, int.MAX, 0, ParamFlags.READABLE); // TODO: offer guidance for these fields, esp. ParamFlags
i++;
// TODO: does serialisation use anything other than ParamSpec.name?
}
@@ -167,11 +167,13 @@ public class SerializableBanana : GLib.Object, GXmlDom.Serializable {
return this.properties;
}
+ private GLib.ParamSpec prop;
public unowned GLib.ParamSpec? find_property (string property_name) {
GLib.ParamSpec[] properties = this.list_properties ();
foreach (ParamSpec prop in properties) {
if (prop.name == property_name) {
- return prop;
+ this.prop = prop;
+ return this.prop;
}
}
return null;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]