Re: [disregard] GtkTreeView mouse hovering



Hi,

thanks a lot for your suggestion, it pointed me in the right direction: I
managed to use gtk_tree_view_get_path_at_pos within the motion-notify-event
callback to get the currently `prelighted' row from the GtkTreeView.

Thanks again,

----
Stefano

> Hi,
> 
> you may connect to the signals "enter-notify-event" and
> "leave-notify-event". They are emitted when the mouse enters or leaves the
> widget.
> If you are seeking a signal that is emitted whenever the pointer get moved,
> you should connect to the "motion-notify-event". To do so, you have to place
> you TreeView widget in a GtkEventBox and add the GDK_POINTER_MOTION_MASK to
> the event's box event mask using for example gtk_widget_add_events.
> Then you connect the the EventBox's "motion-notify-event" signal.
> 
> Olaf





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