aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2002-04-04 23:34:09 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2002-04-04 23:34:09 +0800
commit78492a5deb39c43f321cfe0b1106c92e6b4a5a5f (patch)
tree24fb498f8ea7d5c958f451ba2d9a3e38ffb41181 /widgets
parent9cdf2d8df2e4565d5c09b4a31b2504795299abad (diff)
downloadgsoc2013-evolution-78492a5deb39c43f321cfe0b1106c92e6b4a5a5f.tar
gsoc2013-evolution-78492a5deb39c43f321cfe0b1106c92e6b4a5a5f.tar.gz
gsoc2013-evolution-78492a5deb39c43f321cfe0b1106c92e6b4a5a5f.tar.bz2
gsoc2013-evolution-78492a5deb39c43f321cfe0b1106c92e6b4a5a5f.tar.lz
gsoc2013-evolution-78492a5deb39c43f321cfe0b1106c92e6b4a5a5f.tar.xz
gsoc2013-evolution-78492a5deb39c43f321cfe0b1106c92e6b4a5a5f.tar.zst
gsoc2013-evolution-78492a5deb39c43f321cfe0b1106c92e6b4a5a5f.zip
Don't show the popup if the entry->item doesn't have focus.
* gal/e-text/e-entry.c (e_entry_show_popup): Don't show the popup if the entry->item doesn't have focus. svn path=/trunk/; revision=16345
Diffstat (limited to 'widgets')
-rw-r--r--widgets/text/e-entry.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/widgets/text/e-entry.c b/widgets/text/e-entry.c
index 6301672124..6c060244f5 100644
--- a/widgets/text/e-entry.c
+++ b/widgets/text/e-entry.c
@@ -477,6 +477,11 @@ 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))
+ return;
+
if (visible) {
GtkAllocation *dim = &(GTK_WIDGET (entry)->allocation);
gint x, y, xo, yo, fudge;