find the iter under the mouse after scrolling in a GtkTreeView



Hi,
I try to find the iter under the cursor in a GtkTreeView (list store) at any
time.
The easy part is already done : catch the mouse motion event and use the
information store in the GdkEvent to get the cursor position and so the iter
using gtk_treeview_get_path_at_pos.

But when I scroll the treeview (with mouse wheel), I can't get the new
position unless I move the mouse.
I try to connect the scroll event (using "event" signal on GtkTreeView and
check the GDK_SCROLL type) but it sends me the position BEFORE scrolling.
Any idea?
thanks
Regards.



****



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