From 6590f32a3eb3dbd89f3ee26c3302406c4ead5f8c Mon Sep 17 00:00:00 2001 From: Not Zed Date: Wed, 26 Mar 2003 23:46:20 +0000 Subject: set the popup to insensitive when we pop it down. hack to force it to lose 2003-03-26 Not Zed * gal/e-text/e-entry.c (e_entry_show_popup): set the popup to insensitive when we pop it down. hack to force it to lose focus, fix for #39719. svn path=/trunk/; revision=20531 --- widgets/text/e-entry.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'widgets/text') diff --git a/widgets/text/e-entry.c b/widgets/text/e-entry.c index 130b66f02d..fbd708eb66 100644 --- a/widgets/text/e-entry.c +++ b/widgets/text/e-entry.c @@ -519,6 +519,7 @@ e_entry_show_popup (EEntry *entry, gboolean visible) gtk_widget_set_uposition (pop, x, y); e_completion_view_set_width (E_COMPLETION_VIEW (entry->priv->completion_view), dim->width); + gtk_widget_set_sensitive(pop, TRUE); gtk_widget_show (pop); @@ -534,6 +535,8 @@ e_entry_show_popup (EEntry *entry, gboolean visible) } else { gtk_widget_hide (pop); + /* hack to force the popup to lose focus, which it gets if you click on it */ + gtk_widget_set_sensitive(pop, FALSE); if (entry->priv->ptr_grab) { gdk_pointer_ungrab (GDK_CURRENT_TIME); -- cgit