[pygtk] reference: pygtk-gtkimmulticontext.xml: add missing methods



commit 416f7d63fbdb8e44fde1608de23bf8de4b5846c9
Author: Dieter Verfaillie <dieterv optionexplicit be>
Date:   Tue Mar 1 13:42:38 2011 +0100

    reference: pygtk-gtkimmulticontext.xml: add missing methods

 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 35a1b61..c277c07 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>&nbsp;:</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>&nbsp;:</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>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]