Re: GtkTreeView cell_data_func requesting non-visible cells.
- From: Murray Cumming <murrayc murrayc com>
- To: gtk-list gnome org
- Subject: Re: GtkTreeView cell_data_func requesting non-visible cells.
- Date: Mon, 27 Mar 2006 17:23:11 +0200
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]