testentrycompletion: Use the model we already got

cherry-pick of gtk-3-22 commit af350b20b1
This commit is contained in:
Daniel Boles 2018-04-24 13:40:02 +01:00
parent dbdd3bf179
commit 1e5c79ed47

View File

@ -233,7 +233,7 @@ animation_timer (GtkEntryCompletion *completion)
{
g_print ("removing model!\n");
old_store = GTK_LIST_STORE (g_object_ref (gtk_entry_completion_get_model (completion)));
old_store = g_object_ref (store);
gtk_entry_completion_set_model (completion, NULL);
}
else