mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-19 23:28:54 +02:00
Additions.
2003-03-24 Matthias Clasen <maclas@gmx.de> * gobject/tmpl/objects.sgml: Additions.
This commit is contained in:
committed by
Matthias Clasen
parent
f86a5fad70
commit
e35363d894
@@ -1,3 +1,7 @@
|
|||||||
|
2003-03-24 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* gobject/tmpl/objects.sgml: Additions.
|
||||||
|
|
||||||
Mon Mar 10 11:33:10 2003 Owen Taylor <otaylor@redhat.com>
|
Mon Mar 10 11:33:10 2003 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gobject/tmpl/gtype.sgml gobject/gobject-sections.txt:
|
* gobject/tmpl/gtype.sgml gobject/gobject-sections.txt:
|
||||||
|
|||||||
@@ -133,18 +133,21 @@ should not be freed.
|
|||||||
|
|
||||||
<!-- ##### MACRO G_OBJECT_CLASS_TYPE ##### -->
|
<!-- ##### MACRO G_OBJECT_CLASS_TYPE ##### -->
|
||||||
<para>
|
<para>
|
||||||
|
Return the type id of a class structure.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
@class:
|
@class: a valid #GObjectClass
|
||||||
|
@Returns: Type id of @class.
|
||||||
|
|
||||||
|
|
||||||
<!-- ##### MACRO G_OBJECT_CLASS_NAME ##### -->
|
<!-- ##### MACRO G_OBJECT_CLASS_NAME ##### -->
|
||||||
<para>
|
<para>
|
||||||
|
Return the name of a class structure's type.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
@class:
|
@class: a valid #GObjectClass
|
||||||
|
@Returns: Type name of @class. The string is owned by the type system and
|
||||||
|
should not be freed.
|
||||||
|
|
||||||
|
|
||||||
<!-- ##### FUNCTION g_object_class_install_property ##### -->
|
<!-- ##### FUNCTION g_object_class_install_property ##### -->
|
||||||
@@ -152,13 +155,9 @@ should not be freed.
|
|||||||
Installs a new property. This is usually done in the class initializer.
|
Installs a new property. This is usually done in the class initializer.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
@oclass:
|
@oclass: a #GObjectClass
|
||||||
@property_id: the id for the new property
|
@property_id: the id for the new property
|
||||||
@pspec: the #GParamSpec for the new property
|
@pspec: the #GParamSpec for the new property
|
||||||
<!-- # Unused Parameters # -->
|
|
||||||
@class: a #GObjectClass
|
|
||||||
@property_id:
|
|
||||||
@pspec:
|
|
||||||
|
|
||||||
|
|
||||||
<!-- ##### FUNCTION g_object_class_find_property ##### -->
|
<!-- ##### FUNCTION g_object_class_find_property ##### -->
|
||||||
@@ -215,19 +214,20 @@ Installs a new property. This is usually done in the class initializer.
|
|||||||
|
|
||||||
<!-- ##### FUNCTION g_object_ref ##### -->
|
<!-- ##### FUNCTION g_object_ref ##### -->
|
||||||
<para>
|
<para>
|
||||||
|
Increases the reference count of @object.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
@object:
|
@object: a #GObject
|
||||||
@Returns:
|
@Returns: @object
|
||||||
|
|
||||||
|
|
||||||
<!-- ##### FUNCTION g_object_unref ##### -->
|
<!-- ##### FUNCTION g_object_unref ##### -->
|
||||||
<para>
|
<para>
|
||||||
|
Decreases the reference count if @object.
|
||||||
|
When its reference count drops to 0, the object is finalized (i.e. its memory is freed).
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
@object:
|
@object: a #GObject
|
||||||
|
|
||||||
|
|
||||||
<!-- ##### USER_FUNCTION GWeakNotify ##### -->
|
<!-- ##### USER_FUNCTION GWeakNotify ##### -->
|
||||||
@@ -241,22 +241,26 @@ Installs a new property. This is usually done in the class initializer.
|
|||||||
|
|
||||||
<!-- ##### FUNCTION g_object_weak_ref ##### -->
|
<!-- ##### FUNCTION g_object_weak_ref ##### -->
|
||||||
<para>
|
<para>
|
||||||
|
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).
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
@object:
|
@object: #GObject to reference weakly
|
||||||
@notify:
|
@notify: callback to invoke before the object is freed
|
||||||
@data:
|
@data: extra data to pass to notify
|
||||||
|
|
||||||
|
|
||||||
<!-- ##### FUNCTION g_object_weak_unref ##### -->
|
<!-- ##### FUNCTION g_object_weak_unref ##### -->
|
||||||
<para>
|
<para>
|
||||||
|
Removes a weak reference callback to an object.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
@object:
|
@object: #GObject to remove a weak reference from
|
||||||
@notify:
|
@notify: callback to search for
|
||||||
@data:
|
@data: data to search for
|
||||||
|
|
||||||
|
|
||||||
<!-- ##### FUNCTION g_object_add_weak_pointer ##### -->
|
<!-- ##### FUNCTION g_object_add_weak_pointer ##### -->
|
||||||
@@ -301,30 +305,28 @@ to match the one used with g_object_add_weak_pointer().
|
|||||||
@object:
|
@object:
|
||||||
@signal_spec:
|
@signal_spec:
|
||||||
@Varargs:
|
@Varargs:
|
||||||
<!-- # Unused Parameters # -->
|
|
||||||
@Returns:
|
|
||||||
|
|
||||||
|
|
||||||
<!-- ##### FUNCTION g_object_set ##### -->
|
<!-- ##### FUNCTION g_object_set ##### -->
|
||||||
<para>
|
<para>
|
||||||
|
Sets properties on an object.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
@object:
|
@object: a #GObject
|
||||||
@first_property_name:
|
@first_property_name: name of the first property to set
|
||||||
@Varargs:
|
@Varargs: value for the first property, followed optionally by more
|
||||||
<!-- # Unused Parameters # -->
|
name/value pairs, followed by %NULL
|
||||||
@Returns:
|
|
||||||
|
|
||||||
|
|
||||||
<!-- ##### FUNCTION g_object_get ##### -->
|
<!-- ##### FUNCTION g_object_get ##### -->
|
||||||
<para>
|
<para>
|
||||||
|
Gets properties of an object.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
@object:
|
@object: a #GObject
|
||||||
@first_property_name:
|
@first_property_name: name of the first property to get
|
||||||
@Varargs:
|
@Varargs: return location for the first property, followed optionally by more
|
||||||
|
name/return location pairs, followed by %NULL
|
||||||
|
|
||||||
|
|
||||||
<!-- ##### FUNCTION g_object_notify ##### -->
|
<!-- ##### FUNCTION g_object_notify ##### -->
|
||||||
@@ -356,43 +358,51 @@ This causes all queued "notify" signals on @object to be emitted.
|
|||||||
|
|
||||||
<!-- ##### FUNCTION g_object_get_data ##### -->
|
<!-- ##### FUNCTION g_object_get_data ##### -->
|
||||||
<para>
|
<para>
|
||||||
|
Gets a named field from the objects table of associations (see g_object_set_data()).
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
@object:
|
@object: #GObject containing the associations
|
||||||
@key:
|
@key: name of the key for that association
|
||||||
@Returns:
|
@Returns: the data if found, or %NULL if no such data exists.
|
||||||
|
|
||||||
|
|
||||||
<!-- ##### FUNCTION g_object_set_data ##### -->
|
<!-- ##### FUNCTION g_object_set_data ##### -->
|
||||||
<para>
|
<para>
|
||||||
|
Each object carries around a table of associations from
|
||||||
|
strings to pointers. This function lets you set an association.
|
||||||
|
</para>
|
||||||
|
<para>
|
||||||
|
If the object already had an association with that name,
|
||||||
|
the old association will be destroyed.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
@object:
|
@object: #GObject containing the associations.
|
||||||
@key:
|
@key: name of the key
|
||||||
@data:
|
@data: data to associate with that key
|
||||||
|
|
||||||
|
|
||||||
<!-- ##### FUNCTION g_object_set_data_full ##### -->
|
<!-- ##### FUNCTION g_object_set_data_full ##### -->
|
||||||
<para>
|
<para>
|
||||||
|
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.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
@object:
|
@object: #GObject containing the associations
|
||||||
@key:
|
@key: name of the key
|
||||||
@data:
|
@data: data to associate with that key
|
||||||
@destroy:
|
@destroy: function to call when the association is destroyed
|
||||||
|
|
||||||
|
|
||||||
<!-- ##### FUNCTION g_object_steal_data ##### -->
|
<!-- ##### FUNCTION g_object_steal_data ##### -->
|
||||||
<para>
|
<para>
|
||||||
|
Remove a specified datum from the object's data associations,
|
||||||
|
without invoking the association's destroy handler.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
@object:
|
@object: #GObject containing the associations
|
||||||
@key:
|
@key: name of the key
|
||||||
@Returns:
|
@Returns: the data if found, or %NULL if no such data exists.
|
||||||
|
|
||||||
|
|
||||||
<!-- ##### FUNCTION g_object_get_qdata ##### -->
|
<!-- ##### FUNCTION g_object_get_qdata ##### -->
|
||||||
@@ -483,22 +493,22 @@ have been freed upon g_object_set_qdata_full().
|
|||||||
|
|
||||||
<!-- ##### FUNCTION g_object_set_property ##### -->
|
<!-- ##### FUNCTION g_object_set_property ##### -->
|
||||||
<para>
|
<para>
|
||||||
|
Sets a property on an object.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
@object:
|
@object: a #GObject
|
||||||
@property_name:
|
@property_name: the name of the property to set
|
||||||
@value:
|
@value: the value
|
||||||
|
|
||||||
|
|
||||||
<!-- ##### FUNCTION g_object_get_property ##### -->
|
<!-- ##### FUNCTION g_object_get_property ##### -->
|
||||||
<para>
|
<para>
|
||||||
|
Gets a property of an object.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
@object:
|
@object: a #GObject
|
||||||
@property_name:
|
@property_name: the name of the property to get
|
||||||
@value:
|
@value: return location for the property value
|
||||||
|
|
||||||
|
|
||||||
<!-- ##### FUNCTION g_object_new_valist ##### -->
|
<!-- ##### FUNCTION g_object_new_valist ##### -->
|
||||||
|
|||||||
Reference in New Issue
Block a user