aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Toshok <toshok@ximian.com>2004-08-25 06:22:19 +0800
committerChris Toshok <toshok@src.gnome.org>2004-08-25 06:22:19 +0800
commitd17f89b2cd1ca5fa23896b8c3d21f01c2cf328a1 (patch)
treef54a1ac471093a4a15123916ea4a567aba3c57db
parent57caa2f9842eda865945387e446c94f4e389f811 (diff)
downloadgsoc2013-evolution-d17f89b2cd1ca5fa23896b8c3d21f01c2cf328a1.tar
gsoc2013-evolution-d17f89b2cd1ca5fa23896b8c3d21f01c2cf328a1.tar.gz
gsoc2013-evolution-d17f89b2cd1ca5fa23896b8c3d21f01c2cf328a1.tar.bz2
gsoc2013-evolution-d17f89b2cd1ca5fa23896b8c3d21f01c2cf328a1.tar.lz
gsoc2013-evolution-d17f89b2cd1ca5fa23896b8c3d21f01c2cf328a1.tar.xz
gsoc2013-evolution-d17f89b2cd1ca5fa23896b8c3d21f01c2cf328a1.tar.zst
gsoc2013-evolution-d17f89b2cd1ca5fa23896b8c3d21f01c2cf328a1.zip
[ probable fix for the remaining portion of #45931 ]
2004-08-23 Chris Toshok <toshok@ximian.com> [ 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
-rw-r--r--widgets/text/e-entry.c11
1 files changed, 8 insertions, 3 deletions
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) {