From 335e0c6bf698d999d811894ce75aa9b87a6106e4 Mon Sep 17 00:00:00 2001 From: Jon Trowbridge Date: Thu, 8 Nov 2001 17:28:52 +0000 Subject: Only popup entries that have focus. Fixes the lingering completion popup 2001-11-08 Jon Trowbridge * gal/e-text/e-entry.c (full_cb): Only popup entries that have focus. Fixes the lingering completion popup bug. svn path=/trunk/; revision=14626 --- widgets/text/e-entry.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'widgets/text/e-entry.c') diff --git a/widgets/text/e-entry.c b/widgets/text/e-entry.c index 47bbca0079..6301672124 100644 --- a/widgets/text/e-entry.c +++ b/widgets/text/e-entry.c @@ -632,8 +632,10 @@ static void full_cb (ECompletionView *view, gpointer user_data) { EEntry *entry = E_ENTRY (user_data); + gboolean show; - e_entry_show_popup (entry, view->choices->len > 0); + show = GTK_WIDGET_HAS_FOCUS (GTK_WIDGET (entry->canvas)) && view->choices->len > 0; + e_entry_show_popup (entry, show); } static void -- cgit v1.2.3