Additions.

2003-09-30  Matthias Clasen  <maclas@gmx.de>

	* gobject/tmpl/gparamspec.sgml:
	* gobject/tmpl/signals.sgml: Additions.
This commit is contained in:
Matthias Clasen 2003-09-29 22:48:05 +00:00 committed by Matthias Clasen
parent b514888d16
commit dd012cc3ed
3 changed files with 49 additions and 28 deletions

View File

@ -1,5 +1,8 @@
2003-09-30 Matthias Clasen <maclas@gmx.de> 2003-09-30 Matthias Clasen <maclas@gmx.de>
* gobject/tmpl/gparamspec.sgml:
* gobject/tmpl/signals.sgml: Additions.
* glib/glib-sections.txt: Add g_unichar_get_mirror_char and * glib/glib-sections.txt: Add g_unichar_get_mirror_char and
g_static_mutex_get_mutex_impl_shortcut. g_static_mutex_get_mutex_impl_shortcut.

View File

@ -250,70 +250,88 @@ if @value1 is found to be less than, equal to or greater than @value2, respectiv
<!-- ##### FUNCTION g_param_spec_get_name ##### --> <!-- ##### FUNCTION g_param_spec_get_name ##### -->
<para> <para>
Returns the name of a #GParamSpec.
</para> </para>
@pspec: @pspec: a valid #GParamSpec
@Returns: @Returns: the name of @pspec.
<!-- ##### FUNCTION g_param_spec_get_nick ##### --> <!-- ##### FUNCTION g_param_spec_get_nick ##### -->
<para> <para>
Returns the nickname of a #GParamSpec.
</para> </para>
@pspec: @pspec: a valid #GParamSpec
@Returns: @Returns: the nickname of @pspec.
<!-- ##### FUNCTION g_param_spec_get_blurb ##### --> <!-- ##### FUNCTION g_param_spec_get_blurb ##### -->
<para> <para>
Returns the short description of a #GParamSpec.
</para> </para>
@pspec: @pspec: a valid #GParamSpec
@Returns: @Returns: the short description of @pspec.
<!-- ##### FUNCTION g_param_spec_get_qdata ##### --> <!-- ##### FUNCTION g_param_spec_get_qdata ##### -->
<para> <para>
This function gets back user data pointers stored via
g_param_spec_set_qdata().
</para> </para>
@pspec: @pspec: a valid #GParamSpec
@quark: @quark: a #GQuark, naming the user data pointer
@Returns: @Returns: the user data pointer set, or %NULL
<!-- ##### FUNCTION g_param_spec_set_qdata ##### --> <!-- ##### FUNCTION g_param_spec_set_qdata ##### -->
<para> <para>
This sets an opaque, named pointer on a #GParamSpec.
The name is specified through a #GQuark (retrived e.g. via
g_quark_from_static_string()), and the pointer
can be gotten back from the @pspec with g_param_spec_get_qdata().
Setting a previously set user data pointer, overrides (frees)
the old pointer set, using #NULL as pointer essentially
removes the data stored.
</para> </para>
@pspec: @pspec: the #GParamSpec to set store a user data pointer
@quark: @quark: a #GQuark, naming the user data pointer
@data: @data: an opaque user data pointer
<!-- ##### FUNCTION g_param_spec_set_qdata_full ##### --> <!-- ##### FUNCTION g_param_spec_set_qdata_full ##### -->
<para> <para>
This function works like g_param_spec_set_qdata(), but in addition,
a <literal>void (*destroy) (gpointer)</literal> function may be
specified which is called with @data as argument when the @pspec is
finalized, or
the data is being overwritten by a call to g_param_spec_set_qdata()
with the same @quark.
</para> </para>
@pspec: @pspec: the #GParamSpec to set store a user data pointer
@quark: @quark: a #GQuark, naming the user data pointer
@data: @data: an opaque user data pointer
@destroy: @destroy: function to invoke with @data as argument, when @data needs to
be freed
<!-- ##### FUNCTION g_param_spec_steal_qdata ##### --> <!-- ##### FUNCTION g_param_spec_steal_qdata ##### -->
<para> <para>
This function gets back user data pointers stored via
g_param_spec_set_qdata() and removes the @data from @pspec
without invoking it's destroy() function (if any was
set).
Usually, calling this function is only required to update
user data pointers with a destroy notifier.
</para> </para>
@pspec: @pspec: the #GParamSpec to get a stored user data pointer from
@quark: @quark: a #GQuark, naming the user data pointer
@Returns: @Returns: the user data pointer set, or %NULL
<!-- ##### FUNCTION g_param_spec_internal ##### --> <!-- ##### FUNCTION g_param_spec_internal ##### -->

View File

@ -217,14 +217,14 @@ of g_signal_new().
<!-- ##### MACRO G_SIGNAL_MATCH_MASK ##### --> <!-- ##### MACRO G_SIGNAL_MATCH_MASK ##### -->
<para> <para>
A mask for all #GSignalMatchType bits.
</para> </para>
<!-- ##### MACRO G_SIGNAL_FLAGS_MASK ##### --> <!-- ##### MACRO G_SIGNAL_FLAGS_MASK ##### -->
<para> <para>
A mask for all #GSignalFlags bits.
</para> </para>