diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2010-12-12 19:03:36 +0100 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2010-12-16 04:50:54 +0100 |
commit | 2c3345a4fd0d85a48ca441f908bc3d892786f2f2 (patch) | |
tree | 94b3b915a05b08a4edc44e24f5e9359636085e0b /src/ld-document-object.c | |
parent | 45aeda982b578947333aa7ec3fe9f0d0abf7cb59 (diff) | |
download | logdiag-2c3345a4fd0d85a48ca441f908bc3d892786f2f2.tar.gz logdiag-2c3345a4fd0d85a48ca441f908bc3d892786f2f2.tar.xz logdiag-2c3345a4fd0d85a48ca441f908bc3d892786f2f2.zip |
Add change notifications to properties.
Also fix the "human-name" property in LdSymbolCategory
and correct gtk-doc comments for coordinates properties
accessors in LdDocumentObject.
Diffstat (limited to 'src/ld-document-object.c')
-rw-r--r-- | src/ld-document-object.c | 10 |
1 files changed, 8 insertions, 2 deletions
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"); } |