testentrycompletion: Use the model we already got
authorDaniel Boles <dboles.src@gmail.com>
Tue, 24 Apr 2018 12:40:02 +0000 (13:40 +0100)
committerDaniel Boles <dboles.src@gmail.com>
Tue, 24 Apr 2018 12:45:49 +0000 (13:45 +0100)
cherry-pick of gtk-3-22 commit af350b20b1c396ec55ca6a71eab23fdca6ffb784

tests/testentrycompletion.c

index 09a2b4dbab5918b85f868a08bdebffa5c45d6a5d..1ca802eaec6ecbd1127ecb5bc3760d2b4af5d1e8 100644 (file)
@@ -233,7 +233,7 @@ animation_timer (GtkEntryCompletion *completion)
        {
          g_print ("removing model!\n");
 
-         old_store = GTK_LIST_STORE (g_object_ref (gtk_entry_completion_get_model (completion)));
+         old_store = g_object_ref (store);
          gtk_entry_completion_set_model (completion, NULL);
        }
       else