Just to help static analysis out.
self->n_columns can't ever be 0, since
we clamp it between min_columns and
max_columns, with min_columns always
being at least one.
n_columns = CLAMP (n_columns, self->min_columns, self->max_columns);
+ g_assert (n_columns > 0);
+
return n_columns;
}
i = 0;
row_height = 0;
+ g_assert (self->n_columns > 0);
+
for (cell = gtk_list_item_manager_get_first (self->item_manager);
cell != NULL;
cell = gtk_rb_tree_node_get_next (cell))