From d17f89b2cd1ca5fa23896b8c3d21f01c2cf328a1 Mon Sep 17 00:00:00 2001 From: Chris Toshok Date: Tue, 24 Aug 2004 22:22:19 +0000 Subject: [ probable fix for the remaining portion of #45931 ] 2004-08-23 Chris Toshok [ probable fix for the remaining portion of #45931 ] * gal/e-text/e-entry.c (e_entry_show_popup): only return early if we're trying to pop up the view while the entry is unfocused. if we're trying to pop it down, carry on as normal. svn path=/trunk/; revision=27009 --- widgets/text/e-entry.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'widgets/text/e-entry.c') diff --git a/widgets/text/e-entry.c b/widgets/text/e-entry.c index fca872d55c..f66a066921 100644 --- a/widgets/text/e-entry.c +++ b/widgets/text/e-entry.c @@ -503,9 +503,14 @@ e_entry_show_popup (EEntry *entry, gboolean visible) if (pop == NULL) return; - /* The async query can give us a result after the focus was lost by the - widget. In that case, we don't want to show the pop-up. */ - if (! GTK_WIDGET_HAS_FOCUS (entry->canvas)) + /* The async query can give us a result after the focus was + lost by the widget. In that case, we don't want to show + the pop-up. + + but only return early if we're popping *up* the completion + view. If we're trying to pop down the view, continue on + regardless of whether or not the canvas has focus. */ + if (/*visible && */! GTK_WIDGET_HAS_FOCUS (entry->canvas)) return; if (visible) { -- cgit