forked from AuroraMiddleware/gtk
Document that inline completion requires text-column to be set.
2005-03-15 Matthias Clasen <mclasen@redhat.com> * gtk/gtkentrycompletion.c (gtk_entry_completion_class_init): Document that inline completion requires text-column to be set. (gtk_entry_completion_compute_prefix): Return NULL if text-column is not set. * gtk/gtkentry.c (check_completion_callback): Call gtk_entry_completion_complete() before inserting the prefix, otherwise the prefix may depend on (random) state of the filter model.
This commit is contained in:
parent
3fc42d7ab9
commit
0e86016442
12
ChangeLog
12
ChangeLog
@ -1,3 +1,15 @@
|
||||
2005-03-15 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkentrycompletion.c (gtk_entry_completion_class_init):
|
||||
Document that inline completion requires text-column to be set.
|
||||
(gtk_entry_completion_compute_prefix): Return NULL if text-column
|
||||
is not set.
|
||||
|
||||
* gtk/gtkentry.c (check_completion_callback): Call
|
||||
gtk_entry_completion_complete() before inserting the prefix,
|
||||
otherwise the prefix may depend on (random) state of the
|
||||
filter model.
|
||||
|
||||
2005-03-15 Anders Carlsson <andersca@imendio.com>
|
||||
|
||||
* docs/iconcache.txt:
|
||||
|
@ -1,3 +1,15 @@
|
||||
2005-03-15 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkentrycompletion.c (gtk_entry_completion_class_init):
|
||||
Document that inline completion requires text-column to be set.
|
||||
(gtk_entry_completion_compute_prefix): Return NULL if text-column
|
||||
is not set.
|
||||
|
||||
* gtk/gtkentry.c (check_completion_callback): Call
|
||||
gtk_entry_completion_complete() before inserting the prefix,
|
||||
otherwise the prefix may depend on (random) state of the
|
||||
filter model.
|
||||
|
||||
2005-03-15 Anders Carlsson <andersca@imendio.com>
|
||||
|
||||
* docs/iconcache.txt:
|
||||
|
@ -1,3 +1,15 @@
|
||||
2005-03-15 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkentrycompletion.c (gtk_entry_completion_class_init):
|
||||
Document that inline completion requires text-column to be set.
|
||||
(gtk_entry_completion_compute_prefix): Return NULL if text-column
|
||||
is not set.
|
||||
|
||||
* gtk/gtkentry.c (check_completion_callback): Call
|
||||
gtk_entry_completion_complete() before inserting the prefix,
|
||||
otherwise the prefix may depend on (random) state of the
|
||||
filter model.
|
||||
|
||||
2005-03-15 Anders Carlsson <andersca@imendio.com>
|
||||
|
||||
* docs/iconcache.txt:
|
||||
|
@ -5200,6 +5200,7 @@ check_completion_callback (GtkEntryCompletion *completion)
|
||||
{
|
||||
completion->priv->check_completion_idle = NULL;
|
||||
|
||||
gtk_entry_completion_complete (completion);
|
||||
gtk_entry_completion_insert_prefix (completion);
|
||||
|
||||
return FALSE;
|
||||
|
@ -303,7 +303,9 @@ gtk_entry_completion_class_init (GtkEntryCompletionClass *klass)
|
||||
* GtkEntryCompletion:inline-completion:
|
||||
*
|
||||
* Determines whether the common prefix of the possible completions
|
||||
* should be inserted automatically in the entry.
|
||||
* should be inserted automatically in the entry. Note that this
|
||||
* requires text-column to be set, even if you are using a custom
|
||||
* match function.
|
||||
*
|
||||
* Since: 2.6
|
||||
**/
|
||||
@ -1412,8 +1414,12 @@ gtk_entry_completion_compute_prefix (GtkEntryCompletion *completion)
|
||||
GtkTreeIter iter;
|
||||
gchar *prefix = NULL;
|
||||
gboolean valid;
|
||||
const gchar *key;
|
||||
|
||||
const gchar *key = gtk_entry_get_text (GTK_ENTRY (completion->priv->entry));
|
||||
if (completion->priv->text_column < 0)
|
||||
return NULL;
|
||||
|
||||
key = gtk_entry_get_text (GTK_ENTRY (completion->priv->entry));
|
||||
|
||||
valid = gtk_tree_model_get_iter_first (GTK_TREE_MODEL (completion->priv->filter_model),
|
||||
&iter);
|
||||
|
Loading…
Reference in New Issue
Block a user