summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Boles <dboles.src@gmail.com>2018-04-24 13:40:02 +0100
committerU-eagle\daniel.boles <daniel.boles@IM100881.eagle.local>2018-04-24 13:43:18 +0100
commitaf350b20b1c396ec55ca6a71eab23fdca6ffb784 (patch)
treee1ea5490f98cc5c257f3a7430e26973546822b67
parent8535e2e417f12af3afd03441223211c469b0d972 (diff)
downloadgtk+-af350b20b1c396ec55ca6a71eab23fdca6ffb784.tar.gz
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.
-rw-r--r--tests/testentrycompletion.c2
1 files changed, 1 insertions, 1 deletions
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