find the iter under the mouse after scrolling in a GtkTreeView
- From: "Nicolas Soubeiran" <nicolas soubeiran gmail com>
- To: gtk-app-devel-list gnome org
- Subject: find the iter under the mouse after scrolling in a GtkTreeView
- Date: Thu, 17 Jul 2008 11:49:20 +0200
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]