diff options
author | Daniel Boles <dboles.src@gmail.com> | 2018-04-24 13:40:02 +0100 |
---|---|---|
committer | U-eagle\daniel.boles <daniel.boles@IM100881.eagle.local> | 2018-04-24 13:43:18 +0100 |
commit | af350b20b1c396ec55ca6a71eab23fdca6ffb784 (patch) | |
tree | e1ea5490f98cc5c257f3a7430e26973546822b67 | |
parent | 8535e2e417f12af3afd03441223211c469b0d972 (diff) | |
download | gtk+-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.c | 2 |
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 |