aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2003-03-27 07:46:20 +0800
committerMichael Zucci <zucchi@src.gnome.org>2003-03-27 07:46:20 +0800
commit6590f32a3eb3dbd89f3ee26c3302406c4ead5f8c (patch)
treef5f08b6acaf81d5b29858853c8bb7d4fa761962f /widgets
parent6b1fcae8e9c2e7fa6132c87040749c9e530630cc (diff)
downloadgsoc2013-evolution-6590f32a3eb3dbd89f3ee26c3302406c4ead5f8c.tar
gsoc2013-evolution-6590f32a3eb3dbd89f3ee26c3302406c4ead5f8c.tar.gz
gsoc2013-evolution-6590f32a3eb3dbd89f3ee26c3302406c4ead5f8c.tar.bz2
gsoc2013-evolution-6590f32a3eb3dbd89f3ee26c3302406c4ead5f8c.tar.lz
gsoc2013-evolution-6590f32a3eb3dbd89f3ee26c3302406c4ead5f8c.tar.xz
gsoc2013-evolution-6590f32a3eb3dbd89f3ee26c3302406c4ead5f8c.tar.zst
gsoc2013-evolution-6590f32a3eb3dbd89f3ee26c3302406c4ead5f8c.zip
set the popup to insensitive when we pop it down. hack to force it to lose
2003-03-26 Not Zed <NotZed@Ximian.com> * gal/e-text/e-entry.c (e_entry_show_popup): set the popup to insensitive when we pop it down. hack to force it to lose focus, fix for #39719. svn path=/trunk/; revision=20531
Diffstat (limited to 'widgets')
-rw-r--r--widgets/text/e-entry.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/widgets/text/e-entry.c b/widgets/text/e-entry.c
index 130b66f02d..fbd708eb66 100644
--- a/widgets/text/e-entry.c
+++ b/widgets/text/e-entry.c
@@ -519,6 +519,7 @@ e_entry_show_popup (EEntry *entry, gboolean visible)
gtk_widget_set_uposition (pop, x, y);
e_completion_view_set_width (E_COMPLETION_VIEW (entry->priv->completion_view), dim->width);
+ gtk_widget_set_sensitive(pop, TRUE);
gtk_widget_show (pop);
@@ -534,6 +535,8 @@ e_entry_show_popup (EEntry *entry, gboolean visible)
} else {
gtk_widget_hide (pop);
+ /* hack to force the popup to lose focus, which it gets if you click on it */
+ gtk_widget_set_sensitive(pop, FALSE);
if (entry->priv->ptr_grab) {
gdk_pointer_ungrab (GDK_CURRENT_TIME);