[Gtk-sharp-list] ButtonPressEvent doesn't get fired for a TreeView

Dan Winship danw at novell.com
Tue Jan 17 11:07:03 EST 2006


radu wrote:
>  I'm trying to catch the ButtonPressEvent for a TreeView and implement a
> context popup menu, but it seams the event doesn't get fired. Do I have
> to use an EventBox or there is another way around?

You need to use the [GLib.ConnectBefore] attribute on the signal
handler, because in certain cases, TreeView's default ButtonPressEvent
handler will just eat the event and not give anyone else a chance to
handle it.

-- Dan


More information about the Gtk-sharp-list mailing list