Thanks for the tip. I just tried that though but it doesn't seem to  
show what I'm looking for

If I have a tree that starts out like:

Root


And I expand on Root so that it looks like
Root
------> Sub Tree A
------> Sub Tree B
------> Sub Tree C

The result of that get_visible_range function is start:0 end: 0

If I expand on Sub Tree A so that i looks like this
Root
------> Sub Tree A
--------------> Child A
------> Sub Tree B
------> Sub Tree C

The result is this: start: 0 end: 0:2


However if only this is visible to the user:
Root
------> Sub Tree A
--------------> Child A
It makes no different on what get_visible_range returns.

Any thoughts?



On Jun 4, 2008, at 1:40 PM, Kristian Rietveld wrote:

> On Wed, Jun 04, 2008 at 11:14:13AM -0400, Eric Pastoor wrote:
>> What is the best way to determine if a row of a tree is inside the
>> visible part of scrolling window or not?  For instance, if I hit the
>> expand on a tree item, I'd like to know if a certain child in that
>> tree is visible to the user or if it outside of the scrollable
>> viewing area?
>
> The easiest is probably to check if the path is within the two paths
> returned by gtk_tree_view_get_visible_range().
>
>
> regards,
>
> -kris.

Eric Pastoor
(h) [EMAIL PROTECTED]
(w) [EMAIL PROTECTED]



_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to