summaryrefslogtreecommitdiff
path: root/gtk/gtkentrycompletion.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2007-07-19 15:44:23 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2007-07-19 15:44:23 +0000
commit6a45d5b825b17996265263714a137352aa0ba246 (patch)
tree42ca911bc8ed3ffbf528f15f266a6e86a146682c /gtk/gtkentrycompletion.c
parente1926de86a5a16dd63849b7f70658bd6af174cf3 (diff)
downloadgtk+-6a45d5b825b17996265263714a137352aa0ba246.tar.gz
Handle keypresses better when there is no completion. (#458298, Christian
2007-07-19 Matthias Clasen <mclasen@redhat.com> * gtk/gtkentry.c (gtk_entry_completion_key_press): Handle keypresses better when there is no completion. (#458298, Christian Persch, patch by Xan Lopez) * gtk/gtkentrycompletion.c (gtk_entry_completion_insert_completion_text): Small cleanup. svn path=/trunk/; revision=18505
Diffstat (limited to 'gtk/gtkentrycompletion.c')
-rw-r--r--gtk/gtkentrycompletion.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtkentrycompletion.c b/gtk/gtkentrycompletion.c
index 8c4268a794..e3dd01fdad 100644
--- a/gtk/gtkentrycompletion.c
+++ b/gtk/gtkentrycompletion.c
@@ -1690,7 +1690,8 @@ gtk_entry_completion_insert_completion_text (GtkEntryCompletion *completion,
if (completion->priv->completion_prefix == NULL)
completion->priv->completion_prefix = g_strdup (gtk_entry_get_text (GTK_ENTRY (priv->entry)));
- gtk_entry_set_text (GTK_ENTRY (priv->entry), text);
+
+ gtk_entry_set_text (GTK_ENTRY (priv->entry), text);
len = strlen (priv->completion_prefix);
gtk_editable_select_region (GTK_EDITABLE (priv->entry), len, -1);