diff options
author | Jon Trowbridge <trow@ximian.com> | 2001-02-24 01:27:51 +0800 |
---|---|---|
committer | Jon Trowbridge <trow@src.gnome.org> | 2001-02-24 01:27:51 +0800 |
commit | 3fc425dee9b9eb648b0ff14878129b9fd09a3f2c (patch) | |
tree | bdd985d7ee2e5c27945ccd9e0e758672b7e35720 /widgets/text/e-completion-view.c | |
parent | afd1cad2da1ace056f7882a1088ce3e3b7dba2da (diff) | |
download | gsoc2013-evolution-3fc425dee9b9eb648b0ff14878129b9fd09a3f2c.tar gsoc2013-evolution-3fc425dee9b9eb648b0ff14878129b9fd09a3f2c.tar.gz gsoc2013-evolution-3fc425dee9b9eb648b0ff14878129b9fd09a3f2c.tar.bz2 gsoc2013-evolution-3fc425dee9b9eb648b0ff14878129b9fd09a3f2c.tar.lz gsoc2013-evolution-3fc425dee9b9eb648b0ff14878129b9fd09a3f2c.tar.xz gsoc2013-evolution-3fc425dee9b9eb648b0ff14878129b9fd09a3f2c.tar.zst gsoc2013-evolution-3fc425dee9b9eb648b0ff14878129b9fd09a3f2c.zip |
Fixed. (e_entry_select_region): Fixed. (e_entry_show_popup): Grab/ungrab
2001-02-23 Jon Trowbridge <trow@ximian.com>
* gal/e-text/e-entry.c (e_entry_set_position): Fixed.
(e_entry_select_region): Fixed.
(e_entry_show_popup): Grab/ungrab the pointer and keyboard when
the popup appears/disappears. This (mostly) solves the "floating
popup" problem.
(button_press_cb): Added. We catch button presses outside of
the popup, and hide the popup when they occur.
* gal/e-text/e-completion-view.c (e_completion_view_get_type,
e_completion_view_class_init): Changed base class to GtkEventBox.
(e_completion_view_key_press_handler): Make Escape always cause an
unbrowse, even wehen we are editting.
svn path=/trunk/; revision=8369
Diffstat (limited to 'widgets/text/e-completion-view.c')
-rw-r--r-- | widgets/text/e-completion-view.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/widgets/text/e-completion-view.c b/widgets/text/e-completion-view.c index 026cb151dd..407ff57459 100644 --- a/widgets/text/e-completion-view.c +++ b/widgets/text/e-completion-view.c @@ -83,7 +83,7 @@ e_completion_view_get_type (void) (GtkClassInitFunc) NULL }; - completion_view_type = gtk_type_unique (gtk_vbox_get_type (), &completion_view_info); + completion_view_type = gtk_type_unique (gtk_event_box_get_type (), &completion_view_info); } return completion_view_type; @@ -95,7 +95,7 @@ e_completion_view_class_init (ECompletionViewClass *klass) GtkObjectClass *object_class = (GtkObjectClass *) klass; GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass); - parent_class = GTK_OBJECT_CLASS (gtk_type_class (gtk_vbox_get_type ())); + parent_class = GTK_OBJECT_CLASS (gtk_type_class (gtk_event_box_get_type ())); e_completion_view_signals[E_COMPLETION_VIEW_NONEMPTY] = gtk_signal_new ("nonempty", @@ -348,6 +348,11 @@ e_completion_view_key_press_handler (GtkWidget *w, GdkEventKey *key_event, gpoin return FALSE; case GDK_Escape: + /* Unbrowse hack */ + cv->selection = -1; + dir = 0; + break; + case GDK_Left: /* Lynx-style "back" */ case GDK_KP_Left: if (cv->selection >= 0) { |