Re: [disregard] GtkTreeView mouse hovering
- From: Olaf Telshörner <olaf tsc7 yahoo de>
- To: gtk-list gnome org
- Subject: Re: [disregard] GtkTreeView mouse hovering
- Date: Mon, 12 Mar 2007 10:12:15 -0700 (PDT)
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
Stefano Teso wrote:
>
> Hi,
>
> I'm new to GTK+ programming, and I've unsurprisingly run into a few
> problems while manipulating GTK+ code.
>
> I'd like to know how to add ``mouse hover signaling'' capabilities to a
> GtkTreeView, if that's possible at all without writing tons of code.
> What I'd like to have is a signal that triggers when the mouse cursor
> hovers over a GtkTreeView entry. I'd use it to update a statusbar.
>
> For reference, look at Nautilus bug 45436; the GtkTreeView I'm talking
> about is the places' sidebar bookmarks list.
>
> I hope this is the right place to post such questions.
>
> Thanks in advance,
>
> ----
> Stefano
>
>
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-list
>
>
--
View this message in context: http://www.nabble.com/GtkTreeView-mouse-hovering-tf3380839.html#a9438806
Sent from the Gtk+ - General mailing list archive at Nabble.com.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]