[gtk+/wip/list: 8/8] tests: USE ALL THE WORDS!



commit e12b785653a0d8ea1c4483ce99a49c61531ff788
Author: Benjamin Otte <otte redhat com>
Date:   Fri May 11 04:44:54 2012 +0200

    tests: USE ALL THE WORDS!

 tests/testlistview.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/tests/testlistview.c b/tests/testlistview.c
index dbedbd6..e205d3c 100644
--- a/tests/testlistview.c
+++ b/tests/testlistview.c
@@ -16,10 +16,11 @@ create_treemodel (void)
   words = g_strsplit (all_the_words, "\n", -1);
   g_free (all_the_words);
 
-  for (i = 0; words[i] && i < 10; i++)
+  for (i = 0; words[i]; i++)
     {
       gtk_list_store_insert_with_values (store, NULL, -1, 0, words[i], -1);
     }
+  g_print ("created GtkListStore with %u items\n", gtk_tree_model_iter_n_children (GTK_TREE_MODEL (store), NULL));
 
   return GTK_TREE_MODEL (store);
 }



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