diff options
Diffstat (limited to 'docs/reference/pygtk-gtkentrycompletion.xml')
-rw-r--r-- | docs/reference/pygtk-gtkentrycompletion.xml | 31 |
1 files changed, 30 insertions, 1 deletions
diff --git a/docs/reference/pygtk-gtkentrycompletion.xml b/docs/reference/pygtk-gtkentrycompletion.xml index f1263bcb..dc08fb2f 100644 --- a/docs/reference/pygtk-gtkentrycompletion.xml +++ b/docs/reference/pygtk-gtkentrycompletion.xml @@ -133,6 +133,11 @@ linkend="method-gtkentrycompletion--get-popup-single-match">get_popup_single_match</link></methodname> <methodparam></methodparam> </methodsynopsis> + <methodsynopsis language="python"> + <methodname><link + linkend="method-gtkentrycompletion--get-completion-prefix">get_completion_prefix</link></methodname> + <methodparam></methodparam> + </methodsynopsis> </classsynopsis> </refsect1> @@ -259,7 +264,7 @@ </listitem> </varlistentry> <varlistentry> - <term>"<link linkend="signal-gtkentrycompletion--cursor-on-match">cursor_on_match</link>"</term> + <term>"<link linkend="signal-gtkentrycompletion--cursor-on-match">cursor-on-match</link>"</term> <listitem> <methodsynopsis language="python"><methodname>callback</methodname> <methodparam><parameter>completion</parameter></methodparam> @@ -1074,6 +1079,30 @@ popup window should appear even for a single match.</para> </refsect2> + <refsect2 id="method-gtkentrycompletion--get-completion-prefix "> + <title>gtk.EntryCompletion.get_completion_prefix </title> + + <programlisting><methodsynopsis language="python"> + <methodname>get_completion_prefix</methodname> + <methodparam></methodparam> + </methodsynopsis></programlisting> + <variablelist> + <varlistentry> + <term><emphasis>Returns</emphasis> :</term> + <listitem><simpara>The prefix for the current completion.</simpara></listitem> + </varlistentry> + </variablelist> + + <note> + <para>This method is available in PyGTK 2.12 and above.</para> + </note> + + <para>The <methodname>get_completion_prefix</methodname>() method +gets the original text entered by the user that triggered the completion or +<literal>None</literal> if there's no completion ongoing.</para> + + </refsect2> + </refsect1> <refsect1> |