Re: GtkTreeView cell_data_func requesting non-visible cells.

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

 



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@xxxxxxxxxxx
www.murrayc.com
www.openismus.com

_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux