diff options
author | John Finlay <finlay@src.gnome.org> | 2005-07-06 08:12:28 +0000 |
---|---|---|
committer | John Finlay <finlay@src.gnome.org> | 2005-07-06 08:12:28 +0000 |
commit | 94760e50f27f2639e7a4fd027a7c049ff0fc4dec (patch) | |
tree | 6f9056a808e441b50b096f15764e63d421fea6d5 /docs/reference/pygtk-gobject.xml | |
parent | 0f67738441de14cc4ede296422ccdfec9db0dc33 (diff) | |
download | pygtk-94760e50f27f2639e7a4fd027a7c049ff0fc4dec.tar.gz |
Add description of the "notify" signal.
* pygtk-gobject.xml (Signals): Add description of the "notify" signal.
Diffstat (limited to 'docs/reference/pygtk-gobject.xml')
-rw-r--r-- | docs/reference/pygtk-gobject.xml | 98 |
1 files changed, 86 insertions, 12 deletions
diff --git a/docs/reference/pygtk-gobject.xml b/docs/reference/pygtk-gobject.xml index 76b82dea..81947606 100644 --- a/docs/reference/pygtk-gobject.xml +++ b/docs/reference/pygtk-gobject.xml @@ -134,18 +134,6 @@ linkend="method-gobject--chain">chain</link></methodname> </refsect1> <refsect1> - <title>Description</title> - <para>The GObject class is the base class providing the common -attributes and methods for the PyGTK classes. The GObject class is not a -user interface widget class.</para> - - <para>The GObject class provides the signal management methods, the -object property access methods and the object data management -methods.</para> - - </refsect1> - - <refsect1> <title>Attributes</title> <blockquote role="properties"> @@ -188,6 +176,37 @@ methods.</para> </refsect1> <refsect1> + <title>Signal Prototypes</title> + + <variablelist> + <varlistentry> + <term>"<link linkend="signal-gobject--notify">notify</link>"</term> + <listitem> + <methodsynopsis language="python"><methodname>callback</methodname> + <methodparam><parameter>gobject</parameter></methodparam> + <methodparam><parameter>property_spec</parameter></methodparam> + <methodparam><parameter>user_param1</parameter></methodparam> + <methodparam><parameter>...</parameter></methodparam> + </methodsynopsis> + </listitem> + </varlistentry> + </variablelist> + + </refsect1> + + <refsect1> + <title>Description</title> + <para>The GObject class is the base class providing the common +attributes and methods for the PyGTK classes. The GObject class is not a +user interface widget class.</para> + + <para>The GObject class provides the signal management methods, the +object property access methods and the object data management +methods.</para> + + </refsect1> + + <refsect1> <title>Methods</title> <refsect2 id="method-gobject--get-property"> @@ -785,4 +804,59 @@ still to be run will not be invoked.</para> </refsect1> + <refsect1> + <title>Signals</title> + + <refsect2 id="signal-gobject--notify"> + <title>The GObject "notify" Signal</title> + + <programlisting><methodsynopsis language="python"> + <methodname>callback</methodname> + <methodparam><parameter>gobject</parameter></methodparam> + <methodparam><parameter>property_spec</parameter></methodparam> + <methodparam><parameter>user_param1</parameter></methodparam> + <methodparam><parameter>...</parameter></methodparam> + </methodsynopsis></programlisting> + + <variablelist> + <varlistentry> + <term><parameter>gobject</parameter> :</term> + <listitem><simpara>the gobject that received the +signal</simpara></listitem> + </varlistentry> + <varlistentry> + <term><parameter>property_spec</parameter> :</term> + <listitem><simpara>the <link linkend="class-gobjectgparamspec"><classname>gobject.GParamSpec</classname></link> of the property that was +changed</simpara></listitem> + </varlistentry> + <varlistentry> + <term><parameter>user_param1</parameter> :</term> + <listitem><simpara>the first user parameter (if any) specified +with the <link +linkend="method-gobject--connect"><methodname>connect</methodname>()</link> +method</simpara></listitem> + </varlistentry> + <varlistentry> + <term><parameter>...</parameter> :</term> + <listitem><simpara>additional user parameters (if +any)</simpara></listitem> + </varlistentry> + </variablelist> + + <para>The "notify" signal is emitted on a gobject when one of its +properties has been changed. Note that getting this signal doesn't guarantee +that the value of the property has actually changed, it may also be emitted +when the setter for the property is called to reinstate the previous +value. For example to be notified of the change of the title of a <link +linkend="class-gtkwindow"><classname>gtk.Window</classname></link> you could +connect to the "notify" signal similar to:</para> + + <programlisting> + window.connect("notify::title", callback) +</programlisting> + + </refsect2> + + </refsect1> + </refentry> |