mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 15:36:14 +01:00
Some more additions.
This commit is contained in:
parent
e35363d894
commit
11d14bd97d
@ -288,23 +288,98 @@ to match the one used with g_object_add_weak_pointer().
|
|||||||
|
|
||||||
<!-- ##### FUNCTION g_object_connect ##### -->
|
<!-- ##### FUNCTION g_object_connect ##### -->
|
||||||
<para>
|
<para>
|
||||||
|
A convenience function to connect multiple signals at once.
|
||||||
</para>
|
</para>
|
||||||
|
<para>
|
||||||
|
The signal specs expected by this function have the form
|
||||||
|
"modifier::signal_name", where modifier can be one of the following:
|
||||||
|
<variablelist>
|
||||||
|
<varlistentry>
|
||||||
|
<term>signal</term>
|
||||||
|
<listitem><para>
|
||||||
|
equivalent to <literal>g_signal_connect_data (...)</literal>
|
||||||
|
</para></listitem>
|
||||||
|
</varlistentry>
|
||||||
|
<varlistentry>
|
||||||
|
<term>object_signal</term>
|
||||||
|
<listitem><para>
|
||||||
|
equivalent to <literal>g_signal_connect_object (...)</literal>
|
||||||
|
</para></listitem>
|
||||||
|
</varlistentry>
|
||||||
|
<varlistentry>
|
||||||
|
<term>swapped_signal</term>
|
||||||
|
<listitem><para>
|
||||||
|
equivalent to <literal>g_signal_connect_data (..., G_CONNECT_SWAPPED)</literal>
|
||||||
|
</para></listitem>
|
||||||
|
</varlistentry>
|
||||||
|
<varlistentry>
|
||||||
|
<term>swapped_object_signal</term>
|
||||||
|
<listitem><para>
|
||||||
|
equivalent to <literal>g_signal_connect_object (..., G_CONNECT_SWAPPED)</literal>
|
||||||
|
</para></listitem>
|
||||||
|
</varlistentry>
|
||||||
|
<varlistentry>
|
||||||
|
<term>signal_after</term>
|
||||||
|
<listitem><para>
|
||||||
|
equivalent to <literal>g_signal_connect_data (..., G_CONNECT_AFTER)</literal>
|
||||||
|
</para></listitem>
|
||||||
|
</varlistentry>
|
||||||
|
<varlistentry>
|
||||||
|
<term>object_signal_after</term>
|
||||||
|
<listitem><para>
|
||||||
|
equivalent to <literal>g_signal_connect_object (..., G_CONNECT_AFTER)</literal>
|
||||||
|
</para></listitem>
|
||||||
|
</varlistentry>
|
||||||
|
<varlistentry>
|
||||||
|
<term>swapped_signal_after</term>
|
||||||
|
<listitem><para>
|
||||||
|
equivalent to <literal>g_signal_connect_data (..., G_CONNECT_SWAPPED | G_CONNECT_AFTER)</literal>
|
||||||
|
</para></listitem>
|
||||||
|
</varlistentry>
|
||||||
|
<varlistentry>
|
||||||
|
<term>swapped_object_signal_after</term>
|
||||||
|
<listitem><para>
|
||||||
|
equivalent to <literal>g_signal_connect_object (..., G_CONNECT_SWAPPED | G_CONNECT_AFTER)</literal>
|
||||||
|
</para></listitem>
|
||||||
|
</varlistentry>
|
||||||
|
</variablelist>
|
||||||
|
</para>
|
||||||
|
<informalexample>
|
||||||
|
<programlisting>
|
||||||
|
menu->toplevel = g_object_connect (g_object_new (GTK_TYPE_WINDOW,
|
||||||
|
"type", GTK_WINDOW_POPUP,
|
||||||
|
"child", menu,
|
||||||
|
NULL),
|
||||||
|
"signal::event", gtk_menu_window_event, menu,
|
||||||
|
"signal::size_request", gtk_menu_window_size_request, menu,
|
||||||
|
"signal::destroy", gtk_widget_destroyed, &menu->toplevel,
|
||||||
|
NULL);
|
||||||
|
</programlisting>
|
||||||
|
</informalexample>
|
||||||
|
|
||||||
@object:
|
@object: a #GObject
|
||||||
@signal_spec:
|
@signal_spec: the spec for the first signal
|
||||||
@Varargs:
|
@Varargs: #GCallback for the first signal, followed by data for the first signal,
|
||||||
@Returns:
|
followed optionally by more signal spec/callback/data triples,
|
||||||
|
followed by %NULL
|
||||||
|
@Returns: @object
|
||||||
|
|
||||||
|
|
||||||
<!-- ##### FUNCTION g_object_disconnect ##### -->
|
<!-- ##### FUNCTION g_object_disconnect ##### -->
|
||||||
<para>
|
<para>
|
||||||
|
A convenience function to disconnect multiple signals at once.
|
||||||
|
</para>
|
||||||
|
<para>
|
||||||
|
The signal specs expected by this function have the form "any_signal", which
|
||||||
|
means to disconnect any signal with matching callback and data, or
|
||||||
|
"any_signal::signal_name", which only disconnects the signal named "signal_name".
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
@object:
|
@object: a #GObject
|
||||||
@signal_spec:
|
@signal_spec: the spec for the first signal
|
||||||
@Varargs:
|
@Varargs: #GCallback for the first signal, followed by data for the first signal,
|
||||||
|
followed optionally by more signal spec/callback/data triples,
|
||||||
|
followed by %NULL
|
||||||
|
|
||||||
|
|
||||||
<!-- ##### FUNCTION g_object_set ##### -->
|
<!-- ##### FUNCTION g_object_set ##### -->
|
||||||
@ -524,22 +599,24 @@ Gets a property of an object.
|
|||||||
|
|
||||||
<!-- ##### FUNCTION g_object_set_valist ##### -->
|
<!-- ##### FUNCTION g_object_set_valist ##### -->
|
||||||
<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
|
||||||
@var_args:
|
@var_args: value for the first property, followed optionally by more
|
||||||
|
name/value pairs, followed by %NULL
|
||||||
|
|
||||||
|
|
||||||
<!-- ##### FUNCTION g_object_get_valist ##### -->
|
<!-- ##### FUNCTION g_object_get_valist ##### -->
|
||||||
<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
|
||||||
@var_args:
|
@var_args: return location for the first property, followed optionally by more
|
||||||
|
name/return location pairs, followed by %NULL
|
||||||
|
|
||||||
|
|
||||||
<!-- ##### FUNCTION g_object_watch_closure ##### -->
|
<!-- ##### FUNCTION g_object_watch_closure ##### -->
|
||||||
|
Loading…
Reference in New Issue
Block a user