Re: [gtk-list] Finding tree selection coordinates in scrolled window
- From: James Bailie <jbailie wwdc com>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Finding tree selection coordinates in scrolled window
- Date: Sat, 17 Apr 1999 11:08:14 -0400
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]