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-text.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'widgets/text/e-text.c') diff --git a/widgets/text/e-text.c b/widgets/text/e-text.c index b2eb2ad3b0..f605a65a34 100644 --- a/widgets/text/e-text.c +++ b/widgets/text/e-text.c @@ -2962,7 +2962,7 @@ e_text_event (GnomeCanvasItem *item, GdkEvent *event) e_tep_event.key.time = key.time; e_tep_event.key.state = key.state; e_tep_event.key.keyval = key.keyval; - + // g_print ("etext got keyval \"%s\"\n", gdk_keyval_name (key.keyval)); /* This is probably ugly hack, but we have to handle UTF-8 input somehow */ @@ -2980,11 +2980,14 @@ e_text_event (GnomeCanvasItem *item, GdkEvent *event) _get_tep(text); ret = e_text_event_processor_handle_event (text->tep, &e_tep_event); - if (e_tep_event.key.string) g_free (e_tep_event.key.string); - if (event->type == GDK_KEY_PRESS) gtk_signal_emit (GTK_OBJECT (text), e_text_signals[E_TEXT_KEYPRESS], e_tep_event.key.keyval, e_tep_event.key.state); + + + if (e_tep_event.key.string) + g_free (e_tep_event.key.string); + return ret; } -- cgit