Re: getting the height of all cells in treeview
- From: Stefan Kost <ensonic hora-obscura de>
- To: Stefan Kost <ensonic hora-obscura de>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: getting the height of all cells in treeview
- Date: Tue, 08 Feb 2005 14:21:52 +0100
Please help, I am now totaly lost in the API.
I've now converted all my code to use the fixed-height mode.
The biggest disadvantage is that I now need to set 'fixed-width' for each column.
gtk_tree_view_columns_autosize()
shows no effect (its called after realizing the treeview).
First question: When I set, fixed-height mode, why to I need to to use the FIXED
sizing for tree_view_columns? To me that is not related.
Second question: Even now that I am using a fixed size, its not much easier to
find out how big my treeview rect is. I am using a filtered model. And thus I
would need to manually walk over the rows, check if they are visible and
multiply that with the height determined by gtk_tree_view_get_background_area()
for e.g. the first row. - A bit much to do in an expose_event().
Come one, there surely is a better way. And can't imagine I am the first who is
trying this.
Stefan
hi hi,
I subclass the treeview widget and override its expose handler to overlay custom
gfx. Therefore I need to know the height covered by the cells. I currently check
allocation and visible rect, but both are way too large if the tree has just a
few cells.
If the tree has a lot of rows, so that the scrolling takes effect the values are
correct.
Is there a way to get the heigth of all rows?
Thanks,
Stefan
--
http://www.buzztard.org
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]