Skip to content

Commit

Permalink
reference: pygtk-gtkentrycompletion.xml: explain how to override defa…
Browse files Browse the repository at this point in the history
…ult "match-selected" behaviour (bug 593386)
  • Loading branch information
dieterv committed Mar 18, 2011
1 parent 220fd37 commit 12206c5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/reference/pygtk-gtkentrycompletion.xml
Expand Up @@ -328,6 +328,12 @@
them clearly from completion strings. When an action is selected, the
"action-activated" signal is emitted.</para>

<para>When the user selects a completion, the content of the entry is updated.
By default, the content of the entry is replaced by the text column of the model,
but this can be overridden by connecting to the "match-selected" signal and
updating the entry in the signal handler. Note that you should return
<literal>True</literal> from the signal handler to suppress the default behaviour.</para>

<para>A <link
linkend="class-gtktreemodel"><classname>gtk.TreeModel</classname></link>
(e.g. a <link
Expand Down

0 comments on commit 12206c5

Please sign in to comment.