Commits

Virgil Dupras  committed 3aae5fc

Improved array iteration in book store creation (example 08-list-store).

  • Participants
  • Parent commits 3a62f8d

Comments (0)

Files changed (1)

File 08-list-store/main.c

 {
     GtkListStore *store;
     GtkTreeIter iter;
-    int i;
     
     store = gtk_list_store_new(N_COLUMNS, G_TYPE_STRING, G_TYPE_STRING,
         G_TYPE_BOOLEAN);
 
-    Book *book = &BOOKS[0];
+    Book *book = BOOKS;
     while (book->title != NULL) {
         gtk_list_store_append(store, &iter);
         gtk_list_store_set(store, &iter,