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
This commit is contained in:
Ettore Perazzoli
2002-04-04 15:34:09 +00:00
parent 9cdf2d8df2
commit 78492a5deb

View File

@ -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;