diff options
author | Jon Trowbridge <trow@gnu.org> | 2001-06-06 01:46:56 +0800 |
---|---|---|
committer | Jon Trowbridge <trow@src.gnome.org> | 2001-06-06 01:46:56 +0800 |
commit | dc04c9c3fa6c5dd075f2f1c0853ab1213b02f92c (patch) | |
tree | c53a5b9bda2cf03f8a397553bb4bc5665168bbf0 /widgets/text/e-completion.h | |
parent | ce23de3eeb67e8140f67f056644223f6c9cdb44a (diff) | |
download | gsoc2013-evolution-dc04c9c3fa6c5dd075f2f1c0853ab1213b02f92c.tar.gz gsoc2013-evolution-dc04c9c3fa6c5dd075f2f1c0853ab1213b02f92c.tar.zst gsoc2013-evolution-dc04c9c3fa6c5dd075f2f1c0853ab1213b02f92c.zip |
Small changes throughout to use ECompletionMatch.
2001-06-05 Jon Trowbridge <trow@gnu.org>
* 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
Diffstat (limited to 'widgets/text/e-completion.h')
-rw-r--r-- | widgets/text/e-completion.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/widgets/text/e-completion.h b/widgets/text/e-completion.h index e101d6aa55..4a06059065 100644 --- a/widgets/text/e-completion.h +++ b/widgets/text/e-completion.h @@ -30,6 +30,7 @@ #include <libgnome/gnome-defs.h> #include <gtk/gtkobject.h> +#include "e-completion-match.h" BEGIN_GNOME_DECLS @@ -43,8 +44,6 @@ typedef struct _ECompletion ECompletion; typedef struct _ECompletionClass ECompletionClass; struct _ECompletionPrivate; -typedef void (*ECompletionMatchFn) (const gchar *text, double score, gpointer extra_data, gpointer user_data); - struct _ECompletion { GtkObject parent; @@ -56,7 +55,7 @@ struct _ECompletionClass { /* Signals */ void (*begin_completion) (ECompletion *comp, const gchar *search_text, gint pos, gint limit); - void (*completion) (ECompletion *comp, const gchar *match_text, gpointer extra_data); + void (*completion) (ECompletion *comp, ECompletionMatch *match); void (*restart_completion) (ECompletion *comp); void (*cancel_completion) (ECompletion *comp); void (*end_completion) (ECompletion *comp); @@ -72,7 +71,6 @@ const gchar *e_completion_search_text (ECompletion *comp); gint e_completion_search_text_pos (ECompletion *comp); gint e_completion_match_count (ECompletion *comp); void e_completion_foreach_match (ECompletion *comp, ECompletionMatchFn fn, gpointer user_data); -gpointer e_completion_find_extra_data (ECompletion *comp, const gchar *text); ECompletion *e_completion_new (void); @@ -81,10 +79,8 @@ ECompletion *e_completion_new (void); /* These functions should only be called by derived classes or search callbacks, or very bad things might happen. */ -void e_completion_found_match (ECompletion *comp, const gchar *completion_text); -void e_completion_found_match_full (ECompletion *comp, const gchar *completion_text, double score, - gpointer extra_data, GtkDestroyNotify extra_data_destructor); -void e_completion_end_search (ECompletion *comp); +void e_completion_found_match (ECompletion *comp, ECompletionMatch *); +void e_completion_end_search (ECompletion *comp); END_GNOME_DECLS |