[gtksourceview] Always match in word completion



commit af9dc5bcbd0a962d5349952dca867b5488d96251
Author: Jesse van den Kieboom <jesse vandenkieboom epfl ch>
Date:   Fri Jan 1 23:04:53 2010 +0100

    Always match in word completion

 .../words/gtksourcecompletionwords.c               |   17 ++---------------
 1 files changed, 2 insertions(+), 15 deletions(-)
---
diff --git a/gtksourceview/completion-providers/words/gtksourcecompletionwords.c b/gtksourceview/completion-providers/words/gtksourcecompletionwords.c
index 33a89ce..1ee4b47 100644
--- a/gtksourceview/completion-providers/words/gtksourcecompletionwords.c
+++ b/gtksourceview/completion-providers/words/gtksourcecompletionwords.c
@@ -229,25 +229,12 @@ get_word_at_iter (GtkTextIter    *iter,
 		return gtk_text_iter_get_text (iter, &end);
 	}
 }
+
 static gboolean
 gtk_source_completion_words_match (GtkSourceCompletionProvider *provider,
                                    GtkSourceCompletionContext  *context)
 {
-	GtkSourceCompletionWords *words = GTK_SOURCE_COMPLETION_WORDS (provider);
-	GtkTextIter iter;
-	gchar *word;
-	gboolean ret;
-
-	gtk_source_completion_context_get_iter (context, &iter);
-	word = get_word_at_iter (&iter,
-	                         valid_word_char,
-	                         valid_start_char,
-	                         words);
-	
-	ret = word != NULL && g_utf8_strlen (word, -1) >= words->priv->minimum_word_size;
-	g_free (word);
-	
-	return ret;
+	return TRUE;
 }
 
 static void



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]