Don't pass the GtkWindow to header_list_count_uncached_msgs(), it's