From dc04c9c3fa6c5dd075f2f1c0853ab1213b02f92c Mon Sep 17 00:00:00 2001 From: Jon Trowbridge Date: Tue, 5 Jun 2001 17:46:56 +0000 Subject: Small changes throughout to use ECompletionMatch. 2001-06-05 Jon Trowbridge * gal/e-text/e-entry.c: Small changes throughout to use ECompletionMatch. * gal/e-text/e-completion-view.c: Small changes throughout to use ECompletionMatch. * gal/e-text/e-completion.c: Small changes throughout to use ECompletionMatch. * gal/e-text/e-completion-match.h: * gal/e-text/e-completion-match.c: Added. A struct to contain completion matches. This lets us more easily pass around information between the various bits of completion machinery. svn path=/trunk/; revision=10118 --- widgets/text/e-completion-test.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'widgets/text/e-completion-test.c') diff --git a/widgets/text/e-completion-test.c b/widgets/text/e-completion-test.c index 8550e9a10f..7a5ed920cd 100644 --- a/widgets/text/e-completion-test.c +++ b/widgets/text/e-completion-test.c @@ -93,9 +93,13 @@ dict_check (gpointer ptr) && i < word_count && dict_info.count < 50 && g_strncasecmp (dict_info.txt, word_array[i], dict_info.len) == 0) { - e_completion_found_match_full (dict_info.complete, word_array[i], - dict_info.len / (double)strlen (word_array[i]), - NULL, NULL); + + ECompletionMatch *match = g_new (ECompletionMatch, 1); + e_completion_match_construct (match); + e_completion_match_set_text (match, word_array[i], NULL); + match->score = dict_info.len / (double)strlen (word_array[i]); + e_completion_found_match (dict_info.complete, match); + ++i; --limit; ++dict_info.count; -- cgit v1.2.3