]> Pileus Git - ~andy/gtk/commitdiff
Use strstr instead of g_strstr with -1 for length.
authorXan Lopez <xan@src.gnome.org>
Sat, 28 Apr 2007 11:28:58 +0000 (11:28 +0000)
committerXan Lopez <xan@src.gnome.org>
Sat, 28 Apr 2007 11:28:58 +0000 (11:28 +0000)
* gtk/gtkentrycompletion.c (gtk_entry_completion_insert_completion_text):
Use strstr instead of g_strstr with -1 for length.

svn path=/trunk/; revision=17668

ChangeLog
gtk/gtkentrycompletion.c

index dfd33057a7978e7a5cf69e9ffaa119a009b4baf5..cc806f016e054e9dfe15cc14cba78d3676a0a70d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-04-28  Xan Lopez  <xan@gnome.org>
+
+       * gtk/gtkentrycompletion.c (gtk_entry_completion_insert_completion_text): 
+       Use strstr instead of g_strstr with -1 for length.
+
 2007-04-28  Xan Lopez  <xan@gnome.org>
 
        * gtk/gtkentry.c:
index 0760e04a7bc60ee7dd0ddec07eca5aecfc9f84b9..4b0da9769a6bb9a70dc3cfce866827ada2aaa86c 100644 (file)
@@ -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)