testentrycompletion: Avoid a compiler cast warning

Instead of getting the model again but then forgetting to cast it to a
ListStore, just use the other variable store where we already did both.
This commit is contained in:
Daniel Boles
2018-04-24 13:40:02 +01:00
committed by U-eagle\daniel.boles
parent 8535e2e417
commit af350b20b1

View File

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