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-text.c | |
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-text.c')
-rw-r--r-- | widgets/text/e-text.c | 9 |
1 files changed, 6 insertions, 3 deletions
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; } |