diff options
author | Dieter Verfaillie <dieterv@optionexplicit.be> | 2011-03-01 13:42:38 +0100 |
---|---|---|
committer | Dieter Verfaillie <dieterv@optionexplicit.be> | 2011-03-01 13:42:38 +0100 |
commit | 416f7d63fbdb8e44fde1608de23bf8de4b5846c9 (patch) | |
tree | aa602db15a4682f9e9fbce63574c842172c82d8d /docs/reference/pygtk-gtkimmulticontext.xml | |
parent | d1c06aee81c05ffb42c402ed76906f5b45036280 (diff) | |
download | pygtk-416f7d63fbdb8e44fde1608de23bf8de4b5846c9.tar.gz |
reference: pygtk-gtkimmulticontext.xml: add missing methods
Diffstat (limited to 'docs/reference/pygtk-gtkimmulticontext.xml')
-rw-r--r-- | docs/reference/pygtk-gtkimmulticontext.xml | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/docs/reference/pygtk-gtkimmulticontext.xml b/docs/reference/pygtk-gtkimmulticontext.xml index 35a1b612..c277c07f 100644 --- a/docs/reference/pygtk-gtkimmulticontext.xml +++ b/docs/reference/pygtk-gtkimmulticontext.xml @@ -26,6 +26,15 @@ linkend="method-gtkimmulticontext--append-menuitems">append_menuitems</link></me <methodparam><parameter role="keyword">menushell</parameter></methodparam> </methodsynopsis> + + <methodsynopsis language="python"> + <methodname><link linkend="method-gtkimmulticontext--get-context-id">get_context_id</link></methodname> + <methodparam></methodparam> + </methodsynopsis> + <methodsynopsis language="python"> + <methodname><link linkend="method-gtkimmulticontext--set-context-id">set_context_id</link></methodname> + <methodparam><parameter role="keyword">context_id</parameter></methodparam> + </methodsynopsis> </classsynopsis> </refsect1> @@ -112,6 +121,55 @@ default input method.</para> </refsect2> + <refsect2 id="method-gtkimmulticontext--get-context-id"> + <title>gtk.IMMulticontext.get_context_id</title> + + <programlisting><methodsynopsis language="python"> + <methodname>get_context_id</methodname> + <methodparam></methodparam> + </methodsynopsis></programlisting> + <variablelist> + <varlistentry> + <term><emphasis>Returns</emphasis> :</term> + <listitem><simpara>The id of the currently active slave.</simpara></listitem> + </varlistentry> + </variablelist> + + <note> + <para>This method is available in PyGTK 2.16 and above.</para> + </note> + + <para>The <methodname>get_context_id</methodname>() method gets the id of the + currently active slave of the context. </para> + + </refsect2> + + <refsect2 id="method-gtkimmulticontext--set-context-id"> + <title>gtk.IMMulticontext.set_context_id</title> + + <programlisting><methodsynopsis language="python"> + <methodname>set_context_id</methodname> + <methodparam><parameter role="keyword">context_id</parameter></methodparam> + </methodsynopsis></programlisting> + <variablelist> + <varlistentry> + <term><parameter role="keyword">context_id</parameter> :</term> + <listitem><simpara>The id to use.</simpara></listitem> + </varlistentry> + </variablelist> + + <note> + <para>This method is available in PyGTK 2.16 and above.</para> + </note> + + <para>The <methodname>set_context_id</methodname>() method sets the context id + for context.</para> + + <para>This causes the currently active slave of context to be replaced by the + slave corresponding to the new context id.</para> + + </refsect2> + </refsect1> </refentry> |