From 8b14e3744c2381a8001a47a47e0ce90825164895 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 4 Nov 2008 04:17:40 +0000 Subject: [PATCH] Expand the docs of g_object_class_install_property. Proposed by Maciej * gobject.c: Expand the docs of g_object_class_install_property. Proposed by Maciej Piechotka svn path=/trunk/; revision=7642 --- gobject/ChangeLog | 7 +++++++ gobject/gobject.c | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/gobject/ChangeLog b/gobject/ChangeLog index 21888c007..a6eacae68 100644 --- a/gobject/ChangeLog +++ b/gobject/ChangeLog @@ -1,3 +1,10 @@ +2008-11-03 Matthias Clasen + + Bug 555935 – Clear the mechanism of overwriting properties + + * gobject.c: Expand the docs of g_object_class_install_property. + Proposed by Maciej Piechotka + 2008-10-16 Matthias Clasen * === Released 2.19.0 === diff --git a/gobject/gobject.c b/gobject/gobject.c index a9b16dedd..607a0ea57 100644 --- a/gobject/gobject.c +++ b/gobject/gobject.c @@ -397,6 +397,10 @@ install_property_internal (GType g_type, * @pspec: the #GParamSpec for the new property * * Installs a new property. This is usually done in the class initializer. + * + * Note that it is possible to redefine a property in a derived class, + * by installing a property with the same name. This can be useful at times, + * e.g. to change the range of allowed values or the default value. */ void g_object_class_install_property (GObjectClass *class,