glib r7102 - in trunk: . gobject



Author: bjornl
Date: Sun Jun 29 12:09:31 2008
New Revision: 7102
URL: http://svn.gnome.org/viewvc/glib?rev=7102&view=rev

Log:
2008-06-29  BjÃrn Lindqvist  <bjourne gmail com>

	Bug 539626 â Update docstrings for g_object_freeze_notify and
	g_object_thaw_notify

	* gobject/gobject.c: Explain how the freeze count works.


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

Modified: trunk/gobject/gobject.c
==============================================================================
--- trunk/gobject/gobject.c	(original)
+++ trunk/gobject/gobject.c	Sun Jun 29 12:09:31 2008
@@ -796,8 +796,10 @@
  * g_object_freeze_notify:
  * @object: a #GObject
  *
- * Stops emission of "notify" signals on @object. The signals are
- * queued until g_object_thaw_notify() is called on @object.
+ * Increases the freeze count on @object. If the freeze count is
+ * non-zero, the emission of "notify" signals on @object is
+ * stopped. The signals are queued until the freeze count is decreased
+ * to zero.
  *
  * This is necessary for accessors that modify multiple properties to prevent
  * premature notification while the object is still being modified.
@@ -863,8 +865,11 @@
  * g_object_thaw_notify:
  * @object: a #GObject
  *
- * Reverts the effect of a previous call to g_object_freeze_notify().
- * This causes all queued "notify" signals on @object to be emitted.
+ * Reverts the effect of a previous call to
+ * g_object_freeze_notify(). The freeze count is decreased on @object
+ * and when it reaches zero, all queued "notify" signals are emitted.
+ *
+ * It is an error to call this function when the freeze count is zero.
  */
 void
 g_object_thaw_notify (GObject *object)



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