diff --git a/ChangeLog b/ChangeLog index dfd33057a7..cc806f016e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-04-28 Xan Lopez + + * gtk/gtkentrycompletion.c (gtk_entry_completion_insert_completion_text): + Use strstr instead of g_strstr with -1 for length. + 2007-04-28 Xan Lopez * gtk/gtkentry.c: diff --git a/gtk/gtkentrycompletion.c b/gtk/gtkentrycompletion.c index 0760e04a7b..4b0da9769a 100644 --- a/gtk/gtkentrycompletion.c +++ b/gtk/gtkentrycompletion.c @@ -1677,7 +1677,7 @@ gtk_entry_completion_insert_completion_text (GtkEntryCompletion *completion, } gtk_entry_set_text (GTK_ENTRY (priv->entry), text); - needle = g_strstr_len (text, -1, completion->priv->completion_prefix); + needle = strstr (text, completion->priv->completion_prefix); if (needle) { len = g_utf8_strlen (text, -1) - g_utf8_strlen (needle, -1)