From 2c3345a4fd0d85a48ca441f908bc3d892786f2f2 Mon Sep 17 00:00:00 2001
From: Přemysl Janouch
Date: Sun, 12 Dec 2010 19:03:36 +0100
Subject: Add change notifications to properties.
Also fix the "human-name" property in LdSymbolCategory
and correct gtk-doc comments for coordinates properties
accessors in LdDocumentObject.
---
src/ld-document-object.c | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
(limited to 'src/ld-document-object.c')
diff --git a/src/ld-document-object.c b/src/ld-document-object.c
index e82b3a6..09aa3cc 100644
--- a/src/ld-document-object.c
+++ b/src/ld-document-object.c
@@ -157,8 +157,9 @@ ld_document_object_get_y (LdDocumentObject *self)
}
/**
- * ld_document_object_get_x:
+ * ld_document_object_set_x:
* @self: An #LdDocumentObject object.
+ * @x: The new X coordinate.
*
* Set the X coordinate of the object.
*/
@@ -167,11 +168,14 @@ ld_document_object_set_x (LdDocumentObject *self, gdouble x)
{
g_return_if_fail (LD_IS_DOCUMENT_OBJECT (self));
self->priv->x = x;
+
+ g_object_notify (G_OBJECT (self), "x");
}
/**
- * ld_document_object_get_x:
+ * ld_document_object_set_y:
* @self: An #LdDocumentObject object.
+ * @y: The new Y coordinate.
*
* Set the Y coordinate of the object.
*/
@@ -180,4 +184,6 @@ ld_document_object_set_y (LdDocumentObject *self, gdouble y)
{
g_return_if_fail (LD_IS_DOCUMENT_OBJECT (self));
self->priv->y = y;
+
+ g_object_notify (G_OBJECT (self), "y");
}
--
cgit v1.2.3-54-g00ecf