From af350b20b1c396ec55ca6a71eab23fdca6ffb784 Mon Sep 17 00:00:00 2001 From: Daniel Boles Date: Tue, 24 Apr 2018 13:40:02 +0100 Subject: [PATCH] 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. --- tests/testentrycompletion.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/testentrycompletion.c b/tests/testentrycompletion.c index 16f7f10832..51fb6ee611 100644 --- a/tests/testentrycompletion.c +++ b/tests/testentrycompletion.c @@ -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