summaryrefslogtreecommitdiff
path: root/gtk/gtkentrycompletion.c
diff options
context:
space:
mode:
authorXan Lopez <xan@src.gnome.org>2007-04-28 11:28:58 +0000
committerXan Lopez <xan@src.gnome.org>2007-04-28 11:28:58 +0000
commita5c702e545f010ee3f96eea9b43ea6615f3a35c4 (patch)
tree2d7aba04a66eebab4d9298060ed41d97342bbfdd /gtk/gtkentrycompletion.c
parent446014dfb8fcfe54dc73cb3e1b7b15b5cf3d80f3 (diff)
downloadgtk+-a5c702e545f010ee3f96eea9b43ea6615f3a35c4.tar.gz
Use strstr instead of g_strstr with -1 for length.
* gtk/gtkentrycompletion.c (gtk_entry_completion_insert_completion_text): Use strstr instead of g_strstr with -1 for length. svn path=/trunk/; revision=17668
Diffstat (limited to 'gtk/gtkentrycompletion.c')
-rw-r--r--gtk/gtkentrycompletion.c2
1 files changed, 1 insertions, 1 deletions
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)