Re: GtkTreeView cell_data_func requesting non-visible cells.



On Mon, 2006-03-27 at 17:05 +0200, Murray Cumming wrote:
> Am I right in thinking that GtkTreeView shouldn't call the cell_data
> callback for cells that aren't visible?
> 
> The attached test case shows it being called for every row (even if only
> a few are visible in the GtkScrolledWindow), and then called again for
> the visible rows. This is not so nice when I must retrieve the data (in
> my custom model) from a database.

Answering myself, this can be fixed by calling
gtk_tree_view_set_fixed_height_mode(), which in turn needs us to call
gtk_tree_view_column_set_sizing() on each GtkTreeViewColumn.

-- 
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com




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