[gtk/gtk-3-22] testentrycompletion: Avoid a compiler cast warning



commit af350b20b1c396ec55ca6a71eab23fdca6ffb784
Author: Daniel Boles <dboles src gmail com>
Date:   Tue Apr 24 13:40:02 2018 +0100

    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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]