From 12206c5a8f944b72f5bf306d72eb22122dc29f1c Mon Sep 17 00:00:00 2001 From: Dieter Verfaillie Date: Wed, 16 Mar 2011 15:32:15 +0100 Subject: reference: pygtk-gtkentrycompletion.xml: explain how to override default "match-selected" behaviour (bug 593386) --- docs/reference/pygtk-gtkentrycompletion.xml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/reference/pygtk-gtkentrycompletion.xml b/docs/reference/pygtk-gtkentrycompletion.xml index dc08fb2f..bf69b6b5 100644 --- a/docs/reference/pygtk-gtkentrycompletion.xml +++ b/docs/reference/pygtk-gtkentrycompletion.xml @@ -328,6 +328,12 @@ them clearly from completion strings. When an action is selected, the "action-activated" signal is emitted. + 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 + True from the signal handler to suppress the default behaviour. + A gtk.TreeModel (e.g. a