Re: [disregard] GtkTreeView mouse hovering
- From: Chris Vine <chris cvine freeserve co uk>
- To: gtk-list gnome org
- Cc: Olaf Telshörner <olaf tsc7 yahoo de>
- Subject: Re: [disregard] GtkTreeView mouse hovering
- Date: Tue, 13 Mar 2007 20:17:38 +0000
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]