From 10d0e730eccccf34fc53dc8c1d6145fca1f52f57 Mon Sep 17 00:00:00 2001 From: Jon Trowbridge Date: Tue, 6 Mar 2001 09:47:08 +0000 Subject: Added. This is part of a change of sematics that makes things much nicer 2001-03-06 Jon Trowbridge * gal/e-text/e-entry.c (e_entry_text_keypress): Added. This is part of a change of sematics that makes things much nicer for the user --- auto-activate the completion popup only on keypresses than also change the entry. (e_entry_proxy_changed): Record that the underlying EText has changed, and set up a timeout to clear the changed_since_keypress flag in a very short amount of time. (e_entry_init): Connect to the EText's "keypress" signal". (e_entry_destroy): If our completion_delay_tag timeout is still floating around out there when we are winding things down, remove it. * gal/e-text/e-text.c (e_text_class_init): Added keypress signal. (e_text_text_model_reposition): Removed some old cruft. (e_text_event): Emit our keypress signal after handling events of type GDK_KEY_PRESS. svn path=/trunk/; revision=8566 --- widgets/text/e-text.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'widgets/text/e-text.h') diff --git a/widgets/text/e-text.h b/widgets/text/e-text.h index b42ea06663..eae84af102 100644 --- a/widgets/text/e-text.h +++ b/widgets/text/e-text.h @@ -217,9 +217,10 @@ struct _EText { struct _ETextClass { GnomeCanvasItemClass parent_class; - void (* changed) (EText *text); - void (* activate) (EText *text); - void (* popup) (EText *text, GdkEventButton *ev, gint pos); + void (* changed) (EText *text); + void (* activate) (EText *text); + void (* keypress) (EText *text, guint keyval, guint state); + void (* popup) (EText *text, GdkEventButton *ev, gint pos); }; -- cgit v1.2.3