[gtk+/gtk-3-10] gtkentrycompletion: fix a critical warning
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-10] gtkentrycompletion: fix a critical warning
- Date: Sun, 6 Apr 2014 03:43:07 +0000 (UTC)
commit e43fd6f8c790ba7998f8344c43de95c70ef3a9c5
Author: Claudio Saavedra <csaavedra igalia com>
Date: Thu Mar 6 16:34:10 2014 +0200
gtkentrycompletion: fix a critical warning
There are early returns in this method before the completion timeout
is set later on, so set the source to 0 to avoid trying to remove it
later again.
https://bugzilla.gnome.org/show_bug.cgi?id=725824
gtk/gtkentrycompletion.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkentrycompletion.c b/gtk/gtkentrycompletion.c
index c947210..45dd00b 100644
--- a/gtk/gtkentrycompletion.c
+++ b/gtk/gtkentrycompletion.c
@@ -2493,7 +2493,10 @@ gtk_entry_completion_changed (GtkWidget *widget,
/* (re)install completion timeout */
if (completion->priv->completion_timeout)
+ {
g_source_remove (completion->priv->completion_timeout);
+ completion->priv->completion_timeout = 0;
+ }
if (!gtk_entry_get_text (entry))
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]