Re: [disregard] GtkTreeView mouse hovering



On Monday 12 March 2007 17:12, Olaf Telshörner wrote:
> 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.

You don't need to to put a GtkTreeView in a GtkEventBox in order to use the 
motion-notify-event signal, as GtkTreeView widgets have their own GtkWindow.  
You can connect straight to the GtkTreeView object's motion-notify-event 
signal.

Chris 




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