summaryrefslogtreecommitdiff
path: root/tests/testentrycompletion.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2017-12-08 17:48:47 -0500
committerMatthias Clasen <mclasen@redhat.com>2017-12-08 17:48:47 -0500
commit072f06abf713d7536ce2a84a5ac266f585c88d39 (patch)
tree4022ea0cc99af35dd33416489f20369260e38b2d /tests/testentrycompletion.c
parent1c9e3af4824e933e48da021d747ece491aad7f39 (diff)
downloadgtk+-072f06abf713d7536ce2a84a5ac266f585c88d39.tar.gz
Fix fallout from g_object_ref change
g_object_ref now returns the type of the object that was passed. Introduce cast as necessary to avoid warnings due to this.
Diffstat (limited to 'tests/testentrycompletion.c')
-rw-r--r--tests/testentrycompletion.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/testentrycompletion.c b/tests/testentrycompletion.c
index 332d6bef5f..ec1d2f6d68 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 = GTK_LIST_STORE (g_object_ref (gtk_entry_completion_get_model (completion)));
gtk_entry_completion_set_model (completion, NULL);
}
else