[gtk+/gtk-2-24] GtkEntry: don't forget to disconnect idles
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-2-24] GtkEntry: don't forget to disconnect idles
- Date: Wed, 16 Mar 2016 01:42:28 +0000 (UTC)
commit 21e48c9ac0955d33f21f2258c398cbffd619566c
Author: Matthias Clasen <mclasen redhat com>
Date: Tue May 31 20:11:28 2011 -0400
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 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c
index 1921093..8b3aadc 100644
--- a/gtk/gtkentry.c
+++ b/gtk/gtkentry.c
@@ -9799,6 +9799,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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]