glib r7642 - trunk/gobject



Author: matthiasc
Date: Tue Nov  4 04:17:40 2008
New Revision: 7642
URL: http://svn.gnome.org/viewvc/glib?rev=7642&view=rev

Log:
* gobject.c: Expand the docs of g_object_class_install_property.
Proposed by Maciej Piechotka


Modified:
   trunk/gobject/ChangeLog
   trunk/gobject/gobject.c

Modified: trunk/gobject/gobject.c
==============================================================================
--- trunk/gobject/gobject.c	(original)
+++ trunk/gobject/gobject.c	Tue Nov  4 04:17:40 2008
@@ -397,6 +397,10 @@
  * @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,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]