* mug-msg-list-view.c: iterate the ui during list population

This commit is contained in:
Dirk-Jan C. Binnema 2011-01-18 19:29:20 +02:00
parent 7fc00c5d10
commit 21fcef13d9
1 changed files with 6 additions and 1 deletions

View File

@ -393,9 +393,14 @@ update_model (GtkListStore * store, const char *xpath, const char *query,
}
for (count = 0; !mu_msg_iter_is_done (iter);
mu_msg_iter_next (iter), ++count)
mu_msg_iter_next (iter), ++count) {
add_row (store, iter);
if (count % 50 == 0)
gtk_main_iteration ();
}
mu_msg_iter_destroy (iter);
return count;