From 0705474be6d30ae58f64f2112a2bc09d1e66195c Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 31 May 2011 20:11:28 -0400 Subject: [PATCH] GtkEntry: don't forget to disconnect idles As pointed out by John Lindgren in bug 650114, GtkEntry forgets to disconnect an idle source when the completion is set to NULL. --- gtk/gtkentry.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c index b95fd8b901..ebae2c0cbd 100644 --- a/gtk/gtkentry.c +++ b/gtk/gtkentry.c @@ -9987,6 +9987,12 @@ gtk_entry_set_completion (GtkEntry *entry, old->priv->completion_timeout = 0; } + if (old->priv->check_completion_idle) + { + g_source_destroy (old->priv->check_completion_idle); + old->priv->check_completion_idle = NULL; + } + if (gtk_widget_get_mapped (old->priv->popup_window)) _gtk_entry_completion_popdown (old);