From: Matthias Clasen Date: Mon, 24 Mar 2003 01:10:28 +0000 (+0000) Subject: Additions. X-Git-Tag: GLIB_2_3_0~234 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e35363d894652cfa3011f2e7da7b1b68b3411ba1;p=platform%2Fupstream%2Fglib.git Additions. 2003-03-24 Matthias Clasen * gobject/tmpl/objects.sgml: Additions. --- diff --git a/docs/reference/ChangeLog b/docs/reference/ChangeLog index bf0d1d1..6ed3361 100644 --- a/docs/reference/ChangeLog +++ b/docs/reference/ChangeLog @@ -1,3 +1,7 @@ +2003-03-24 Matthias Clasen + + * gobject/tmpl/objects.sgml: Additions. + Mon Mar 10 11:33:10 2003 Owen Taylor * gobject/tmpl/gtype.sgml gobject/gobject-sections.txt: diff --git a/docs/reference/gobject/tmpl/objects.sgml b/docs/reference/gobject/tmpl/objects.sgml index fc14fc6..bfe0fa1 100644 --- a/docs/reference/gobject/tmpl/objects.sgml +++ b/docs/reference/gobject/tmpl/objects.sgml @@ -133,18 +133,21 @@ should not be freed. - +Return the type id of a class structure. -@class: +@class: a valid #GObjectClass +@Returns: Type id of @class. - +Return the name of a class structure's type. -@class: +@class: a valid #GObjectClass +@Returns: Type name of @class. The string is owned by the type system and +should not be freed. @@ -152,13 +155,9 @@ should not be freed. Installs a new property. This is usually done in the class initializer. -@oclass: +@oclass: a #GObjectClass @property_id: the id for the new property @pspec: the #GParamSpec for the new property - -@class: a #GObjectClass -@property_id: -@pspec: @@ -215,19 +214,20 @@ Installs a new property. This is usually done in the class initializer. - +Increases the reference count of @object. -@object: -@Returns: +@object: a #GObject +@Returns: @object - +Decreases the reference count if @object. +When its reference count drops to 0, the object is finalized (i.e. its memory is freed). -@object: +@object: a #GObject @@ -241,22 +241,26 @@ Installs a new property. This is usually done in the class initializer. - +Adds a weak reference callback to an object. Weak references are used for +notification when an object is finalized. They are called "weak references" +because they allow you to safely hold a pointer to an object without calling +g_object_ref() (g_object_ref() adds a strong reference, that is, forces the +object to stay alive). -@object: -@notify: -@data: +@object: #GObject to reference weakly +@notify: callback to invoke before the object is freed +@data: extra data to pass to notify - +Removes a weak reference callback to an object. -@object: -@notify: -@data: +@object: #GObject to remove a weak reference from +@notify: callback to search for +@data: data to search for @@ -301,30 +305,28 @@ to match the one used with g_object_add_weak_pointer(). @object: @signal_spec: @Varargs: - -@Returns: - +Sets properties on an object. -@object: -@first_property_name: -@Varargs: - -@Returns: +@object: a #GObject +@first_property_name: name of the first property to set +@Varargs: value for the first property, followed optionally by more + name/value pairs, followed by %NULL - +Gets properties of an object. -@object: -@first_property_name: -@Varargs: +@object: a #GObject +@first_property_name: name of the first property to get +@Varargs: return location for the first property, followed optionally by more + name/return location pairs, followed by %NULL @@ -356,43 +358,51 @@ This causes all queued "notify" signals on @object to be emitted. - +Gets a named field from the objects table of associations (see g_object_set_data()). -@object: -@key: -@Returns: +@object: #GObject containing the associations +@key: name of the key for that association +@Returns: the data if found, or %NULL if no such data exists. - +Each object carries around a table of associations from +strings to pointers. This function lets you set an association. + + +If the object already had an association with that name, +the old association will be destroyed. -@object: -@key: -@data: +@object: #GObject containing the associations. +@key: name of the key +@data: data to associate with that key - +Like g_object_set_data() except it adds notification +for when the association is destroyed, either by setting it +to a different value or when the object is destroyed. -@object: -@key: -@data: -@destroy: +@object: #GObject containing the associations +@key: name of the key +@data: data to associate with that key +@destroy: function to call when the association is destroyed - +Remove a specified datum from the object's data associations, +without invoking the association's destroy handler. -@object: -@key: -@Returns: +@object: #GObject containing the associations +@key: name of the key +@Returns: the data if found, or %NULL if no such data exists. @@ -483,22 +493,22 @@ have been freed upon g_object_set_qdata_full(). - +Sets a property on an object. -@object: -@property_name: -@value: +@object: a #GObject +@property_name: the name of the property to set +@value: the value - +Gets a property of an object. -@object: -@property_name: -@value: +@object: a #GObject +@property_name: the name of the property to get +@value: return location for the property value