[gxml: 11/16] * change interface so it defaults to GObject methods for get, set_property if not overridden
- From: Richard Hans Schwarting <rschwart src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gxml: 11/16] * change interface so it defaults to GObject methods for get, set_property if not overridden
- Date: Fri, 27 Jul 2012 09:30:57 +0000 (UTC)
commit 636528c394c1e555c3be994af712f643e68f3711
Author: Richard Schwarting <aquarichy gmail com>
Date: Fri Jul 27 11:16:23 2012 +0200
* change interface so it defaults to GObject methods for get,set_property if not overridden
gxml/Serializable.vala | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/gxml/Serializable.vala b/gxml/Serializable.vala
index 56c6581..ee700d5 100644
--- a/gxml/Serializable.vala
+++ b/gxml/Serializable.vala
@@ -55,7 +55,11 @@ namespace GXml {
}
/* Correspond to: g_object_{set,get}_property */
- public abstract void get_property (GLib.ParamSpec spec, ref GLib.Value value);
- public abstract void set_property (GLib.ParamSpec spec, GLib.Value value);
+ public virtual void get_property (GLib.ParamSpec spec, ref GLib.Value str_value) {
+ ((GLib.Object)this).get_property (spec.name, ref str_value);
+ }
+ public virtual void set_property (GLib.ParamSpec spec, GLib.Value value) {
+ ((GLib.Object)this).set_property (spec.name, value);
+ }
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]