aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJon Trowbridge <trow@ximian.com>2001-11-09 01:28:52 +0800
committerJon Trowbridge <trow@src.gnome.org>2001-11-09 01:28:52 +0800
commit335e0c6bf698d999d811894ce75aa9b87a6106e4 (patch)
treecdc790ece90d0518214e3c239f089ed533477e2a
parent9f3f6fc9f5febe4f3cd8ab33bff222dceced3bac (diff)
downloadgsoc2013-evolution-335e0c6bf698d999d811894ce75aa9b87a6106e4.tar
gsoc2013-evolution-335e0c6bf698d999d811894ce75aa9b87a6106e4.tar.gz
gsoc2013-evolution-335e0c6bf698d999d811894ce75aa9b87a6106e4.tar.bz2
gsoc2013-evolution-335e0c6bf698d999d811894ce75aa9b87a6106e4.tar.lz
gsoc2013-evolution-335e0c6bf698d999d811894ce75aa9b87a6106e4.tar.xz
gsoc2013-evolution-335e0c6bf698d999d811894ce75aa9b87a6106e4.tar.zst
gsoc2013-evolution-335e0c6bf698d999d811894ce75aa9b87a6106e4.zip
Only popup entries that have focus. Fixes the lingering completion popup
2001-11-08 Jon Trowbridge <trow@ximian.com> * 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
-rw-r--r--widgets/text/e-entry.c4
1 files changed, 3 insertions, 1 deletions
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