GtkEntry: Properly remove the completion timeout
There were some code paths where we removed the source, but failed to reset the id to zero. Pointed out by John Coppens in https://bugzilla.gnome.org/show_bug.cgi?id=733689
This commit is contained in:
parent
f566f8811e
commit
3c8f0c44e1
@ -9607,7 +9607,10 @@ gtk_entry_completion_changed (GtkWidget *entry,
|
||||
|
||||
/* (re)install completion timeout */
|
||||
if (completion->priv->completion_timeout)
|
||||
g_source_remove (completion->priv->completion_timeout);
|
||||
{
|
||||
g_source_remove (completion->priv->completion_timeout);
|
||||
completion->priv->completion_timeout = 0;
|
||||
}
|
||||
|
||||
if (!gtk_entry_get_text (GTK_ENTRY (entry)))
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user