Re: [gtk-list] Finding tree selection coordinates in scrolled window



James Bailie writes:

> I have a tree widget, inside of a scrolled window, whose child nodes I select
> programmatically. In order to ensure the selected child node is currently
> visible in the scrolled window, I believe I need to know its relative pixel

I solved this problem, if anyone cares, by comparing the
child_node->allocation.y with the adjustment->lower or upper, 
and modifying adjustment->value accordingly with gtk_adjustment_set_value().

-- 
James Bailie

http://users.imag.net/~lon.jbailie



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