[evolution-data-server] CamelObject: Implement the notify() method.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] CamelObject: Implement the notify() method.
- Date: Sat, 16 Nov 2013 14:43:08 +0000 (UTC)
commit 3572b3a2a57c38aa64d1e0c8b51b1de1dc55698b
Author: Matthew Barnes <mbarnes redhat com>
Date: Sat Nov 16 09:34:13 2013 -0500
CamelObject: Implement the notify() method.
Just a placeholder so subclasses can safely chain up, since GObjectClass
does not implement its own notify() method.
camel/camel-object.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/camel/camel-object.c b/camel/camel-object.c
index 00d4deb..8e11ebf 100644
--- a/camel/camel-object.c
+++ b/camel/camel-object.c
@@ -139,6 +139,14 @@ object_finalize (GObject *object)
G_OBJECT_CLASS (camel_object_parent_class)->finalize (object);
}
+static void
+object_notify (GObject *object,
+ GParamSpec *pspec)
+{
+ /* Placeholder so subclasses can safely chain up, since
+ * GObjectClass itself does not implement this method. */
+}
+
static gint
object_state_read (CamelObject *object,
FILE *fp)
@@ -344,6 +352,7 @@ camel_object_class_init (CamelObjectClass *class)
object_class->set_property = object_set_property;
object_class->get_property = object_get_property;
object_class->finalize = object_finalize;
+ object_class->notify = object_notify;
class->state_read = object_state_read;
class->state_write = object_state_write;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]