[gxml] Ported Serializable.deserialize_unknown_property_type signal to GXml.Node
- From: Daniel Espinosa Ortiz <despinosa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gxml] Ported Serializable.deserialize_unknown_property_type signal to GXml.Node
- Date: Wed, 29 Apr 2015 15:38:09 +0000 (UTC)
commit a529de1a995a8b59392f881ad1d81bea8facdc46
Author: Daniel Espinosa <esodan gmail com>
Date: Wed Apr 29 10:37:20 2015 -0500
Ported Serializable.deserialize_unknown_property_type signal to GXml.Node
gxml/Serializable.vala | 2 +-
test/SerializableTest.vala | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/gxml/Serializable.vala b/gxml/Serializable.vala
index 09ce568..df5bbc6 100644
--- a/gxml/Serializable.vala
+++ b/gxml/Serializable.vala
@@ -233,7 +233,7 @@ namespace GXml {
* @param node a { link GXml.xNode} to get attribute from
* @param prop a { link GLib.ParamSpec} describing attribute to deserialize
*/
- public signal void deserialize_unknown_property_type (GXml.xNode node,
+ public signal void deserialize_unknown_property_type (GXml.Node node,
ParamSpec prop);
/**
diff --git a/test/SerializableTest.vala b/test/SerializableTest.vala
index 068c74c..a4dda94 100644
--- a/test/SerializableTest.vala
+++ b/test/SerializableTest.vala
@@ -104,8 +104,9 @@ public class SerializableCapsicum : GXml.SerializableJson {
Want an example using GBoxed too
Perhaps these shouldn't be object methods, perhaps they should be static?
Can't have static methods in an interface :(, right? */
- public void deserialize_unknown_property_type (GXml.xNode element, ParamSpec prop)
+ public void deserialize_unknown_property_type (GXml.Node elem, ParamSpec prop)
{
+ xNode element = (xNode) elem;
GLib.Value outvalue = GLib.Value (typeof (int));
switch (prop.name) {
case "ratings":
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]